edu.uci.ics.jung.visualization.annotations
Class Annotation<T>

java.lang.Object
  extended by edu.uci.ics.jung.visualization.annotations.Annotation<T>
Type Parameters:
T -

public class Annotation<T>
extends Object

stores an annotation, either a shape or a string

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

Nested Class Summary
static class Annotation.Layer
           
 
Field Summary
protected  T annotation
           
protected  boolean fill
           
protected  Annotation.Layer layer
           
protected  Point2D location
           
protected  Paint paint
           
 
Constructor Summary
Annotation(T annotation, Annotation.Layer layer, Paint paint, boolean fill, Point2D location)
           
 
Method Summary
 T getAnnotation()
           
 Annotation.Layer getLayer()
           
 Point2D getLocation()
           
 Paint getPaint()
           
 boolean isFill()
           
 void setAnnotation(T annotation)
           
 void setFill(boolean fill)
           
 void setLayer(Annotation.Layer layer)
           
 void setLocation(Point2D location)
           
 void setPaint(Paint paint)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

annotation

protected T annotation

paint

protected Paint paint

location

protected Point2D location

layer

protected Annotation.Layer layer

fill

protected boolean fill
Constructor Detail

Annotation

public Annotation(T annotation,
                  Annotation.Layer layer,
                  Paint paint,
                  boolean fill,
                  Point2D location)
Method Detail

getAnnotation

public T getAnnotation()
Returns:
the annotation

setAnnotation

public void setAnnotation(T annotation)
Parameters:
annotation - the annotation to set

getLocation

public Point2D getLocation()
Returns:
the location

getLayer

public Annotation.Layer getLayer()
Returns:
the layer

setLayer

public void setLayer(Annotation.Layer layer)
Parameters:
layer - the layer to set

setLocation

public void setLocation(Point2D location)
Parameters:
location - the location to set

getPaint

public Paint getPaint()
Returns:
the paint

setPaint

public void setPaint(Paint paint)
Parameters:
paint - the paint to set

isFill

public boolean isFill()
Returns:
the fill

setFill

public void setFill(boolean fill)
Parameters:
fill - the fill to set


Copyright © 2009. All Rights Reserved.