public class UTMBaseGraticuleLayer extends AbstractGraticuleLayer
Modifier and Type | Class and Description |
---|---|
protected class |
UTMBaseGraticuleLayer.MetricScaleSupport |
protected class |
UTMBaseGraticuleLayer.SquareGrid
Represent a square 10x10 grid and recursive tree in easting/northing coordinates
|
protected class |
UTMBaseGraticuleLayer.SquareZone
Represent a 100km square zone inside an UTM zone.
|
AbstractGraticuleLayer.GridElement
Modifier and Type | Field and Description |
---|---|
protected long |
frameCount |
static java.lang.String |
GRATICULE_UTM |
protected UTMBaseGraticuleLayer.MetricScaleSupport |
metricScaleSupport |
protected static double |
ONEHT |
protected static int |
UTM_MAX_LATITUDE |
protected static int |
UTM_MIN_LATITUDE |
frameTimeStamp, globe, graticuleSupport, gridElements, lastEyePoint, lastProjection, lastVerticalExaggeration, lastViewFOV, lastViewHeading, lastViewPitch, LINE_STYLE_DASHED, LINE_STYLE_DOTTED, LINE_STYLE_SOLID, terrainConformance
Constructor and Description |
---|
UTMBaseGraticuleLayer() |
Modifier and Type | Method and Description |
---|---|
protected Position |
computePosition(int zone,
java.lang.String hemisphere,
double easting,
double northing) |
protected Position |
computePositionFromUPS(java.lang.String hemisphere,
double easting,
double northing) |
protected Position |
computePositionFromUTM(int zone,
java.lang.String hemisphere,
double easting,
double northing) |
protected java.util.ArrayList<UTMBaseGraticuleLayer.SquareZone> |
createSquaresGrid(int UTMZone,
java.lang.String hemisphere,
Sector UTMZoneSector,
double minEasting,
double maxEasting,
double minNorthing,
double maxNorthing) |
java.awt.Color |
getGraticuleLineColor()
Returns the graticule line Color.
|
java.lang.String |
getGraticuleLineStyle()
Returns the graticule line rendering style.
|
double |
getGraticuleLineWidth()
Returns the graticule line width.
|
java.awt.Color |
getLabelColor()
Returns the graticule label Color.
|
java.awt.Font |
getLabelFont()
Returns the Font used for graticule labels.
|
protected java.lang.String |
getTypeFor(int resolution) |
protected void |
initRenderingParams() |
boolean |
isDrawGraticule()
Returns whether or not graticule lines will be rendered.
|
boolean |
isDrawLabels()
Returns whether or not graticule labels will be rendered.
|
protected void |
selectRenderables(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(java.awt.Color color)
Sets the graticule line Color.
|
void |
setGraticuleLineStyle(java.lang.String lineStyle)
Sets the graticule line rendering style.
|
void |
setGraticuleLineWidth(double lineWidth)
Sets the graticule line width.
|
void |
setLabelColor(java.awt.Color color)
Sets the graticule label Color.
|
void |
setLabelFont(java.awt.Font font)
Sets the Font used for graticule labels.
|
addRenderable, clear, 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
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
onMessage, propertyChange
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
onMessage
protected long frameCount
public static final java.lang.String GRATICULE_UTM
protected UTMBaseGraticuleLayer.MetricScaleSupport metricScaleSupport
protected static final double ONEHT
protected static final int UTM_MAX_LATITUDE
protected static final int UTM_MIN_LATITUDE
protected Position computePosition(int zone, java.lang.String hemisphere, double easting, double northing)
protected Position computePositionFromUPS(java.lang.String hemisphere, double easting, double northing)
protected Position computePositionFromUTM(int zone, java.lang.String hemisphere, double easting, double northing)
protected java.util.ArrayList<UTMBaseGraticuleLayer.SquareZone> createSquaresGrid(int UTMZone, java.lang.String hemisphere, Sector UTMZoneSector, double minEasting, double maxEasting, double minNorthing, double maxNorthing)
public java.awt.Color getGraticuleLineColor()
public java.lang.String getGraticuleLineStyle()
public double getGraticuleLineWidth()
public java.awt.Color getLabelColor()
public java.awt.Font getLabelFont()
protected java.lang.String getTypeFor(int resolution)
protected void initRenderingParams()
public boolean isDrawGraticule()
public boolean isDrawLabels()
protected void selectRenderables(DrawContext dc)
selectRenderables
in class AbstractGraticuleLayer
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(java.awt.Color color)
color
- Color that will be used to render graticule lines.java.lang.IllegalArgumentException
- if color
is null.public void setGraticuleLineStyle(java.lang.String lineStyle)
lineStyle
- rendering style of the graticule lines. One of LINE_STYLE_PLAIN, LINE_STYLE_DASHED, or
LINE_STYLE_DOTTED.java.lang.IllegalArgumentException
- if lineStyle
is null.public void setGraticuleLineWidth(double lineWidth)
lineWidth
- width of the graticule lines.public void setLabelColor(java.awt.Color color)
color
- Color that will be used to render graticule labels.java.lang.IllegalArgumentException
- if color
is null.public void setLabelFont(java.awt.Font font)
font
- Font that will be used to render graticule labels.java.lang.IllegalArgumentException
- if font
is null.