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

public class TLcyDynamicLonLatGridLayer extends TLcdMapLonLatGridLayer
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 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

      public static final String DEFAULT_CONFIG_FILE_NAME
      See Also:
  • Constructor Details

    • TLcyDynamicLonLatGridLayer

      public TLcyDynamicLonLatGridLayer(ALcyProperties aConfiguration)
  • Method Details

    • isTraceOn

      @Deprecated public boolean isTraceOn()
      Deprecated.
      This method has been deprecated. It is recommended to use the standard Java logging framework directly.
      Returns true if tracing is enabled for this class.
      Overrides:
      isTraceOn in class TLcdMapLonLatGridLayer
      Returns:
      true if tracing is enabled for this class, false otherwise.
    • setTraceOn

      @Deprecated public void setTraceOn(boolean aTraceOn)
      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 either true or false as argument automatically turns off tracing for all other class instances for which setTraceOn has not been called. If the argument is false then only the informative, warning and error log messages are recorded.
      Overrides:
      setTraceOn in class TLcdMapLonLatGridLayer
      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 public static void setClassTraceOn(boolean aClassTraceOn)
      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 is true 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

      public void paint(Graphics aGraphics, int aMode, ILcdGXYView aGXYView)
      Description copied from class: TLcdMapLonLatGridLayer
      Paints the TLcdLonLatGrid, taking into account the given mode, and delegating to the configured grid painter. For TLcdLonLatGridPainter and TLcdLonLatBorderGridPainter instances, the setLabeled flag will be set according to the given paint mode.
      Specified by:
      paint in interface ILcdGXYLayer
      Overrides:
      paint in class TLcdMapLonLatGridLayer
      Parameters:
      aGraphics - Graphics to consider for painting.
      aMode - a combination of ILcdGXYLayer.OBJECTS, ILcdGXYLayer.LABELS, ILcdGXYLayer.SELECTION_HANDLES.
      aGXYView - the ILcdGXYView that contains this ILcdLayer.
      See Also:
    • getModel

      public ILcdModel getModel()
      Specified by:
      getModel in interface ILcdLayer
      Overrides:
      getModel in class TLcdMapLonLatGridLayer
      Returns:
      the model associated to this ILcdLayer.