T
- public class Annotation<T>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Annotation.Layer |
Modifier and Type | Field and Description |
---|---|
protected T |
annotation |
protected boolean |
fill |
protected Annotation.Layer |
layer |
protected java.awt.geom.Point2D |
location |
protected java.awt.Paint |
paint |
Constructor and Description |
---|
Annotation(T annotation,
Annotation.Layer layer,
java.awt.Paint paint,
boolean fill,
java.awt.geom.Point2D location) |
Modifier and Type | Method and 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) |
protected T annotation
protected java.awt.Paint paint
protected java.awt.geom.Point2D location
protected Annotation.Layer layer
protected boolean fill
public Annotation(T annotation, Annotation.Layer layer, java.awt.Paint paint, boolean fill, java.awt.geom.Point2D location)
public T getAnnotation()
public void setAnnotation(T annotation)
annotation
- the annotation to setpublic java.awt.geom.Point2D getLocation()
public Annotation.Layer getLayer()
public void setLayer(Annotation.Layer layer)
layer
- the layer to setpublic void setLocation(java.awt.geom.Point2D location)
location
- the location to setpublic java.awt.Paint getPaint()
public void setPaint(java.awt.Paint paint)
paint
- the paint to setpublic boolean isFill()
public void setFill(boolean fill)
fill
- the fill to set