public class LatLonOverlay extends LabeledLineOverlay
LatLonOverlay
class annotates an EarthDataView
view with latitude/longitude grid lines and
labels.drawingShadow
alpha, lastTrans, prepared
Constructor and Description |
---|
LatLonOverlay(java.awt.Color color)
Constructs a new grid overlay.
|
LatLonOverlay(java.awt.Color color,
int layer,
java.awt.Stroke stroke,
boolean manualIncrement,
int inc,
boolean drawLabels,
java.awt.Font font)
Constructs a new grid overlay.
|
Modifier and Type | Method and Description |
---|---|
int |
getIncrement()
Gets the current grid increment value in degrees.
|
protected LineCollection |
getLines(EarthDataView view)
Gets the collection of lines for this overlay.
|
boolean |
getManualIncrement()
Gets the manual grid increment mode flag.
|
void |
setIncrement(int inc)
Sets the grid increment in degrees.
|
void |
setManualIncrement(boolean flag)
Sets the manual grid increment mode flag.
|
draw, getDrawLabels, getFont, getTextDropShadow, prepare, setDrawLabels, setFont, setTextDropShadow
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 LatLonOverlay(java.awt.Color color, int layer, java.awt.Stroke stroke, boolean manualIncrement, int inc, boolean drawLabels, java.awt.Font font)
color
- the overlay color.layer
- the overlay layer number.stroke
- the stroke to use for vector paths.manualIncrement
- the manual increment flag.inc
- the latitude and longitude grid increment in degrees.drawLabels
- the grid labels flag, true if grid labels
should be drawn.font
- the grid labels font. The labels font may be
null if no labels are to be drawn.public LatLonOverlay(java.awt.Color color)
BasicStroke
, the grid increment mode to
automatic, labels to true, and the font to the default font
face, plain style, 12 point.color
- the overlay color.public void setManualIncrement(boolean flag)
public boolean getManualIncrement()
public void setIncrement(int inc)
public int getIncrement()
protected LineCollection getLines(EarthDataView view)
LabeledLineOverlay
LabeledLineOverlay.prepare(java.awt.Graphics2D, noaa.coastwatch.render.EarthDataView)
.getLines
in class LabeledLineOverlay
view
- the earth view for line rendering.