org.shapelogic.polygon
Class BaseAnnotatedShape
java.lang.Object
org.shapelogic.polygon.BaseAnnotatedShape
- All Implemented Interfaces:
- AnnotatedShape
- Direct Known Subclasses:
- ChainCodeHandler, MultiLine, Polygon
public abstract class BaseAnnotatedShape
- extends java.lang.Object
- implements AnnotatedShape
This is an adapter class for AnnotatedShape, working as an abstract base
class for classes that need to implement AnnotatedShape
Can make lazy init later
- Author:
- Sami Badawi
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_annotatedShape
protected AnnotatedShapeImplementation _annotatedShape
BaseAnnotatedShape
public BaseAnnotatedShape()
BaseAnnotatedShape
public BaseAnnotatedShape(AnnotatedShapeImplementation annotatedShape)
getMap
public java.util.Map<java.lang.Object,java.util.Set<GeometricShape2D>> getMap()
- Specified by:
getMap
in interface AnnotatedShape
putAnnotation
public void putAnnotation(GeometricShape2D shape,
java.lang.Object annotationKey)
- Specified by:
putAnnotation
in interface AnnotatedShape
putAllAnnotation
public void putAllAnnotation(GeometricShape2D shape,
java.util.Set<java.lang.Object> annotationKeySet)
- Specified by:
putAllAnnotation
in interface AnnotatedShape
getAnnotatedShape
public AnnotatedShapeImplementation getAnnotatedShape()
- Specified by:
getAnnotatedShape
in interface AnnotatedShape
setup
public void setup()
- Specified by:
setup
in interface AnnotatedShape
getShapesForAnnotation
public java.util.Set<GeometricShape2D> getShapesForAnnotation(java.lang.Object annotation)
- Specified by:
getShapesForAnnotation
in interface AnnotatedShape
getAnnotationForShapes
public java.util.Set<java.lang.Object> getAnnotationForShapes(GeometricShape2D shape)
- Specified by:
getAnnotationForShapes
in interface AnnotatedShape
Copyright © 2009. All Rights Reserved.