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 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,
String hemisphere,
double easting,
double northing) |
protected Position |
computePositionFromUPS(String hemisphere,
double easting,
double northing) |
protected Position |
computePositionFromUTM(int zone,
String hemisphere,
double easting,
double northing) |
protected ArrayList<UTMBaseGraticuleLayer.SquareZone> |
createSquaresGrid(int UTMZone,
String hemisphere,
Sector UTMZoneSector,
double minEasting,
double maxEasting,
double minNorthing,
double maxNorthing) |
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 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(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.
|
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
propertyChange
onMessage
protected long frameCount
public static final 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, String hemisphere, double easting, double northing)
protected Position computePositionFromUPS(String hemisphere, double easting, double northing)
protected Position computePositionFromUTM(int zone, String hemisphere, double easting, double northing)
protected ArrayList<UTMBaseGraticuleLayer.SquareZone> createSquaresGrid(int UTMZone, String hemisphere, Sector UTMZoneSector, double minEasting, double maxEasting, double minNorthing, double maxNorthing)
public Color getGraticuleLineColor()
public String getGraticuleLineStyle()
public double getGraticuleLineWidth()
public Color getLabelColor()
public Font getLabelFont()
protected 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(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.