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
drawingShadowFields inherited from class noaa.coastwatch.render.EarthDataOverlay
alpha, lastTrans, prepared -
Constructor Summary
ConstructorsConstructorDescriptionPolygonFeatureOverlay(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 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.PolygonOverlay
getColors, getFillColor, getFillColorWithAlpha, setFillColorMethods 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, getColorWithAlpha, getLayer, getMetadataAtPoint, getName, getTransparency, getVisible, hasMetadata, invalidate, isPrepared, needsPrepare, setColor, setLayer, setName, setTransparency, setVisible, toString
-
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: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.
-