Class ALcdGXYNewControllerModel2.SnapTargetInfo

java.lang.Object
com.luciad.view.gxy.controller.ALcdGXYNewControllerModel2.SnapTargetInfo
Enclosing class:
ALcdGXYNewControllerModel2

public static class ALcdGXYNewControllerModel2.SnapTargetInfo extends Object
Object representing all needed information about a snap target. This consists of:
  • the getGXYLayer() layer} from which this snap target originated
  • the snap object from which the snap target originated, one of the objects from layer.getModel() (e.g. a polyline). This information is used to paint a visual indication of the snap target.
  • the actual snap target, deduced from the snap object (e.g., one point of the polyline).
Since:
9.0
  • Constructor Details

    • SnapTargetInfo

      public SnapTargetInfo(ILcdGXYLayer aGXYLayer, Object aSnapObject, Object aSnapTarget)
      Creates a new SnapTargetInfo object.
      Parameters:
      aGXYLayer - The layer.
      aSnapObject - The snap object, or null if the snap indication must not be visualized
      aSnapTarget - The snap target.
  • Method Details

    • getGXYLayer

      public ILcdGXYLayer getGXYLayer()
      Returns the layer from which the snap target originated.
      Returns:
      the layer from which the snap target originated.
    • getSnapObject

      public Object getSnapObject()
      Returns the object from which the snap target originated (e.g., a polyline).
      Returns:
      the object from which the snap target originated, or null if the snap info must not be visualized
    • getSnapTarget

      public Object getSnapTarget()
      Returns the snap target itself (e.g., one point of a polyline).
      Returns:
      the snap target itself.