org.shapelogic.polygon
Class BaseAnnotatedShape

java.lang.Object
  extended by 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

Field Summary
protected  AnnotatedShapeImplementation _annotatedShape
           
 
Constructor Summary
BaseAnnotatedShape()
           
BaseAnnotatedShape(AnnotatedShapeImplementation annotatedShape)
           
 
Method Summary
 AnnotatedShapeImplementation getAnnotatedShape()
           
 java.util.Set<java.lang.Object> getAnnotationForShapes(GeometricShape2D shape)
           
 java.util.Map<java.lang.Object,java.util.Set<GeometricShape2D>> getMap()
           
 java.util.Set<GeometricShape2D> getShapesForAnnotation(java.lang.Object annotation)
           
 void putAllAnnotation(GeometricShape2D shape, java.util.Set<java.lang.Object> annotationKeySet)
           
 void putAnnotation(GeometricShape2D shape, java.lang.Object annotationKey)
           
 void setup()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_annotatedShape

protected AnnotatedShapeImplementation _annotatedShape
Constructor Detail

BaseAnnotatedShape

public BaseAnnotatedShape()

BaseAnnotatedShape

public BaseAnnotatedShape(AnnotatedShapeImplementation annotatedShape)
Method Detail

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 © 2008. All Rights Reserved.