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

java.lang.Object
  extended by edu.uci.ics.jung.visualization.annotations.AnnotationManager

public class AnnotationManager
extends Object

handles the selection of annotations, and the support for the tools to draw them at specific layers.

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

Field Summary
protected  AnnotationRenderer annotationRenderer
           
protected  AnnotationPaintable lowerAnnotationPaintable
           
protected  RenderContext rc
           
protected  AffineTransformer transformer
           
protected  AnnotationPaintable upperAnnotationPaintable
           
 
Constructor Summary
AnnotationManager(RenderContext rc)
           
 
Method Summary
 void add(Annotation.Layer layer, Annotation annotation)
           
 Annotation getAnnotation(Point2D p)
           
 Annotation getAnnotation(Point2D p, Collection<Annotation> annotations)
           
 AnnotationPaintable getAnnotationPaintable(Annotation.Layer layer)
           
protected  AnnotationPaintable getLowerAnnotationPaintable()
           
protected  AnnotationPaintable getUpperAnnotationPaintable()
           
 Component prepareRenderer(RenderContext rc, AnnotationRenderer annotationRenderer, Object value)
           
 void remove(Annotation annotation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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(Point2D p)

getAnnotation

public Annotation getAnnotation(Point2D p,
                                Collection<Annotation> annotations)

prepareRenderer

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


Copyright © 2008 null. All Rights Reserved.