Package noaa.coastwatch.render
Class PolygonFeatureOverlay
java.lang.Object
noaa.coastwatch.render.EarthDataOverlay
noaa.coastwatch.render.LineOverlay
noaa.coastwatch.render.PolygonOverlay
noaa.coastwatch.render.PolygonFeatureOverlay
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable
The
PolygonFeatureOverlay
class annotes a data view with
earth polygons from an PolygonFeatureSource
.- Since:
- 3.1.9
- 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
ConstructorDescriptionPolygonFeatureOverlay
(Color color, int layer, Stroke stroke, Color fillColor, PolygonFeatureSource source) Constructs a new overlay.PolygonFeatureOverlay
(Color color, PolygonFeatureSource source) Constructs a new 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.PolygonOverlay
getColors, getFillColor, getFillColorWithAlpha, setFillColor
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, getColorWithAlpha, getLayer, getMetadataAtPoint, getName, getTransparency, getVisible, hasMetadata, invalidate, isPrepared, needsPrepare, setColor, setLayer, setName, setTransparency, setVisible
-
Constructor Details
-
PolygonFeatureOverlay
public PolygonFeatureOverlay(Color color, int layer, Stroke stroke, Color fillColor, PolygonFeatureSource source) Constructs a new overlay.- Parameters:
color
- the overlay color.layer
- the overlay layer number.stroke
- the stroke to use for vector paths.fillColor
- the fill color to use for polygon fills.source
- the source for polygon data.
-
PolygonFeatureOverlay
Constructs a new overlay. The layer number is initialized to 0 and the stroke to the defaultBasicStroke
.- Parameters:
color
- the overlay color.source
- the source for polygon 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.
-