Class AnnotationManager
- java.lang.Object
-
- edu.uci.ics.jung.visualization.annotations.AnnotationManager
-
public class AnnotationManager extends java.lang.Object
handles the selection of annotations, and the support for the tools to draw them at specific layers.
-
-
Field Summary
Fields Modifier and Type Field Description protected AnnotationRenderer
annotationRenderer
protected AnnotationPaintable
lowerAnnotationPaintable
protected RenderContext<?,?>
rc
protected AffineTransformer
transformer
protected AnnotationPaintable
upperAnnotationPaintable
-
Constructor Summary
Constructors Constructor Description AnnotationManager(RenderContext<?,?> rc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Annotation.Layer layer, Annotation<?> annotation)
Annotation
getAnnotation(java.awt.geom.Point2D p)
Annotation
getAnnotation(java.awt.geom.Point2D p, java.util.Collection<Annotation> annotations)
AnnotationPaintable
getAnnotationPaintable(Annotation.Layer layer)
protected AnnotationPaintable
getLowerAnnotationPaintable()
protected AnnotationPaintable
getUpperAnnotationPaintable()
java.awt.Component
prepareRenderer(RenderContext<?,?> rc, AnnotationRenderer annotationRenderer, java.lang.Object value)
void
remove(Annotation<?> annotation)
-
-
-
Field Detail
-
annotationRenderer
protected AnnotationRenderer annotationRenderer
-
lowerAnnotationPaintable
protected AnnotationPaintable lowerAnnotationPaintable
-
upperAnnotationPaintable
protected AnnotationPaintable upperAnnotationPaintable
-
rc
protected RenderContext<?,?> rc
-
transformer
protected AffineTransformer transformer
-
-
Constructor Detail
-
AnnotationManager
public AnnotationManager(RenderContext<?,?> rc)
-
-
Method Detail
-
getAnnotationPaintable
public AnnotationPaintable getAnnotationPaintable(Annotation.Layer layer)
-
add
public void add(Annotation.Layer layer, Annotation<?> annotation)
-
remove
public void remove(Annotation<?> annotation)
-
getLowerAnnotationPaintable
protected AnnotationPaintable getLowerAnnotationPaintable()
-
getUpperAnnotationPaintable
protected AnnotationPaintable getUpperAnnotationPaintable()
-
getAnnotation
public Annotation getAnnotation(java.awt.geom.Point2D p)
-
getAnnotation
public Annotation getAnnotation(java.awt.geom.Point2D p, java.util.Collection<Annotation> annotations)
-
prepareRenderer
public java.awt.Component prepareRenderer(RenderContext<?,?> rc, AnnotationRenderer annotationRenderer, java.lang.Object value)
-
-