public class TLspCreateCurveEditorModel extends ALspCreateEditorModel<ILcdCurve>
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.TLcdLonLatCircularArcByBulge
,
TLcdLonLatCircularArcBy3Points
,
TLcdLonLatPolyline
Modifier and Type | Class and Description |
---|---|
static class |
TLspCreateCurveEditorModel.Type
Type that defines which curve is created next.
|
Constructor and Description |
---|
TLspCreateCurveEditorModel()
Creates a new curve create model.
|
Modifier and Type | Method and Description |
---|---|
ILcdCurve |
create(TLspContext aContext)
Creates a new shape, based on the given context.
|
TLspCreateCurveEditorModel.Type |
getNextType()
Gets the current created type.
|
void |
setNextType(TLspCreateCurveEditorModel.Type aNextType)
Sets the next created type.
|
addChangeListener, fireChangeEvent, removeChangeListener
public TLspCreateCurveEditorModel()
The current type of the create model is set by default to CIRCULAR_ARC_BY_BULGE
.
public ILcdCurve create(TLspContext aContext)
ALspCreateEditorModel
fireChangeEvent
method should be called to notify all listeners of this create editor model.create
in class ALspCreateEditorModel<ILcdCurve>
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.public TLspCreateCurveEditorModel.Type getNextType()
public void setNextType(TLspCreateCurveEditorModel.Type aNextType)
aNextType
- the new curve type