Class AnnotationPaintable
- java.lang.Object
-
- edu.uci.ics.jung.visualization.annotations.AnnotationPaintable
-
- All Implemented Interfaces:
VisualizationServer.Paintable
public class AnnotationPaintable extends java.lang.Object implements VisualizationServer.Paintable
handles the actual drawing of annotations
-
-
Field Summary
Fields Modifier and Type Field Description protected AnnotationRenderer
annotationRenderer
protected java.util.Set<Annotation>
annotations
protected RenderContext<?,?>
rc
protected AffineTransformer
transformer
-
Constructor Summary
Constructors Constructor Description AnnotationPaintable(RenderContext<?,?> rc, AnnotationRenderer annotationRenderer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Annotation annotation)
java.util.Set<Annotation>
getAnnotations()
void
paint(java.awt.Graphics g)
java.awt.Component
prepareRenderer(RenderContext<?,?> rc, AnnotationRenderer annotationRenderer, java.lang.Object value)
void
remove(Annotation annotation)
boolean
useTransform()
-
-
-
Field Detail
-
annotations
protected java.util.Set<Annotation> annotations
-
annotationRenderer
protected AnnotationRenderer annotationRenderer
-
rc
protected RenderContext<?,?> rc
-
transformer
protected AffineTransformer transformer
-
-
Constructor Detail
-
AnnotationPaintable
public AnnotationPaintable(RenderContext<?,?> rc, AnnotationRenderer annotationRenderer)
-
-
Method Detail
-
add
public void add(Annotation annotation)
-
remove
public void remove(Annotation annotation)
-
getAnnotations
public java.util.Set<Annotation> getAnnotations()
- Returns:
- the annotations
-
paint
public void paint(java.awt.Graphics g)
- Specified by:
paint
in interfaceVisualizationServer.Paintable
-
prepareRenderer
public java.awt.Component prepareRenderer(RenderContext<?,?> rc, AnnotationRenderer annotationRenderer, java.lang.Object value)
-
useTransform
public boolean useTransform()
- Specified by:
useTransform
in interfaceVisualizationServer.Paintable
-
-