org.shapelogic.polygon
Class AnnotatedShapeImplementation
java.lang.Object
   org.shapelogic.polygon.AnnotatedShapeImplementation
org.shapelogic.polygon.AnnotatedShapeImplementation
- All Implemented Interfaces: 
- AnnotatedShape
- public class AnnotatedShapeImplementation 
- extends java.lang.Object- implements AnnotatedShape
Instead putting all logic for AnnotatedShape in all classes implement this
 Make them adapter for this class
 
 I can make the map a lazy init map
- Author:
- Sami Badawi
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
_map
protected java.util.Map<java.lang.Object,java.util.Set<GeometricShape2D>> _map
AnnotatedShapeImplementation
public AnnotatedShapeImplementation()
AnnotatedShapeImplementation
public AnnotatedShapeImplementation(AnnotatedShape annotatedShape)
getMap
public java.util.Map<java.lang.Object,java.util.Set<GeometricShape2D>> getMap()
- 
- Specified by:
- getMapin interface- AnnotatedShape
 
- 
 
putAnnotation
public void putAnnotation(GeometricShape2D shape,
                          java.lang.Object annotationKey)
- 
- Specified by:
- putAnnotationin interface- AnnotatedShape
 
- 
 
setup
public void setup()
- 
- Specified by:
- setupin interface- AnnotatedShape
 
- 
 
getAnnotatedShape
public AnnotatedShapeImplementation getAnnotatedShape()
- 
- Specified by:
- getAnnotatedShapein interface- AnnotatedShape
 
- 
 
getShapesForAnnotation
public java.util.Set<GeometricShape2D> getShapesForAnnotation(java.lang.Object annotation)
- 
- Specified by:
- getShapesForAnnotationin interface- AnnotatedShape
 
- 
 
getAnnotationForShapes
public java.util.Set<java.lang.Object> getAnnotationForShapes(GeometricShape2D shape)
- 
- Specified by:
- getAnnotationForShapesin interface- AnnotatedShape
 
- 
 
putAllAnnotation
public void putAllAnnotation(GeometricShape2D shape,
                             java.util.Set annotationKeySet)
- 
- Specified by:
- putAllAnnotationin interface- AnnotatedShape
 
- 
 
Copyright © 2008. All Rights Reserved.