Class TLspSnapOperation
java.lang.Object
com.luciad.view.lightspeed.editor.snapping.TLspSnapOperation
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 Summary
ConstructorsConstructorDescriptionTLspSnapOperation(List<TLspEditOperation> aEditOperationList) Constructs a newTLspSnapOperationwith no visual feedbackTLspSnapOperation(List<TLspEditOperation> aEditOperationList, Map<TLspSnapperGeometryType, Collection<ALspStyleTargetProvider>> aVisualComponentsMap) Constructs a newTLspSnapOperation -
Method Summary
Modifier and TypeMethodDescriptionReturns the list with edit operationsReturns a collection of registered snapper visual components types.Returns a style target provider for the given snapper visual component type.
-
Constructor Details
-
TLspSnapOperation
Constructs a newTLspSnapOperationwith no visual feedback- Parameters:
aEditOperationList- the list with edit operations
-
TLspSnapOperation
public TLspSnapOperation(List<TLspEditOperation> aEditOperationList, Map<TLspSnapperGeometryType, Collection<ALspStyleTargetProvider>> aVisualComponentsMap) Constructs a newTLspSnapOperation- Parameters:
aEditOperationList- the list with edit operationsaVisualComponentsMap- a map with style target providers for each visual feedback type.
-
-
Method Details
-
getEditOperations
Returns the list with edit operations- Returns:
- the list with edit operations
-
getStyleTargetProviders
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
Returns a collection of registered snapper visual components types.- Returns:
- a collection of registered snapper visual components types.
-