Class TLcdVPFLayer

All Implemented Interfaces:
ILcdPropertyChangeSource, ILcdSelection<Object>, ILcdGXYEditableLabelsLayer, ILcdGXYLayer, ILcdLayer, Serializable

public class TLcdVPFLayer extends TLcdGXYLayer implements ILcdGXYLayer
Deprecated.
As of V6.0, this class should no longer be used. The VPF sample code provides a VPFLayerFactory class, which shows how to set up a TLcdGXYLayer to show VPF data.
TLcdVPFLayer is an implementation of the ILcdGXYLayer interface. It allows to paint VPF data without requiring an underlying ILcdModel to contain an element for each of the VPF features that have to be painted.

Editing is not allowed and the non-text VPF features are labeled only when selected.

See Also:
  • Constructor Details

    • TLcdVPFLayer

      public TLcdVPFLayer()
      Deprecated.
    • TLcdVPFLayer

      public TLcdVPFLayer(TLcdVPFFeatureClass aVPFFeatureClass)
      Deprecated.
  • Method Details

    • setMaxPaintingBounds

      public void setMaxPaintingBounds(ILcdBounds aPaintingBounds)
      Deprecated.
    • getMaxPaintingBounds

      public ILcdBounds getMaxPaintingBounds()
      Deprecated.
    • getVPFFeatureClass

      public TLcdVPFFeatureClass getVPFFeatureClass()
      Deprecated.
    • getVPFLibrary

      public TLcdVPFLibrary getVPFLibrary()
      Deprecated.
    • getBounds

      public ILcdBounds getBounds(int aMode, ILcdGXYView aGXYView) throws TLcdNoBoundsException
      Deprecated.
      Gets the union of the painter bounds.
      Specified by:
      getBounds in interface ILcdGXYLayer
      Overrides:
      getBounds in class TLcdGXYLayer
      Parameters:
      aMode - a bitwise combination of ALL or SELECTION and one or more of BODIES and HANDLES. The ILcdGXYLayer.LABELS mode is not supported.
      aGXYView - the view in which the layer could be placed. This enables taking into account the views settings, for example the scale.
      Returns:
      a bounds (in view coordinates, pixels) that encompasses the representation of all objects that are rendered in a view.
      Throws:
      TLcdNoBoundsException - if the layer doesn't have any valid bounds, for example when none of the elements have a representation for the views current settings.
    • setTileTraceOn

      public void setTileTraceOn(boolean aTileTraceOn)
      Deprecated.
    • isTileTraceOn

      public boolean isTileTraceOn()
      Deprecated.
    • applyOnInteract

      public int applyOnInteract(ILcdFunction aFunction, Rectangle aBounds, boolean aStrictInteract, ILcdGXYView aGXYView)
      Deprecated.
      Description copied from class: TLcdGXYLayer
      Applies the function to (at the least) all objects that are contained (partially or completely) in the bounds of the view.

      The function shall be applied successively to all objects in the bounds as long as the function returns true for an object. This allows developers to indicate a stop condition. Note that the order in which the objects are passed to the function is not specified.

      When strict interaction is required, only objects whose representation lies within the given bounds, completely or partially, are candidates to be passed to the function. An object whose representation does not interact with the bounds should not be passed to the function. Applying non strict interaction can be useful to avoid heavy computations to determine whether an objects representation lies within the bounds.

      This method behaves similar to the paint method, and as such is allowed to omit small or invisible objects for performance reasons.

      Objects smaller than the set minimum object size may be omitted.

      Specified by:
      applyOnInteract in interface ILcdGXYLayer
      Overrides:
      applyOnInteract in class TLcdGXYLayer
      Parameters:
      aFunction - the function to apply. When the function returns false, no more objects should be passed to the function.
      aBounds - all objects who lie partially or completely in this area in the view are candidates to be passed to the function.
      aStrictInteract - if true, the ILcdFunction shall be applied only to the objects interacting with the given bounds. When false is passed, other objects may be taken into account too. When applying the function to an object consumes less time than checking whether an objects representation interacts with the bounds, non-strict interaction is generally faster.
      aGXYView - the view in whose bounds the objects representations should be in order to be passed to the function.
      Returns:
      the number of objects the function was applied on.
    • modeToString

      public static String modeToString(int aMode)
      Deprecated.