public class TopographyOverlay extends LineOverlay
ContourGenerator
class. ETOP05 data has a spatial resolution of 5 minutes and a
digitization accuracy of 1 meter. Information on ETOP05 may be
found at:
http://www.ngdc.noaa.gov/mgg/global/global.html
http://sis.agr.gc.ca/cansis/nsdb/ecostrat/elevation.html
Modifier and Type | Field and Description |
---|---|
static int[] |
BATH_LEVELS
The default bathymetry contour levels.
|
static int[] |
TOPO_LEVELS
The default topography contour levels.
|
drawingShadow
alpha, lastTrans, prepared
Constructor and Description |
---|
TopographyOverlay(java.awt.Color color)
Constructs a new topography overlay.
|
TopographyOverlay(java.awt.Color color,
int layer,
java.awt.Stroke stroke)
Constructs a new topography overlay.
|
Modifier and Type | Method and Description |
---|---|
protected void |
draw(java.awt.Graphics2D g,
EarthDataView view)
Draws the overlay graphics.
|
int[] |
getLevels()
Gets the topography levels.
|
protected void |
prepare(java.awt.Graphics2D g,
EarthDataView view)
Prepares the overlay graphics prior to drawing.
|
void |
setLevels(int[] levels)
Sets the topography levels.
|
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 static final int[] TOPO_LEVELS
public static final int[] BATH_LEVELS
public TopographyOverlay(java.awt.Color color, int layer, java.awt.Stroke stroke) throws java.io.IOException
color
- the overlay color.layer
- the overlay layer number.stroke
- the stroke to use for vector paths.java.io.IOException
- if a problem occurs accessing the topography data.public TopographyOverlay(java.awt.Color color) throws java.io.IOException
BasicStroke
.color
- the overlay color.java.io.IOException
- if a problem occurs accessing the topography data.public int[] getLevels()
public void setLevels(int[] levels)
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.