public class SurveyOverlay extends LineOverlay
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.drawingShadow
alpha, lastTrans, prepared
Constructor and Description |
---|
SurveyOverlay(EarthDataSurvey survey,
java.awt.Color color)
Creates a new survey overlay with the specified survey and color.
|
Modifier and Type | Method and Description |
---|---|
protected void |
draw(java.awt.Graphics2D g,
EarthDataView view)
Draws the overlay graphics.
|
EarthDataSurvey |
getSurvey()
Gets the survey for this overlay.
|
protected boolean |
needsPrepare()
Returns false as this class needs no preparation.
|
protected void |
prepare(java.awt.Graphics2D g,
EarthDataView view)
Prepares the overlay graphics prior to drawing.
|
clip, drawShadow, getDropShadow, getShadowColor, getStroke, render, setDropShadow, setStroke
clone, compareTo, getAlphaVersion, getColor, getColors, getColorWithAlpha, getLayer, getMetadataAtPoint, getName, getTransparency, getVisible, hasMetadata, invalidate, isPrepared, setColor, setLayer, setName, setTransparency, setVisible
public SurveyOverlay(EarthDataSurvey survey, java.awt.Color color)
BasicStroke
.public EarthDataSurvey getSurvey()
protected boolean needsPrepare()
needsPrepare
in class EarthDataOverlay
protected void prepare(java.awt.Graphics2D g, EarthDataView view)
EarthDataOverlay
prepare
in class EarthDataOverlay
g
- the graphics object for drawing.view
- the earth data view.protected void draw(java.awt.Graphics2D g, EarthDataView view)
EarthDataOverlay
draw
in class EarthDataOverlay
g
- the graphics object for drawing.view
- the earth data view.