Package noaa.coastwatch.render
Class LineFeatureOverlay
java.lang.Object
noaa.coastwatch.render.EarthDataOverlay
noaa.coastwatch.render.LineOverlay
noaa.coastwatch.render.LineFeatureOverlay
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable
The
LineFeatureOverlay
class annotates a data view
with line features from a line feature source.- Since:
- 3.1.1
- 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
ConstructorDescriptionLineFeatureOverlay
(Color color, int layer, Stroke stroke, LineFeatureSource source) Constructs a new earth vector overlay.LineFeatureOverlay
(Color color, LineFeatureSource source) Constructs a new earth vector overlay. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
draw
(Graphics2D g, EarthDataView view) Draws the overlay graphics.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, needsPrepare, setColor, setLayer, setName, setTransparency, setVisible
-
Constructor Details
-
LineFeatureOverlay
Constructs a new earth vector overlay.- Parameters:
color
- the overlay color.layer
- the overlay layer number.stroke
- the stroke to use for vector paths.source
- the source for vector data.
-
LineFeatureOverlay
Constructs a new earth vector overlay. The layer number is initialized to 0 and the stroke to the defaultBasicStroke
.- Parameters:
color
- the overlay color.source
- the source for vector data.
-
-
Method Details
-
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.
-