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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final intstatic final intstatic final intstatic final intstatic final floatstatic final float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetModel()booleanDeprecated.This method has been deprecated.voidpaint(Graphics aGraphics, int aMode, ILcdGXYView aGXYView) Paints theTLcdLonLatGrid, taking into account the given mode, and delegating to the configured grid painter.static voidsetClassTraceOn(boolean aClassTraceOn) Deprecated.This method has been deprecated.voidsetTraceOn(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, stopPaintingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.luciad.view.gxy.ILcdGXYLayer
getLabelMapScaleRange, getMapScaleRangeMethods 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.Returnstrueif tracing is enabled for this class.- Overrides:
isTraceOnin 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 eithertrueorfalseas argument automatically turns off tracing for all other class instances for whichsetTraceOnhas not been called. If the argument isfalsethen only the informative, warning and error log messages are recorded.- Overrides:
setTraceOnin 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 istruethen 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:TLcdMapLonLatGridLayerPaints theTLcdLonLatGrid, taking into account the given mode, and delegating to the configured grid painter. ForTLcdLonLatGridPainterandTLcdLonLatBorderGridPainterinstances, thesetLabeledflag will be set according to the given paint mode.- Specified by:
paintin interfaceILcdGXYLayer- Overrides:
paintin classTLcdMapLonLatGridLayer- Parameters:
aGraphics-Graphicsto consider for painting.aMode- a combination ofILcdGXYLayer.OBJECTS,ILcdGXYLayer.LABELS,ILcdGXYLayer.SELECTION_HANDLES.aGXYView- theILcdGXYViewthat contains thisILcdLayer.- See Also:
-
getModel
- Specified by:
getModelin interfaceILcdLayer- Overrides:
getModelin classTLcdMapLonLatGridLayer- Returns:
- the model associated to this
ILcdLayer.
-