Class Annotation<T>
- java.lang.Object
-
- edu.uci.ics.jung.visualization.annotations.Annotation<T>
-
- Type Parameters:
T
-
public class Annotation<T> extends java.lang.Object
stores an annotation, either a shape or a string
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Annotation.Layer
-
Field Summary
Fields Modifier and Type Field Description protected T
annotation
protected boolean
fill
protected Annotation.Layer
layer
protected java.awt.geom.Point2D
location
protected java.awt.Paint
paint
-
Constructor Summary
Constructors Constructor Description Annotation(T annotation, Annotation.Layer layer, java.awt.Paint paint, boolean fill, java.awt.geom.Point2D location)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getAnnotation()
Annotation.Layer
getLayer()
java.awt.geom.Point2D
getLocation()
java.awt.Paint
getPaint()
boolean
isFill()
void
setAnnotation(T annotation)
void
setFill(boolean fill)
void
setLayer(Annotation.Layer layer)
void
setLocation(java.awt.geom.Point2D location)
void
setPaint(java.awt.Paint paint)
-
-
-
Field Detail
-
annotation
protected T annotation
-
paint
protected java.awt.Paint paint
-
location
protected java.awt.geom.Point2D location
-
layer
protected Annotation.Layer layer
-
fill
protected boolean fill
-
-
Constructor Detail
-
Annotation
public Annotation(T annotation, Annotation.Layer layer, java.awt.Paint paint, boolean fill, java.awt.geom.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 java.awt.geom.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(java.awt.geom.Point2D location)
- Parameters:
location
- the location to set
-
getPaint
public java.awt.Paint getPaint()
- Returns:
- the paint
-
setPaint
public void setPaint(java.awt.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
-
-