public class TLspSnapOperation extends Object
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.Constructor and Description |
---|
TLspSnapOperation(List<TLspEditOperation> aEditOperationList)
Constructs a new
TLspSnapOperation with no visual feedback |
TLspSnapOperation(List<TLspEditOperation> aEditOperationList,
Map<TLspSnapperGeometryType,Collection<ALspStyleTargetProvider>> aVisualComponentsMap)
Constructs a new
TLspSnapOperation |
Modifier and Type | Method and Description |
---|---|
List<TLspEditOperation> |
getEditOperations()
Returns the list with edit operations
|
Collection<TLspSnapperGeometryType> |
getSnapperVisualComponentTypes()
Returns a collection of registered snapper visual components types.
|
Collection<ALspStyleTargetProvider> |
getStyleTargetProviders(TLspSnapperGeometryType aType)
Returns a style target provider for the given snapper visual component type.
|
public TLspSnapOperation(List<TLspEditOperation> aEditOperationList)
TLspSnapOperation
with no visual feedbackaEditOperationList
- the list with edit operationspublic TLspSnapOperation(List<TLspEditOperation> aEditOperationList, Map<TLspSnapperGeometryType,Collection<ALspStyleTargetProvider>> aVisualComponentsMap)
TLspSnapOperation
aEditOperationList
- the list with edit operationsaVisualComponentsMap
- a map with style target providers for each visual feedback type.public List<TLspEditOperation> getEditOperations()
public Collection<ALspStyleTargetProvider> getStyleTargetProviders(TLspSnapperGeometryType aType)
aType
- the given snapper visual component typepublic Collection<TLspSnapperGeometryType> getSnapperVisualComponentTypes()