T
- the type of the annotation objectpublic class Annotation<T> extends 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 Point2D |
location |
protected Paint |
paint |
Constructor and Description |
---|
Annotation(T annotation,
Annotation.Layer layer,
Paint paint,
boolean fill,
Point2D location) |
Modifier and Type | Method and Description |
---|---|
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) |
protected T annotation
protected Paint paint
protected Point2D location
protected Annotation.Layer layer
protected boolean fill
public Annotation(T annotation, Annotation.Layer layer, Paint paint, boolean fill, Point2D location)
public T getAnnotation()
public void setAnnotation(T annotation)
annotation
- the annotation to setpublic Point2D getLocation()
public Annotation.Layer getLayer()
public void setLayer(Annotation.Layer layer)
layer
- the layer to setpublic void setLocation(Point2D location)
location
- the location to setpublic Paint getPaint()
public void setPaint(Paint paint)
paint
- the paint to setpublic boolean isFill()
public void setFill(boolean fill)
fill
- the fill to setCopyright © 2015. All rights reserved.