Class TLspSnapOperation

java.lang.Object
com.luciad.view.lightspeed.editor.snapping.TLspSnapOperation

public class TLspSnapOperation extends Object
Class representing the result of a snapping operation. This class provides a list of edit operations modified by an ILspSnapper.

A snapping operation can also contain visual feedback for the user. For each TLspSnapperGeometryType, TLspSnapOperation may return a style target provider to be styled.

Since:
2012.0
  • Constructor Details

    • TLspSnapOperation

      public TLspSnapOperation(List<TLspEditOperation> aEditOperationList)
      Constructs a new TLspSnapOperation with no visual feedback
      Parameters:
      aEditOperationList - the list with edit operations
    • TLspSnapOperation

      public TLspSnapOperation(List<TLspEditOperation> aEditOperationList, Map<TLspSnapperGeometryType,Collection<ALspStyleTargetProvider>> aVisualComponentsMap)
      Constructs a new TLspSnapOperation
      Parameters:
      aEditOperationList - the list with edit operations
      aVisualComponentsMap - a map with style target providers for each visual feedback type.
  • Method Details

    • getEditOperations

      public List<TLspEditOperation> getEditOperations()
      Returns the list with edit operations
      Returns:
      the list with edit operations
    • getStyleTargetProviders

      public Collection<ALspStyleTargetProvider> getStyleTargetProviders(TLspSnapperGeometryType aType)
      Returns a style target provider for the given snapper visual component type. May be null.
      Parameters:
      aType - the given snapper visual component type
      Returns:
      a style target provider for the given snapper visual component type
    • getSnapperVisualComponentTypes

      public Collection<TLspSnapperGeometryType> getSnapperVisualComponentTypes()
      Returns a collection of registered snapper visual components types.
      Returns:
      a collection of registered snapper visual components types.