|
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.Earth.UTMGraticuleLayer
public class UTMGraticuleLayer
Displays the UTM graticule.
Nested Class Summary | |
---|---|
protected class |
UTMGraticuleLayer.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.avlist.AVListImpl |
---|
changeSupport |
Constructor Summary | |
---|---|
UTMGraticuleLayer()
|
Method Summary | |
---|---|
protected void |
addRenderable(Object renderable,
String paramsKey)
|
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. |
protected gov.nasa.worldwind.layers.Earth.GraticuleRenderingParams |
getRenderingParams(String key)
|
String |
getRestorableState()
Returns an XML document string describing the object?s state. |
boolean |
isDrawGraticule()
Returns whether or not graticule lines will be rendered. |
boolean |
isDrawLabels()
Returns whether or not graticule labels will be rendered. |
protected void |
removeAllRenderables()
|
protected void |
renderGraticule(DrawContext dc)
|
void |
restoreState(String stateInXml)
Restores the object?s state to what is described in the specified XML document string. |
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. |
protected void |
setRenderingParams(String key,
gov.nasa.worldwind.layers.Earth.GraticuleRenderingParams renderingParams)
|
Methods inherited from class gov.nasa.worldwind.layers.AbstractLayer |
---|
dispose, doPick, getMaxActiveAltitude, getMinActiveAltitude, getName, getOpacity, getScale, isAtMaxResolution, isEnabled, isLayerActive, isLayerInView, isMultiResolution, isPickEnabled, pick, render, setEnabled, setMaxActiveAltitude, setMinActiveAltitude, setName, setOpacity, setPickEnabled, 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 |
---|
protected void addRenderable(Object renderable, String paramsKey)
public void doRender(DrawContext dc)
doRender
in class AbstractLayer
public Color getGraticuleLineColor()
public String getGraticuleLineStyle()
public double getGraticuleLineWidth()
public Color getLabelColor()
public Font getLabelFont()
protected gov.nasa.worldwind.layers.Earth.GraticuleRenderingParams getRenderingParams(String key)
public String getRestorableState()
Restorable
restoreState
and passing the XML document.
getRestorableState
in interface Restorable
getRestorableState
in class AbstractLayer
public boolean isDrawGraticule()
public boolean isDrawLabels()
protected void removeAllRenderables()
protected void renderGraticule(DrawContext dc)
public void restoreState(String stateInXml)
Restorable
restoreState
in interface Restorable
restoreState
in class AbstractLayer
stateInXml
- an XML document string describing an object's state.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.protected void setRenderingParams(String key, gov.nasa.worldwind.layers.Earth.GraticuleRenderingParams renderingParams)
|
NASA World Wind | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |