Class TLspCreateCurveEditorModel
java.lang.Object
com.luciad.view.lightspeed.editor.ALspCreateEditorModel<ILcdCurve>
com.luciad.view.lightspeed.editor.TLspCreateCurveEditorModel
Default
ALspCreateEditorModel
implementation that has
support for creating circular arcs by bulge, circular arc by 3 points, and polylines.
The current type is initially set to CIRCULAR_ARC_BY_BULGE
,
but
can be changed using the setCurrentType
method.- Since:
- 2012.0
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Type that defines which curve is created next. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(TLspContext aContext) Creates a new shape, based on the given context.Gets the current created type.void
setNextType
(TLspCreateCurveEditorModel.Type aNextType) Sets the next created type.Methods inherited from class com.luciad.view.lightspeed.editor.ALspCreateEditorModel
addChangeListener, fireChangeEvent, removeChangeListener
-
Constructor Details
-
TLspCreateCurveEditorModel
public TLspCreateCurveEditorModel()Creates a new curve create model.The current type of the create model is set by default to
CIRCULAR_ARC_BY_BULGE
.
-
-
Method Details
-
create
Description copied from class:ALspCreateEditorModel
Creates a new shape, based on the given context. The output of this method is assumed to be constant over time (i.e. of the same type). If the type changes, thefireChangeEvent
method should be called to notify all listeners of this create editor model.- Specified by:
create
in classALspCreateEditorModel<ILcdCurve>
- Parameters:
aContext
- context information. Contains the view and layer for which the shape should be created. Important here is that the created shape is defined in the same reference as the model in this context.- Returns:
- a new shape
-
getNextType
Gets the current created type.- Returns:
- the current curve type
-
setNextType
Sets the next created type.- Parameters:
aNextType
- the new curve type
-