public class PolygonFeatureOverlay extends PolygonOverlay
PolygonFeatureOverlay
class annotes a data view with
earth polygons from an PolygonFeatureSource
.drawingShadow
alpha, lastTrans, prepared
Constructor and Description |
---|
PolygonFeatureOverlay(java.awt.Color color,
int layer,
java.awt.Stroke stroke,
java.awt.Color fillColor,
PolygonFeatureSource source)
Constructs a new overlay.
|
PolygonFeatureOverlay(java.awt.Color color,
PolygonFeatureSource source)
Constructs a new overlay.
|
Modifier and Type | Method and Description |
---|---|
protected void |
draw(java.awt.Graphics2D g,
EarthDataView view)
Draws the overlay graphics.
|
protected void |
prepare(java.awt.Graphics2D g,
EarthDataView view)
Prepares the overlay graphics prior to drawing.
|
getColors, getFillColor, getFillColorWithAlpha, setFillColor
clip, drawShadow, getDropShadow, getShadowColor, getStroke, render, setDropShadow, setStroke
clone, compareTo, getAlphaVersion, getColor, getColorWithAlpha, getLayer, getMetadataAtPoint, getName, getTransparency, getVisible, hasMetadata, invalidate, isPrepared, needsPrepare, setColor, setLayer, setName, setTransparency, setVisible
public PolygonFeatureOverlay(java.awt.Color color, int layer, java.awt.Stroke stroke, java.awt.Color fillColor, PolygonFeatureSource source)
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.public PolygonFeatureOverlay(java.awt.Color color, PolygonFeatureSource source)
BasicStroke
.color
- the overlay color.source
- the source for polygon data.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.