public interface ILspEditor
TLspShapeEditor
Modifier and Type | Method and Description |
---|---|
boolean |
canEdit(TLspEditContext aContext)
Determines whether or not the specified object can be edited by this editor.
|
boolean |
canPerformOperation(TLspEditOperation aOperation,
TLspEditContext aContext)
Determines whether or not the editor knows how to apply the given edit operation to the
supplied geometry.
|
TLspEditOperationResult |
edit(TLspEditOperation aOperation,
ELspInteractionStatus aInteractionStatus,
TLspEditContext aContext)
Applies an interaction obtained from a handle to the object being edited.
|
ALspEditHandle |
getCreateHandle(TLspEditContext aContext)
Returns a handle that is used to create the given object.
|
List<ALspEditHandle> |
getEditHandles(TLspEditContext aContext)
Returns a set of handles for editing the given object.
|
ALspEditHandle getCreateHandle(TLspEditContext aContext)
ALspCreateHandle
which is a specialized handle implementation used for creating an object.aContext
- provides context information such as the layer for which the object
is being creatednull
if it should not be possible to create the object.ALspCreateHandle
,
TLspCreateController
List<ALspEditHandle> getEditHandles(TLspEditContext aContext)
edit
method. As a way to communicate with this method,
handles will copy their properties to the edit operation properties.aContext
- provides context information such as the layer for which the object
is being editedTLspEditController
TLspEditOperationResult edit(TLspEditOperation aOperation, ELspInteractionStatus aInteractionStatus, TLspEditContext aContext)
aOperation
- describes the edit that should occur. This is usually generated by the
handles. It is up to the concrete editor to determine how to handle this
event.aInteractionStatus
- the interaction statusaContext
- the edit contextboolean canEdit(TLspEditContext aContext)
aContext
- provides context information to the editortrue
if the editor can modify the object.boolean canPerformOperation(TLspEditOperation aOperation, TLspEditContext aContext)
aOperation
- the operation to be appliedaContext
- the edit context