Package noaa.coastwatch.render
Class AnnotationElement
java.lang.Object
noaa.coastwatch.render.AnnotationElement
- Direct Known Subclasses:
PictureElement
,TextElement
An annotation element handles the specific information for
annotation of data with one symbol or string. Elements may be
grouped together to compose a data annotation overlay.
- Since:
- 3.1.1
- Author:
- Peter Hollemans
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Area
Gets the element bounding area.Gets the element bounding rectangle.abstract void
render
(Graphics2D g, Color foreground, Color background) Renders the element graphics.
-
Constructor Details
-
AnnotationElement
public AnnotationElement()
-
-
Method Details
-
render
Renders the element graphics.- Parameters:
g
- the graphics object for drawing.foreground
- the foreground element color.background
- the background element color or null for no background.
-
getArea
Gets the element bounding area.- Parameters:
g
- the graphics object for drawing.
-
getBounds
Gets the element bounding rectangle.- Parameters:
g
- the graphics object for drawing.
-