Package com.luciad.lucy.map
Class TLcyDynamicLonLatGridLayer
java.lang.Object
com.luciad.view.map.TLcdMapLonLatGridLayer
com.luciad.lucy.map.TLcyDynamicLonLatGridLayer
- All Implemented Interfaces:
ILcdPropertyChangeSource
,ILcdSelection<Object>
,ILcdGXYLayer
,ILcdNotLabelDeconflictableLayer
,ILcdLayer
,Serializable
Do not use this class, it's subject to change or disappear without notice.
It's public only because it is used as a bean.
This class is an extension of a TLcdMapLonLatGridLayer
It provides a dynamic grid. This means that the delta ( in degrees )
between the lines of longitude and between the lines of latitude will
change wrt to the scale of the map the layer is painted on.
To calculate the delta between the lines for a certain scale, one can
provide an ILcyGridDeltaCalculator
. The other possibility
is to use the method initFromConfiguration
to initialise
an object of this class wrt to the given ALcyProperties
This class may have a TLcdLonLatBorderGridPainter
instead of a regular TLcdLonLatGridPainter
. If this is the case,
it adapts the painter's major/minor labels to the current view's scale.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final int
static final int
static final int
static final int
static final float
static final float
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetModel()
boolean
Deprecated.This method has been deprecated.void
paint
(Graphics aGraphics, int aMode, ILcdGXYView aGXYView) Paints theTLcdLonLatGrid
, taking into account the given mode, and delegating to the configured grid painter.static void
setClassTraceOn
(boolean aClassTraceOn) Deprecated.This method has been deprecated.void
setTraceOn
(boolean aTraceOn) Deprecated.This method has been deprecated.Methods inherited from class com.luciad.view.map.TLcdMapLonLatGridLayer
addPropertyChangeListener, addSelectionListener, applyOnInteract, clearSelection, fireCollectedSelectionChanges, firePropertyChangeEvent, getBounds, getGridPainter, getGXYEditor, getGXYLabelPainter, getGXYPainter, getGXYPainter, getGXYPen, getIcon, getLabel, getLabelScaleRange, getLonLatGrid, getModelXYWorldTransfoClass, getScaleRange, getSelectionCount, hasUserPen, isAntiAliased, isEditable, isEditableSupported, isLabeled, isLabeledSupported, isSelectable, isSelectableSupported, isSelected, isVisible, removePropertyChangeListener, removeSelectionListener, selectedObjects, selectObject, setAntiAliased, setEditable, setGridPainter, setGXYPainter, setGXYPen, setIcon, setLabel, setLabeled, setLonLatGrid, setScaleRange, setSelectable, setVisible, stopPainting
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.view.gxy.ILcdGXYLayer
getLabelMapScaleRange, getMapScaleRange
Methods inherited from interface com.luciad.util.ILcdSelection
getSelectedObjects
-
Field Details
-
DELTA_LON_DEFAULT
public static final float DELTA_LON_DEFAULT- See Also:
-
DELTA_LAT_DEFAULT
public static final float DELTA_LAT_DEFAULT- See Also:
-
DEFAULT_MAJOR_TICKS_PER_DELTA_LAT
public static final int DEFAULT_MAJOR_TICKS_PER_DELTA_LAT- See Also:
-
DEFAULT_MAJOR_TICKS_PER_DELTA_LON
public static final int DEFAULT_MAJOR_TICKS_PER_DELTA_LON- See Also:
-
DEFAULT_MINOR_TICKS_PER_DELTA_LAT
public static final int DEFAULT_MINOR_TICKS_PER_DELTA_LAT- See Also:
-
DEFAULT_MINOR_TICKS_PER_DELTA_LON
public static final int DEFAULT_MINOR_TICKS_PER_DELTA_LON- See Also:
-
DEFAULT_CONFIG_FILE_NAME
- See Also:
-
-
Constructor Details
-
TLcyDynamicLonLatGridLayer
-
-
Method Details
-
isTraceOn
Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Returnstrue
if tracing is enabled for this class.- Overrides:
isTraceOn
in classTLcdMapLonLatGridLayer
- Returns:
- true if tracing is enabled for this class, false otherwise.
-
setTraceOn
Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Enables tracing for this class instance. Calling this method with eithertrue
orfalse
as argument automatically turns off tracing for all other class instances for whichsetTraceOn
has not been called. If the argument isfalse
then only the informative, warning and error log messages are recorded.- Overrides:
setTraceOn
in classTLcdMapLonLatGridLayer
- Parameters:
aTraceOn
- if true then all log messages are recorded for this instance. If false, then only the informative, warning and error log messages are recorded.
-
setClassTraceOn
Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Enables tracing for all instances of this class. If the argument istrue
then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.- Parameters:
aClassTraceOn
- if true then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.
-
paint
Description copied from class:TLcdMapLonLatGridLayer
Paints theTLcdLonLatGrid
, taking into account the given mode, and delegating to the configured grid painter. ForTLcdLonLatGridPainter
andTLcdLonLatBorderGridPainter
instances, thesetLabeled
flag will be set according to the given paint mode.- Specified by:
paint
in interfaceILcdGXYLayer
- Overrides:
paint
in classTLcdMapLonLatGridLayer
- Parameters:
aGraphics
-Graphics
to consider for painting.aMode
- a combination ofILcdGXYLayer.OBJECTS
,ILcdGXYLayer.LABELS
,ILcdGXYLayer.SELECTION_HANDLES
.aGXYView
- theILcdGXYView
that contains thisILcdLayer
.- See Also:
-
getModel
- Specified by:
getModel
in interfaceILcdLayer
- Overrides:
getModel
in classTLcdMapLonLatGridLayer
- Returns:
- the model associated to this
ILcdLayer
.
-