edu.uci.ics.jung.visualization.annotations
Class AnnotationPaintable

java.lang.Object
  extended by edu.uci.ics.jung.visualization.annotations.AnnotationPaintable
All Implemented Interfaces:
VisualizationServer.Paintable

public class AnnotationPaintable
extends Object
implements VisualizationServer.Paintable

handles the actual drawing of annotations

Author:
Tom Nelson - tomnelson@dev.java.net

Field Summary
protected  AnnotationRenderer annotationRenderer
           
protected  Set<Annotation> annotations
           
protected  RenderContext<?,?> rc
           
protected  AffineTransformer transformer
           
 
Constructor Summary
AnnotationPaintable(RenderContext<?,?> rc, AnnotationRenderer annotationRenderer)
           
 
Method Summary
 void add(Annotation annotation)
           
 Set<Annotation> getAnnotations()
           
 void paint(Graphics g)
           
 Component prepareRenderer(RenderContext<?,?> rc, AnnotationRenderer annotationRenderer, Object value)
           
 void remove(Annotation annotation)
           
 boolean useTransform()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

annotations

protected 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 Set<Annotation> getAnnotations()
Returns:
the annotations

paint

public void paint(Graphics g)
Specified by:
paint in interface VisualizationServer.Paintable

prepareRenderer

public Component prepareRenderer(RenderContext<?,?> rc,
                                 AnnotationRenderer annotationRenderer,
                                 Object value)

useTransform

public boolean useTransform()
Specified by:
useTransform in interface VisualizationServer.Paintable


Copyright © 2009. All Rights Reserved.