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
drawingShadowFields inherited from class noaa.coastwatch.render.EarthDataOverlay
alpha, lastTrans, prepared -
Constructor Summary
ConstructorsConstructorDescriptionSurveyOverlay(EarthDataSurvey survey, Color color) Creates a new survey overlay with the specified survey and color. -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddraw(Graphics2D g, EarthDataView view) Draws the overlay graphics.Gets the survey for this overlay.protected booleanReturns false as this class needs no preparation.protected voidprepare(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, setStrokeMethods 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:
needsPreparein classEarthDataOverlay- Returns:
- true if this overlay class needs a preparation stage, or false if not.
-
prepare
Description copied from class:EarthDataOverlayPrepares the overlay graphics prior to drawing.- Specified by:
preparein classEarthDataOverlay- Parameters:
g- the graphics object for drawing.view- the earth data view.
-
draw
Description copied from class:EarthDataOverlayDraws the overlay graphics.- Specified by:
drawin classEarthDataOverlay- Parameters:
g- the graphics object for drawing.view- the earth data view.
-