Class Annotation<T>
java.lang.Object
edu.uci.ics.jung.visualization.annotations.Annotation<T>
- Type Parameters:
T
- the type of the annotation object
stores an annotation, either a shape or a string
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected T
protected boolean
protected Annotation.Layer
protected Point2D
protected Paint
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotation
(T annotation, Annotation.Layer layer, Paint paint, boolean fill, Point2D location) -
Method Summary
Modifier and TypeMethodDescriptiongetLayer()
getPaint()
boolean
isFill()
void
setAnnotation
(T annotation) void
setFill
(boolean fill) void
setLayer
(Annotation.Layer layer) void
setLocation
(Point2D location) void
-
Field Details
-
annotation
-
paint
-
location
-
layer
-
fill
protected boolean fill
-
-
Constructor Details
-
Annotation
public Annotation(T annotation, Annotation.Layer layer, Paint paint, boolean fill, Point2D location)
-
-
Method Details
-
getAnnotation
- Returns:
- the annotation
-
setAnnotation
- Parameters:
annotation
- the annotation to set
-
getLocation
- Returns:
- the location
-
getLayer
- Returns:
- the layer
-
setLayer
- Parameters:
layer
- the layer to set
-
setLocation
- Parameters:
location
- the location to set
-
getPaint
- Returns:
- the paint
-
setPaint
- 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
-