|
NASA World Wind | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.WWObjectImpl
gov.nasa.worldwind.layers.AbstractLayer
gov.nasa.worldwind.layers.AbstractGraticuleLayer
gov.nasa.worldwind.layers.Earth.UTMGraticuleLayer
public class UTMGraticuleLayer
Displays the UTM graticule.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class gov.nasa.worldwind.layers.AbstractGraticuleLayer |
---|
AbstractGraticuleLayer.GridElement |
Field Summary | |
---|---|
static String |
GRATICULE_UTM
|
static String |
LINE_STYLE_DASHED
Dashed line rendering style. |
static String |
LINE_STYLE_DOTTED
Dotted line rendering style. |
static String |
LINE_STYLE_SOLID
Solid line rendering style. |
Fields inherited from class gov.nasa.worldwind.layers.AbstractGraticuleLayer |
---|
graticuleSupport, gridElements |
Fields inherited from class gov.nasa.worldwind.layers.AbstractLayer |
---|
screenCredit |
Fields inherited from class gov.nasa.worldwind.avlist.AVListImpl |
---|
changeSupport |
Constructor Summary | |
---|---|
UTMGraticuleLayer()
|
Method Summary | |
---|---|
void |
doRender(DrawContext dc)
|
Color |
getGraticuleLineColor()
Returns the graticule line Color. |
String |
getGraticuleLineStyle()
Returns the graticule line rendering style. |
double |
getGraticuleLineWidth()
Returns the graticule line width. |
Color |
getLabelColor()
Returns the graticule label Color. |
Font |
getLabelFont()
Returns the Font used for graticule labels. |
boolean |
isDrawGraticule()
Returns whether or not graticule lines will be rendered. |
boolean |
isDrawLabels()
Returns whether or not graticule labels will be rendered. |
protected void |
selectUTMRenderables(DrawContext dc)
Select the visible grid elements |
void |
setDrawGraticule(boolean drawGraticule)
Sets whether or not graticule lines will be rendered. |
void |
setDrawLabels(boolean drawLabels)
Sets whether or not graticule labels will be rendered. |
void |
setGraticuleLineColor(Color color)
Sets the graticule line Color. |
void |
setGraticuleLineStyle(String lineStyle)
Sets the graticule line rendering style. |
void |
setGraticuleLineWidth(double lineWidth)
Sets the graticule line width. |
void |
setLabelColor(Color color)
Sets the graticule label Color. |
void |
setLabelFont(Font font)
Sets the Font used for graticule labels. |
Methods inherited from class gov.nasa.worldwind.layers.AbstractLayer |
---|
dispose, doPick, doPreRender, getExpiryTime, getMaxActiveAltitude, getMinActiveAltitude, getName, getOpacity, getScale, getScreenCredit, isAtMaxResolution, isEnabled, isLayerActive, isLayerInView, isMultiResolution, isNetworkRetrievalEnabled, isPickEnabled, pick, preRender, render, setEnabled, setExpiryTime, setMaxActiveAltitude, setMinActiveAltitude, setName, setNetworkRetrievalEnabled, setOpacity, setPickEnabled, setScreenCredit, toString |
Methods inherited from class gov.nasa.worldwind.WWObjectImpl |
---|
propertyChange |
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl |
---|
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface gov.nasa.worldwind.avlist.AVList |
---|
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues |
Methods inherited from interface java.beans.PropertyChangeListener |
---|
propertyChange |
Field Detail |
---|
public static final String GRATICULE_UTM
public static final String LINE_STYLE_DASHED
- - - - -
public static final String LINE_STYLE_DOTTED
. . . . .
is an example of a dotted line.
public static final String LINE_STYLE_SOLID
_________
Constructor Detail |
---|
public UTMGraticuleLayer()
Method Detail |
---|
public void doRender(DrawContext dc)
doRender
in class AbstractGraticuleLayer
public Color getGraticuleLineColor()
public String getGraticuleLineStyle()
public double getGraticuleLineWidth()
public Color getLabelColor()
public Font getLabelFont()
public boolean isDrawGraticule()
public boolean isDrawLabels()
protected void selectUTMRenderables(DrawContext dc)
dc
- the current DrawContext
.public void setDrawGraticule(boolean drawGraticule)
drawGraticule
- true to render graticule lines; false to disable rendering.public void setDrawLabels(boolean drawLabels)
drawLabels
- true to render graticule labels; false to disable rendering.public void setGraticuleLineColor(Color color)
color
- Color that will be used to render graticule lines.
IllegalArgumentException
- if color
is null.public void setGraticuleLineStyle(String lineStyle)
lineStyle
- rendering style of the graticule lines.
One of LINE_STYLE_PLAIN, LINE_STYLE_DASHED, or LINE_STYLE_DOTTED.
IllegalArgumentException
- if lineStyle
is null.public void setGraticuleLineWidth(double lineWidth)
lineWidth
- width of the graticule lines.public void setLabelColor(Color color)
color
- Color that will be used to render graticule labels.
IllegalArgumentException
- if color
is null.public void setLabelFont(Font font)
font
- Font that will be used to render graticule labels.
IllegalArgumentException
- if font
is null.
|
NASA World Wind | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |