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- Author:
- Tom Nelson - tomnelson@dev.java.net
-
-
Field Summary
Fields Modifier and Type Field Description protected AnnotationRendererannotationRendererprotected java.util.Set<Annotation>annotationsprotected RenderContext<?,?>rcprotected AffineTransformertransformer
-
Constructor Summary
Constructors Constructor Description AnnotationPaintable(RenderContext<?,?> rc, AnnotationRenderer annotationRenderer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Annotation<?> annotation)java.util.Set<Annotation>getAnnotations()voidpaint(java.awt.Graphics g)java.awt.ComponentprepareRenderer(RenderContext<?,?> rc, AnnotationRenderer annotationRenderer, java.lang.Object value)voidremove(Annotation<?> annotation)booleanuseTransform()
-
-
-
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:
paintin interfaceVisualizationServer.Paintable
-
prepareRenderer
public java.awt.Component prepareRenderer(RenderContext<?,?> rc, AnnotationRenderer annotationRenderer, java.lang.Object value)
-
useTransform
public boolean useTransform()
- Specified by:
useTransformin interfaceVisualizationServer.Paintable
-
-