Package noaa.coastwatch.render
Class SurveyOverlay
java.lang.Object
noaa.coastwatch.render.EarthDataOverlay
noaa.coastwatch.render.LineOverlay
noaa.coastwatch.render.SurveyOverlay
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable
The
SurveyOverlay
class may be used to display the
shape of an EarthDataSurvey
object. For point
surveys, the overlay displays a crosshair centered at the point.
For a line survey, a line is drawn between the start and end
points. For a box survey, a rectangle is drawn enclosing the
survey area. For a polygon survey, the polygon itself is drawn.- Since:
- 3.1.7
- Author:
- Peter Hollemans
- See Also:
-
Field Summary
Fields inherited from class noaa.coastwatch.render.LineOverlay
drawingShadow
Fields inherited from class noaa.coastwatch.render.EarthDataOverlay
alpha, lastTrans, prepared
-
Constructor Summary
ConstructorDescriptionSurveyOverlay
(EarthDataSurvey survey, Color color) Creates a new survey overlay with the specified survey and color. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
draw
(Graphics2D g, EarthDataView view) Draws the overlay graphics.Gets the survey for this overlay.protected boolean
Returns false as this class needs no preparation.protected void
prepare
(Graphics2D g, EarthDataView view) Prepares the overlay graphics prior to drawing.Methods inherited from class noaa.coastwatch.render.LineOverlay
clip, drawShadow, getDropShadow, getShadowColor, getStroke, render, setDropShadow, setStroke
Methods inherited from class noaa.coastwatch.render.EarthDataOverlay
clone, compareTo, getAlphaVersion, getColor, getColors, getColorWithAlpha, getLayer, getMetadataAtPoint, getName, getTransparency, getVisible, hasMetadata, invalidate, isPrepared, setColor, setLayer, setName, setTransparency, setVisible, toString
-
Constructor Details
-
SurveyOverlay
Creates a new survey overlay with the specified survey and color. The layer number is initialized to 0, and the stroke to the defaultBasicStroke
.
-
-
Method Details
-
getSurvey
Gets the survey for this overlay. -
needsPrepare
protected boolean needsPrepare()Returns false as this class needs no preparation.- Overrides:
needsPrepare
in classEarthDataOverlay
- Returns:
- true if this overlay class needs a preparation stage, or false if not.
-
prepare
Description copied from class:EarthDataOverlay
Prepares the overlay graphics prior to drawing.- Specified by:
prepare
in classEarthDataOverlay
- Parameters:
g
- the graphics object for drawing.view
- the earth data view.
-
draw
Description copied from class:EarthDataOverlay
Draws the overlay graphics.- Specified by:
draw
in classEarthDataOverlay
- Parameters:
g
- the graphics object for drawing.view
- the earth data view.
-