Class AbstractGraticuleLayer
- java.lang.Object
-
- gov.nasa.worldwind.layer.AbstractLayer
-
- gov.nasa.worldwind.layer.graticule.AbstractGraticuleLayer
-
- All Implemented Interfaces:
Layer
- Direct Known Subclasses:
AbstractUTMGraticuleLayer
,GARSGraticuleLayer
,LatLonGraticuleLayer
public abstract class AbstractGraticuleLayer extends AbstractLayer
Displays a graticule.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doRender(RenderContext rc)
Color
getGraticuleLineColor(java.lang.String key)
Returns the graticule line Color.double
getGraticuleLineWidth(java.lang.String key)
Returns the graticule line width.Color
getLabelColor(java.lang.String key)
Returns the graticule label Color.java.lang.Float
getLabelSize(java.lang.String key)
Returns the Size used for graticule labels.android.graphics.Typeface
getLabelTypeface(java.lang.String key)
Returns the Typeface used for graticule labels.boolean
isDrawGraticule(java.lang.String key)
Returns whether or not graticule lines will be rendered.boolean
isDrawLabels(java.lang.String key)
Returns whether or not graticule labels will be rendered.void
setDrawGraticule(boolean drawGraticule, java.lang.String key)
Sets whether or not graticule lines will be rendered.void
setDrawLabels(boolean drawLabels, java.lang.String key)
Sets whether or not graticule labels will be rendered.void
setGraticuleLineColor(Color color, java.lang.String key)
Sets the graticule line Color.void
setGraticuleLineWidth(double lineWidth, java.lang.String key)
Sets the graticule line width.void
setLabelColor(Color color, java.lang.String key)
Sets the graticule label Color.void
setLabelSize(java.lang.Float size, java.lang.String key)
Sets the Size used for graticule labels.void
setLabelTypeface(android.graphics.Typeface typeface, java.lang.String key)
Sets the Typeface used for graticule labels.-
Methods inherited from class gov.nasa.worldwind.layer.AbstractLayer
getDisplayName, getMaxActiveAltitude, getMinActiveAltitude, getOpacity, getUserProperty, hasUserProperty, isEnabled, isPickEnabled, isWithinActiveAltitudes, putUserProperty, removeUserProperty, render, setDisplayName, setEnabled, setMaxActiveAltitude, setMinActiveAltitude, setOpacity, setPickEnabled
-
-
-
-
Method Detail
-
isDrawGraticule
public boolean isDrawGraticule(java.lang.String key)
Returns whether or not graticule lines will be rendered.- Parameters:
key
- the rendering parameters key.- Returns:
- true if graticule lines will be rendered; false otherwise.
-
setDrawGraticule
public void setDrawGraticule(boolean drawGraticule, java.lang.String key)
Sets whether or not graticule lines will be rendered.- Parameters:
drawGraticule
- true to render graticule lines; false to disable rendering.key
- the rendering parameters key.
-
getGraticuleLineColor
public Color getGraticuleLineColor(java.lang.String key)
Returns the graticule line Color.- Parameters:
key
- the rendering parameters key.- Returns:
- Color used to render graticule lines.
-
setGraticuleLineColor
public void setGraticuleLineColor(Color color, java.lang.String key)
Sets the graticule line Color.- Parameters:
color
- Color that will be used to render graticule lines.key
- the rendering parameters key.
-
getGraticuleLineWidth
public double getGraticuleLineWidth(java.lang.String key)
Returns the graticule line width.- Parameters:
key
- the rendering parameters key.- Returns:
- width of the graticule lines.
-
setGraticuleLineWidth
public void setGraticuleLineWidth(double lineWidth, java.lang.String key)
Sets the graticule line width.- Parameters:
lineWidth
- width of the graticule lines.key
- the rendering parameters key.
-
isDrawLabels
public boolean isDrawLabels(java.lang.String key)
Returns whether or not graticule labels will be rendered.- Parameters:
key
- the rendering parameters key.- Returns:
- true if graticule labels will be rendered; false otherwise.
-
setDrawLabels
public void setDrawLabels(boolean drawLabels, java.lang.String key)
Sets whether or not graticule labels will be rendered.- Parameters:
drawLabels
- true to render graticule labels; false to disable rendering.key
- the rendering parameters key.
-
getLabelColor
public Color getLabelColor(java.lang.String key)
Returns the graticule label Color.- Parameters:
key
- the rendering parameters key.- Returns:
- Color used to render graticule labels.
-
setLabelColor
public void setLabelColor(Color color, java.lang.String key)
Sets the graticule label Color.- Parameters:
color
- Color that will be used to render graticule labels.key
- the rendering parameters key.
-
getLabelTypeface
public android.graphics.Typeface getLabelTypeface(java.lang.String key)
Returns the Typeface used for graticule labels.- Parameters:
key
- the rendering parameters key.- Returns:
- Typeface used to render graticule labels.
-
setLabelTypeface
public void setLabelTypeface(android.graphics.Typeface typeface, java.lang.String key)
Sets the Typeface used for graticule labels.- Parameters:
typeface
- Typeface that will be used to render graticule labels.key
- the rendering parameters key.
-
getLabelSize
public java.lang.Float getLabelSize(java.lang.String key)
Returns the Size used for graticule labels.- Parameters:
key
- the rendering parameters key.- Returns:
- Size used to render graticule labels.
-
setLabelSize
public void setLabelSize(java.lang.Float size, java.lang.String key)
Sets the Size used for graticule labels.- Parameters:
size
- Size that will be used to render graticule labels.key
- the rendering parameters key.
-
doRender
public void doRender(RenderContext rc)
-
-