public class PoliticalOverlay extends LineOverlay
PoliticalOverlay
class annotates an
EarthDataView
with political border lines. Both
state borders and international borders may be selected but by
default, only international borders are rendered.drawingShadow
alpha, lastTrans, prepared
Constructor and Description |
---|
PoliticalOverlay(java.awt.Color color)
Creates a new political overlay with the specified color.
|
Modifier and Type | Method and Description |
---|---|
protected void |
draw(java.awt.Graphics2D g,
EarthDataView view)
Draws the overlay graphics.
|
boolean |
getInternational()
Gets the international borders flag.
|
boolean |
getState()
Gets the state borders flag.
|
protected void |
prepare(java.awt.Graphics2D g,
EarthDataView view)
Prepares the overlay graphics prior to drawing.
|
void |
setInternational(boolean flag)
Sets the international borders flag.
|
void |
setReaderFactory(BinnedGSHHSReaderFactory factory)
Sets the read factory for new border readers.
|
void |
setState(boolean flag)
Sets the state borders flag.
|
clip, drawShadow, getDropShadow, getShadowColor, getStroke, render, setDropShadow, setStroke
clone, compareTo, getAlphaVersion, getColor, getColors, getColorWithAlpha, getLayer, getMetadataAtPoint, getName, getTransparency, getVisible, hasMetadata, invalidate, isPrepared, needsPrepare, setColor, setLayer, setName, setTransparency, setVisible
public PoliticalOverlay(java.awt.Color color)
BasicStroke
color
- the overlay color.public void setReaderFactory(BinnedGSHHSReaderFactory factory)
public boolean getState()
public void setState(boolean flag)
public boolean getInternational()
public void setInternational(boolean flag)
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.