Protected
eventedThe EventedSupport used to emit events.
Typically, handles use emitEditShapeEvent to emit "EditShape" events. This is only used in advanced cases, for example when compositing multiple handles.
Protected
handlesThe list of handles that this CascadingEditHandle delegates to.
The index of the currently active handle.
2024.0
Protected
emitEmits an "EditShape"
event.
Typically, a handle emits this right after changing the shape.
The shape to emit an edit event for
The status of the edit. Typically, this is IN_PROGRESS while the handle is being dragged / changed, and EditShapeStatus.FINISHED when the drag ends.
Delegates to the currently active handle's getCursor.
Invalidates this edit handle.
This will cause onDraw and onDrawLabel to be called again.
Use this if you need to update the visualization of the handle. For example, the handle has changed style and onDraw needs to be re-evaluated.
2024.0.02
Delegates to the currently active handle's onCreateContextMenu.
Delegates to the currently active handle's onDraw.
Delegates to the currently active handle's onDrawLabel.
Delegates to the currently active handle's onGestureEvent.
Once the currently active handle finishes, the next handle becomes active.
Delegates to the currently active handle's shouldPaintFeature.
2024.0
An event that is emitted whenever this handle changes the shape of a feature.
EditShape
An event that is emitted whenever this handle is invalidated.
Invalidated
A collection of edit handles that become active one-by-one.
As opposed to CompositeEditHandle, only one handle is active at a time. Once a handle finishes, the next one becomes active.
This can be especially useful for creation. Every step of the creation process corresponds to one handle. When the first handle deactivates, the next handle is used, and so on. A CreateByTemplateHandle is an example of a cascading handle. First, a point is created to position the template. After the template is positioned, the CreateByTemplateHandle delegates to the shape's edit handles so the user can further adapt the template to the desired shape.
Since
2024.0