Creates a new BezierCurveEditor.
Returns true
if the shape in the context
is a Bézier curve (BezierCurve).
The edit context.
Returns a handle for creation of the Bézier curve.
The edit context.
Returns an edit handle for control points of the Bézier curve.
The edit context.
Creates an edit handle that paints helper lines for the Bézier curve.
The edit context.
Creates the shape translation handle.
This is a handle that allows translation (moving) of an entire shape / feature.
The context to retrieve the shape translate handle for
Returns a set of handles for creation a BezierCurve.
By default, this delegates to the following methods:
The edit context.
Returns a set of handles for editing an BezierCurve.
By default, this delegates to the following methods:
The edit context.
Restores the feature of the given context to a previously saved state.
This applies the saved state that was created by saveState to the context's EditContext.feature. It is used to revert back to the initial state when editing is cancelled (ie. the controller deactivates without finishing) or restarted. When editing is cancelled, restoreState is called to revert the edited feature back to its initial state.
The default implementation updates the feature's shape to the shape that was returned by the saveState method If your editor / handles change other feature properties, you can override saveState and restoreState to save and restore these additional properties as well.
The state that was saved, as returned by saveState.
The editing context.
Returns a save state of the feature in the given context being edited.
This save state is used to revert back to the initial state when editing is cancelled (ie. the controller deactivates without finishing) or restarted. When editing is cancelled, restoreState is called to revert the edited feature back to its initial state.
The default implementation saves a copy of the feature's shape. If your editor / handles change other feature properties, you can override saveState and restoreState to save and restore these additional properties as well.
The editing context.
The save state. By default, this is a copy of the feature's shape.
An editor that allows editing and creation of features with a Bézier curve (BezierCurve) shape.
Handles
The Bézier curve editor defines the following edit handles:Creation
The Bézier curve editor defines the following creation handles:The BezierCurveEditor uses the BezierCurveCreateHandle for creation, and BezierCurveEditHandle for editing of a Bézier curve.
Once creation starts, the user clicks (or taps) on the map to add control points to the Bézier curve.
Since
2024.1