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
drawingShadowFields inherited from class noaa.coastwatch.render.EarthDataOverlay
alpha, lastTrans, prepared -
Constructor Summary
ConstructorsConstructorDescriptionLineFeatureOverlay(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 voiddraw(Graphics2D g, EarthDataView view) Draws the overlay graphics.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, needsPrepare, setColor, setLayer, setName, setTransparency, setVisible, toString
-
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: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.
-