Package gov.nasa.worldwind.layers.Earth
Class UTMGraticuleLayer
- 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.UTMGraticuleLayer
-
- All Implemented Interfaces:
AVList
,Disposable
,MessageListener
,Layer
,Restorable
,WWObject
,java.beans.PropertyChangeListener
,java.util.EventListener
public class UTMGraticuleLayer extends UTMBaseGraticuleLayer
Displays the UTM graticule.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
UTMGraticuleLayer.GraticuleTile
-
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 zone grid.protected static int
GRID_COLS
protected static int
GRID_ROWS
protected UTMGraticuleLayer.GraticuleTile[][]
gridTiles
protected static int
MIN_CELL_SIZE_PIXELS
-
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 UTMGraticuleLayer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
clear(DrawContext dc)
protected void
clearTiles()
protected java.lang.String[]
getOrderedTypes()
protected java.lang.String
getTypeFor(int resolution)
protected java.util.ArrayList<UTMGraticuleLayer.GraticuleTile>
getVisibleTiles(DrawContext dc)
protected void
initRenderingParams()
protected void
selectRenderables(DrawContext dc)
Select the visible grid elementsprotected void
selectUTMRenderables(DrawContext dc)
Select the visible grid elements-
Methods inherited from class gov.nasa.worldwind.layers.Earth.UTMBaseGraticuleLayer
computePosition, computePositionFromUPS, computePositionFromUTM, createSquaresGrid, getGraticuleLineColor, getGraticuleLineStyle, getGraticuleLineWidth, getLabelColor, getLabelFont, isDrawGraticule, isDrawLabels, setDrawGraticule, setDrawLabels, setGraticuleLineColor, setGraticuleLineStyle, setGraticuleLineWidth, setLabelColor, setLabelFont
-
Methods inherited from class gov.nasa.worldwind.layers.AbstractGraticuleLayer
addRenderable, computeAltitudeAboveGround, computeLabelOffset, computeTerrainConformance, computeTruncatedSegment, createLineRenderable, doPreRender, doRender, getDeltaLongitude, getGraticuleLineColor, getGraticuleLineStyle, getGraticuleLineWidth, getLabelColor, getLabelFont, getRenderingParams, getRestorableState, getSurfacePoint, greatCircleIntersectionAtLatitude, greatCircleIntersectionAtLongitude, greatCircleMidPoint, isDrawGraticule, isDrawLabels, needsToUpdate, removeAllRenderables, renderGraticule, restoreState, setDrawGraticule, setDrawLabels, setGraticuleLineColor, setGraticuleLineStyle, setGraticuleLineWidth, setLabelColor, setLabelFont, 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 zone 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
-
MIN_CELL_SIZE_PIXELS
protected static final int MIN_CELL_SIZE_PIXELS
- See Also:
- Constant Field Values
-
GRID_ROWS
protected static final int GRID_ROWS
- See Also:
- Constant Field Values
-
GRID_COLS
protected static final int GRID_COLS
- See Also:
- Constant Field Values
-
gridTiles
protected UTMGraticuleLayer.GraticuleTile[][] gridTiles
-
-
Method Detail
-
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
-
selectRenderables
protected void selectRenderables(DrawContext dc)
Description copied from class:UTMBaseGraticuleLayer
Select the visible grid elements- Overrides:
selectRenderables
in classUTMBaseGraticuleLayer
- Parameters:
dc
- the currentDrawContext
.
-
selectUTMRenderables
protected void selectUTMRenderables(DrawContext dc)
Select the visible grid elements- Parameters:
dc
- the currentDrawContext
.
-
getVisibleTiles
protected java.util.ArrayList<UTMGraticuleLayer.GraticuleTile> getVisibleTiles(DrawContext dc)
-
clearTiles
protected void clearTiles()
-
-