Package gov.nasa.worldwind.layers.Earth
Class MGRSGraticuleLayer
- java.lang.Object
-
- gov.nasa.worldwind.avlist.AVListImpl
-
- gov.nasa.worldwind.WWObjectImpl
-
- gov.nasa.worldwind.layers.AbstractLayer
-
- gov.nasa.worldwind.layers.AbstractGraticuleLayer
-
- gov.nasa.worldwind.layers.Earth.UTMBaseGraticuleLayer
-
- gov.nasa.worldwind.layers.Earth.MGRSGraticuleLayer
-
- All Implemented Interfaces:
AVList
,Disposable
,MessageListener
,Layer
,Restorable
,WWObject
,java.beans.PropertyChangeListener
,java.util.EventListener
public class MGRSGraticuleLayer extends UTMBaseGraticuleLayer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class gov.nasa.worldwind.layers.Earth.UTMBaseGraticuleLayer
UTMBaseGraticuleLayer.MetricScaleSupport, UTMBaseGraticuleLayer.SquareGrid, UTMBaseGraticuleLayer.SquareZone
-
Nested classes/interfaces inherited from class gov.nasa.worldwind.layers.AbstractGraticuleLayer
AbstractGraticuleLayer.GridElement
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
GRATICULE_100000M
Graticule for the 100,000 meter grid, nested inside the UTM grid.static java.lang.String
GRATICULE_10000M
Graticule for the 10,000 meter grid, nested inside the UTM grid.static java.lang.String
GRATICULE_1000M
Graticule for the 1,000 meter grid, nested inside the UTM grid.static java.lang.String
GRATICULE_100M
Graticule for the 100 meter grid, nested inside the UTM grid.static java.lang.String
GRATICULE_10M
Graticule for the 10 meter grid, nested inside the UTM grid.static java.lang.String
GRATICULE_1M
Graticule for the 1 meter grid, nested inside the UTM grid.static java.lang.String
GRATICULE_UTM_GRID
Graticule for the UTM grid.-
Fields inherited from class gov.nasa.worldwind.layers.Earth.UTMBaseGraticuleLayer
frameCount, GRATICULE_UTM, metricScaleSupport, ONEHT, UTM_MAX_LATITUDE, UTM_MIN_LATITUDE
-
Fields inherited from class gov.nasa.worldwind.layers.AbstractGraticuleLayer
frameTimeStamp, globe, graticuleSupport, gridElements, lastEyePoint, lastProjection, lastVerticalExaggeration, lastViewFOV, lastViewHeading, lastViewPitch, LINE_STYLE_DASHED, LINE_STYLE_DOTTED, LINE_STYLE_SOLID, terrainConformance
-
-
Constructor Summary
Constructors Constructor Description MGRSGraticuleLayer()
Creates a newMGRSGraticuleLayer
, with default graticule attributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
clear(DrawContext dc)
protected Sector
computeVisibleSector(DrawContext dc)
java.awt.Color
getGraticuleLineColor(java.lang.String graticuleType)
Returns the line color of the specified graticule.java.lang.String
getGraticuleLineStyle(java.lang.String graticuleType)
Returns the line rendering style of the specified graticule.double
getGraticuleLineWidth(java.lang.String graticuleType)
Returns the line width of the specified graticule.java.awt.Color
getLabelColor(java.lang.String graticuleType)
Returns the label color of the specified graticule.java.awt.Font
getLabelFont(java.lang.String graticuleType)
Returns the label font of the specified graticule.java.lang.String
getMaximumGraticuleResolution()
Returns the maxiumum resolution graticule that will be rendered, or null if no graticules will be rendered.protected java.lang.String[]
getOrderedTypes()
protected java.lang.String
getTypeFor(int resolution)
protected void
initRenderingParams()
boolean
isDrawLabels(java.lang.String graticuleType)
Returns whether specified graticule labels will be rendered.protected void
selectMGRSRenderables(DrawContext dc, Sector vs)
protected void
selectRenderables(DrawContext dc)
Select the visible grid elementsvoid
setDrawLabels(boolean drawLabels)
Sets whether all graticule labels will be rendered.void
setDrawLabels(boolean drawLabels, java.lang.Iterable<java.lang.String> graticuleType)
Sets whether the specified graticule labels will be rendered.void
setDrawLabels(boolean drawLabels, java.lang.String graticuleType)
Sets whether the specified graticule labels will be rendered.void
setGraticuleLineColor(java.awt.Color color)
Sets the line rendering color for all graticules.void
setGraticuleLineColor(java.awt.Color color, java.lang.Iterable<java.lang.String> graticuleType)
Sets the line rendering color for the specified graticules.void
setGraticuleLineColor(java.awt.Color color, java.lang.String graticuleType)
Sets the line rendering color for the specified graticule.void
setGraticuleLineStyle(java.lang.String lineStyle)
Sets the line rendering style for all graticules.void
setGraticuleLineStyle(java.lang.String lineStyle, java.lang.Iterable<java.lang.String> graticuleType)
Sets the line rendering style for the specified graticules.void
setGraticuleLineStyle(java.lang.String lineStyle, java.lang.String graticuleType)
Sets the line rendering style for the specified graticule.void
setGraticuleLineWidth(double lineWidth)
Sets the line rendering width for all graticules.void
setGraticuleLineWidth(double lineWidth, java.lang.Iterable<java.lang.String> graticuleType)
Sets the line rendering width for the specified graticules.void
setGraticuleLineWidth(double lineWidth, java.lang.String graticuleType)
Sets the line rendering width for the specified graticule.void
setLabelColor(java.awt.Color color)
Sets the label rendering color for all graticules.void
setLabelColor(java.awt.Color color, java.lang.Iterable<java.lang.String> graticuleType)
Sets the label rendering color for the specified graticules.void
setLabelColor(java.awt.Color color, java.lang.String graticuleType)
Sets the label rendering color for the specified graticule.void
setLabelFont(java.awt.Font font)
Sets the label rendering font for all graticules.void
setLabelFont(java.awt.Font font, java.lang.Iterable<java.lang.String> graticuleType)
Sets the label rendering font for the specified graticules.void
setLabelFont(java.awt.Font font, java.lang.String graticuleType)
Sets the label rendering font for the specified graticule.void
setMaximumGraticuleResolution(java.lang.String graticuleType)
Sets the maxiumum resolution graticule that will be rendered.-
Methods inherited from class gov.nasa.worldwind.layers.Earth.UTMBaseGraticuleLayer
computePosition, computePositionFromUPS, computePositionFromUTM, createSquaresGrid, getGraticuleLineColor, getGraticuleLineStyle, getGraticuleLineWidth, getLabelColor, getLabelFont, isDrawGraticule, isDrawLabels, setDrawGraticule
-
Methods inherited from class gov.nasa.worldwind.layers.AbstractGraticuleLayer
addRenderable, computeAltitudeAboveGround, computeLabelOffset, computeTerrainConformance, computeTruncatedSegment, createLineRenderable, doPreRender, doRender, getDeltaLongitude, getRenderingParams, getRestorableState, getSurfacePoint, greatCircleIntersectionAtLatitude, greatCircleIntersectionAtLongitude, greatCircleMidPoint, isDrawGraticule, needsToUpdate, removeAllRenderables, renderGraticule, restoreState, setDrawGraticule, setRenderingParams
-
Methods inherited from class gov.nasa.worldwind.layers.AbstractLayer
createLayerConfigElements, dispose, doPick, getDataFileStore, getExpiryTime, getLayerConfigParams, getMaxActiveAltitude, getMaxEffectiveAltitude, getMinActiveAltitude, getMinEffectiveAltitude, getName, getOpacity, getScale, getScreenCredit, isAtMaxResolution, isEnabled, isLayerActive, isLayerConfigDocument, isLayerInView, isMultiResolution, isNetworkRetrievalEnabled, isPickEnabled, pick, preRender, render, setDataFileStore, setEnabled, setExpiryTime, setMaxActiveAltitude, setMinActiveAltitude, setName, setNetworkRetrievalEnabled, setOpacity, setPickEnabled, setScreenCredit, toString
-
Methods inherited from class gov.nasa.worldwind.WWObjectImpl
onMessage, propertyChange
-
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
-
Methods inherited from class java.lang.Object
clone, equals, 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 gov.nasa.worldwind.event.MessageListener
onMessage
-
-
-
-
Field Detail
-
GRATICULE_UTM_GRID
public static final java.lang.String GRATICULE_UTM_GRID
Graticule for the UTM grid.- See Also:
- Constant Field Values
-
GRATICULE_100000M
public static final java.lang.String GRATICULE_100000M
Graticule for the 100,000 meter grid, nested inside the UTM grid.- See Also:
- Constant Field Values
-
GRATICULE_10000M
public static final java.lang.String GRATICULE_10000M
Graticule for the 10,000 meter grid, nested inside the UTM grid.- See Also:
- Constant Field Values
-
GRATICULE_1000M
public static final java.lang.String GRATICULE_1000M
Graticule for the 1,000 meter grid, nested inside the UTM grid.- See Also:
- Constant Field Values
-
GRATICULE_100M
public static final java.lang.String GRATICULE_100M
Graticule for the 100 meter grid, nested inside the UTM grid.- See Also:
- Constant Field Values
-
GRATICULE_10M
public static final java.lang.String GRATICULE_10M
Graticule for the 10 meter grid, nested inside the UTM grid.- See Also:
- Constant Field Values
-
GRATICULE_1M
public static final java.lang.String GRATICULE_1M
Graticule for the 1 meter grid, nested inside the UTM grid.- See Also:
- Constant Field Values
-
-
Method Detail
-
getMaximumGraticuleResolution
public java.lang.String getMaximumGraticuleResolution()
Returns the maxiumum resolution graticule that will be rendered, or null if no graticules will be rendered. By default, all graticules are rendered, and this will return GRATICULE_1M.- Returns:
- maximum resolution rendered.
-
setMaximumGraticuleResolution
public void setMaximumGraticuleResolution(java.lang.String graticuleType)
Sets the maxiumum resolution graticule that will be rendered.- Parameters:
graticuleType
- one of GRATICULE_UTM, GRATICULE_UTM_GRID, GRATICULE_100000M, GRATICULE_10000M, GRATICULE_1000M, GRATICULE_100M, GRATICULE_10M, or GRATICULE_1M.- Throws:
java.lang.IllegalArgumentException
- ifgraticuleType
is null, or ifgraticuleType
is not a valid type.
-
getGraticuleLineColor
public java.awt.Color getGraticuleLineColor(java.lang.String graticuleType)
Returns the line color of the specified graticule.- Overrides:
getGraticuleLineColor
in classAbstractGraticuleLayer
- Parameters:
graticuleType
- one of GRATICULE_UTM, GRATICULE_UTM_GRID, GRATICULE_100000M, GRATICULE_10000M, GRATICULE_1000M, GRATICULE_100M, GRATICULE_10M, or GRATICULE_1M.- Returns:
- Color of the the graticule line.
- Throws:
java.lang.IllegalArgumentException
- ifgraticuleType
is null, or ifgraticuleType
is not a valid type.
-
setGraticuleLineColor
public void setGraticuleLineColor(java.awt.Color color, java.lang.String graticuleType)
Sets the line rendering color for the specified graticule.- Overrides:
setGraticuleLineColor
in classAbstractGraticuleLayer
- Parameters:
color
- the line color for the specified graticule.graticuleType
- one of GRATICULE_UTM, GRATICULE_UTM_GRID, GRATICULE_100000M, GRATICULE_10000M, GRATICULE_1000M, GRATICULE_100M, GRATICULE_10M, or GRATICULE_1M.- Throws:
java.lang.IllegalArgumentException
- ifcolor
is null, ifgraticuleType
is null, or ifgraticuleType
is not a valid type.
-
setGraticuleLineColor
public void setGraticuleLineColor(java.awt.Color color, java.lang.Iterable<java.lang.String> graticuleType)
Sets the line rendering color for the specified graticules.- Parameters:
color
- the line color for the specified graticules.graticuleType
- one of GRATICULE_UTM, GRATICULE_UTM_GRID, GRATICULE_100000M, GRATICULE_10000M, GRATICULE_1000M, GRATICULE_100M, GRATICULE_10M, or GRATICULE_1M.- Throws:
java.lang.IllegalArgumentException
- ifcolor
is null, ifgraticuleType
is null, or ifgraticuleType
is not a valid type.
-
setGraticuleLineColor
public void setGraticuleLineColor(java.awt.Color color)
Sets the line rendering color for all graticules.- Overrides:
setGraticuleLineColor
in classUTMBaseGraticuleLayer
- Parameters:
color
- the line color.- Throws:
java.lang.IllegalArgumentException
- ifcolor
is null.
-
getGraticuleLineWidth
public double getGraticuleLineWidth(java.lang.String graticuleType)
Returns the line width of the specified graticule.- Overrides:
getGraticuleLineWidth
in classAbstractGraticuleLayer
- Parameters:
graticuleType
- one of GRATICULE_UTM, GRATICULE_UTM_GRID, GRATICULE_100000M, GRATICULE_10000M, GRATICULE_1000M, GRATICULE_100M, GRATICULE_10M, or GRATICULE_1M.- Returns:
- width of the graticule line.
- Throws:
java.lang.IllegalArgumentException
- ifgraticuleType
is null, or ifgraticuleType
is not a valid type.
-
setGraticuleLineWidth
public void setGraticuleLineWidth(double lineWidth, java.lang.String graticuleType)
Sets the line rendering width for the specified graticule.- Overrides:
setGraticuleLineWidth
in classAbstractGraticuleLayer
- Parameters:
lineWidth
- the line rendering width for the specified graticule.graticuleType
- one of GRATICULE_UTM, GRATICULE_UTM_GRID, GRATICULE_100000M, GRATICULE_10000M, GRATICULE_1000M, GRATICULE_100M, GRATICULE_10M, or GRATICULE_1M.- Throws:
java.lang.IllegalArgumentException
- ifgraticuleType
is null, or ifgraticuleType
is not a valid type.
-
setGraticuleLineWidth
public void setGraticuleLineWidth(double lineWidth, java.lang.Iterable<java.lang.String> graticuleType)
Sets the line rendering width for the specified graticules.- Parameters:
lineWidth
- the line rendering width for the specified graticules.graticuleType
- one of GRATICULE_UTM, GRATICULE_UTM_GRID, GRATICULE_100000M, GRATICULE_10000M, GRATICULE_1000M, GRATICULE_100M, GRATICULE_10M, or GRATICULE_1M.- Throws:
java.lang.IllegalArgumentException
- ifgraticuleType
is null, or ifgraticuleType
is not a valid type.
-
setGraticuleLineWidth
public void setGraticuleLineWidth(double lineWidth)
Sets the line rendering width for all graticules.- Overrides:
setGraticuleLineWidth
in classUTMBaseGraticuleLayer
- Parameters:
lineWidth
- the line rendering width.
-
getGraticuleLineStyle
public java.lang.String getGraticuleLineStyle(java.lang.String graticuleType)
Returns the line rendering style of the specified graticule.- Overrides:
getGraticuleLineStyle
in classAbstractGraticuleLayer
- Parameters:
graticuleType
- one of GRATICULE_UTM, GRATICULE_UTM_GRID, GRATICULE_100000M, GRATICULE_10000M, GRATICULE_1000M, GRATICULE_100M, GRATICULE_10M, or GRATICULE_1M.- Returns:
- line rendering style of the graticule.
- Throws:
java.lang.IllegalArgumentException
- ifgraticuleType
is null, or ifgraticuleType
is not a valid type.
-
setGraticuleLineStyle
public void setGraticuleLineStyle(java.lang.String lineStyle, java.lang.String graticuleType)
Sets the line rendering style for the specified graticule.- Overrides:
setGraticuleLineStyle
in classAbstractGraticuleLayer
- Parameters:
lineStyle
- the line rendering style for the specified graticule. One of LINE_STYLE_PLAIN, LINE_STYLE_DASHED, or LINE_STYLE_DOTTED.graticuleType
- one of GRATICULE_UTM, GRATICULE_UTM_GRID, GRATICULE_100000M, GRATICULE_10000M, GRATICULE_1000M, GRATICULE_100M, GRATICULE_10M, or GRATICULE_1M- Throws:
java.lang.IllegalArgumentException
- iflineStyle
is null, ifgraticuleType
is null, or ifgraticuleType
is not a valid type.
-
setGraticuleLineStyle
public void setGraticuleLineStyle(java.lang.String lineStyle, java.lang.Iterable<java.lang.String> graticuleType)
Sets the line rendering style for the specified graticules.- Parameters:
lineStyle
- the line rendering style for the specified graticules. One of LINE_STYLE_PLAIN, LINE_STYLE_DASHED, or LINE_STYLE_DOTTED.graticuleType
- one of GRATICULE_UTM, GRATICULE_UTM_GRID, GRATICULE_100000M, GRATICULE_10000M, GRATICULE_1000M, GRATICULE_100M, GRATICULE_10M, or GRATICULE_1M- Throws:
java.lang.IllegalArgumentException
- iflineStyle
is null, ifgraticuleType
is null, or ifgraticuleType
is not a valid type.
-
setGraticuleLineStyle
public void setGraticuleLineStyle(java.lang.String lineStyle)
Sets the line rendering style for all graticules.- Overrides:
setGraticuleLineStyle
in classUTMBaseGraticuleLayer
- Parameters:
lineStyle
- the line rendering style. One of LINE_STYLE_PLAIN, LINE_STYLE_DASHED, or LINE_STYLE_DOTTED.- Throws:
java.lang.IllegalArgumentException
- iflineStyle
is null.
-
isDrawLabels
public boolean isDrawLabels(java.lang.String graticuleType)
Returns whether specified graticule labels will be rendered.- Overrides:
isDrawLabels
in classAbstractGraticuleLayer
- Parameters:
graticuleType
- one of GRATICULE_UTM, GRATICULE_UTM_GRID, GRATICULE_100000M, GRATICULE_10000M, GRATICULE_1000M, GRATICULE_100M, GRATICULE_10M, or GRATICULE_1M.- Returns:
- true if graticule labels are will be rendered; false otherwise.
- Throws:
java.lang.IllegalArgumentException
- ifgraticuleType
is null, or ifgraticuleType
is not a valid type.
-
setDrawLabels
public void setDrawLabels(boolean drawLabels, java.lang.String graticuleType)
Sets whether the specified graticule labels will be rendered. If true, the graticule labels will be rendered. Otherwise, the graticule labels will not be rendered, but other graticules will not be affected.- Overrides:
setDrawLabels
in classAbstractGraticuleLayer
- Parameters:
drawLabels
- true to render graticule labels; false to disable rendering.graticuleType
- one of GRATICULE_UTM, GRATICULE_UTM_GRID, GRATICULE_100000M, GRATICULE_10000M, GRATICULE_1000M, GRATICULE_100M, GRATICULE_10M, or GRATICULE_1M.- Throws:
java.lang.IllegalArgumentException
- ifgraticuleType
is null, or ifgraticuleType
is not a valid type.
-
setDrawLabels
public void setDrawLabels(boolean drawLabels, java.lang.Iterable<java.lang.String> graticuleType)
Sets whether the specified graticule labels will be rendered. If true, the graticule labels will be rendered. Otherwise, the graticule labels will not be rendered, but other graticules will not be affected.- Parameters:
drawLabels
- true to render graticule labels; false to disable rendering.graticuleType
- one of GRATICULE_UTM, GRATICULE_UTM_GRID, GRATICULE_100000M, GRATICULE_10000M, GRATICULE_1000M, GRATICULE_100M, GRATICULE_10M, or GRATICULE_1M.- Throws:
java.lang.IllegalArgumentException
- ifgraticuleType
is null, or ifgraticuleType
is not a valid type.
-
setDrawLabels
public void setDrawLabels(boolean drawLabels)
Sets whether all graticule labels will be rendered. If true, all graticule labels will be rendered. Otherwise, all graticule labels will not be rendered.- Overrides:
setDrawLabels
in classUTMBaseGraticuleLayer
- Parameters:
drawLabels
- true to render all graticule labels; false to disable rendering.
-
getLabelColor
public java.awt.Color getLabelColor(java.lang.String graticuleType)
Returns the label color of the specified graticule.- Overrides:
getLabelColor
in classAbstractGraticuleLayer
- Parameters:
graticuleType
- one of GRATICULE_UTM, GRATICULE_UTM_GRID, GRATICULE_100000M, GRATICULE_10000M, GRATICULE_1000M, GRATICULE_100M, GRATICULE_10M, or GRATICULE_1M.- Returns:
- Color of the the graticule label.
- Throws:
java.lang.IllegalArgumentException
- ifgraticuleType
is null, or ifgraticuleType
is not a valid type.
-
setLabelColor
public void setLabelColor(java.awt.Color color, java.lang.String graticuleType)
Sets the label rendering color for the specified graticule.- Overrides:
setLabelColor
in classAbstractGraticuleLayer
- Parameters:
color
- the label color for the specified graticule.graticuleType
- one of GRATICULE_UTM, GRATICULE_UTM_GRID, GRATICULE_100000M, GRATICULE_10000M, GRATICULE_1000M, GRATICULE_100M, GRATICULE_10M, or GRATICULE_1M.- Throws:
java.lang.IllegalArgumentException
- ifcolor
is null, ifgraticuleType
is null, or ifgraticuleType
is not a valid type.
-
setLabelColor
public void setLabelColor(java.awt.Color color, java.lang.Iterable<java.lang.String> graticuleType)
Sets the label rendering color for the specified graticules.- Parameters:
color
- the label color for the specified graticules.graticuleType
- one of GRATICULE_UTM, GRATICULE_UTM_GRID, GRATICULE_100000M, GRATICULE_10000M, GRATICULE_1000M, GRATICULE_100M, GRATICULE_10M, or GRATICULE_1M.- Throws:
java.lang.IllegalArgumentException
- ifcolor
is null, ifgraticuleType
is null, or ifgraticuleType
is not a valid type.
-
setLabelColor
public void setLabelColor(java.awt.Color color)
Sets the label rendering color for all graticules.- Overrides:
setLabelColor
in classUTMBaseGraticuleLayer
- Parameters:
color
- the label color.- Throws:
java.lang.IllegalArgumentException
- ifcolor
is null.
-
getLabelFont
public java.awt.Font getLabelFont(java.lang.String graticuleType)
Returns the label font of the specified graticule.- Overrides:
getLabelFont
in classAbstractGraticuleLayer
- Parameters:
graticuleType
- one of GRATICULE_UTM, GRATICULE_UTM_GRID, GRATICULE_100000M, GRATICULE_10000M, GRATICULE_1000M, GRATICULE_100M, GRATICULE_10M, or GRATICULE_1M.- Returns:
- Font of the graticule label.
- Throws:
java.lang.IllegalArgumentException
- ifgraticuleType
is null, or ifgraticuleType
is not a valid type.
-
setLabelFont
public void setLabelFont(java.awt.Font font, java.lang.String graticuleType)
Sets the label rendering font for the specified graticule.- Overrides:
setLabelFont
in classAbstractGraticuleLayer
- Parameters:
font
- the label font for the specified graticule.graticuleType
- one of GRATICULE_UTM, GRATICULE_UTM_GRID, GRATICULE_100000M, GRATICULE_10000M, GRATICULE_1000M, GRATICULE_100M, GRATICULE_10M, or GRATICULE_1M.- Throws:
java.lang.IllegalArgumentException
- iffont
is null, ifgraticuleType
is null, or ifgraticuleType
is not a valid type.
-
setLabelFont
public void setLabelFont(java.awt.Font font, java.lang.Iterable<java.lang.String> graticuleType)
Sets the label rendering font for the specified graticules.- Parameters:
font
- the label font for the specified graticules.graticuleType
- one of GRATICULE_UTM, GRATICULE_UTM_GRID, GRATICULE_100000M, GRATICULE_10000M, GRATICULE_1000M, GRATICULE_100M, GRATICULE_10M, or GRATICULE_1M.- Throws:
java.lang.IllegalArgumentException
- iffont
is null, ifgraticuleType
is null, or ifgraticuleType
is not a valid type.
-
setLabelFont
public void setLabelFont(java.awt.Font font)
Sets the label rendering font for all graticules.- Overrides:
setLabelFont
in classUTMBaseGraticuleLayer
- Parameters:
font
- the label font.- Throws:
java.lang.IllegalArgumentException
- iffont
is null.
-
initRenderingParams
protected void initRenderingParams()
- Overrides:
initRenderingParams
in classUTMBaseGraticuleLayer
-
getOrderedTypes
protected java.lang.String[] getOrderedTypes()
-
getTypeFor
protected java.lang.String getTypeFor(int resolution)
- Overrides:
getTypeFor
in classUTMBaseGraticuleLayer
-
clear
protected void clear(DrawContext dc)
- Overrides:
clear
in classAbstractGraticuleLayer
-
computeVisibleSector
protected Sector computeVisibleSector(DrawContext dc)
-
selectRenderables
protected void selectRenderables(DrawContext dc)
Description copied from class:UTMBaseGraticuleLayer
Select the visible grid elements- Overrides:
selectRenderables
in classUTMBaseGraticuleLayer
- Parameters:
dc
- the currentDrawContext
.
-
selectMGRSRenderables
protected void selectMGRSRenderables(DrawContext dc, Sector vs)
-
-