public class TLspShapeEditor extends TLspCompositeEditor
ILcd2DEditablePoint
ILcd3DEditablePoint
ILcd2DEditablePointList
ILcd3DEditablePointList
ILcd2DEditableBounds
ILcd3DEditableBounds
ILcd2DEditableArcBand
ILcd3DEditableArcBand
ILcd2DEditableCircularArcBy3Points
ILcd2DEditableCircularArcByBulge
ILcd2DEditableCircularArcByCenterPoint
ILcd2DEditableArc
ILcd2DEditableCircleBy3Points
ILcd2DEditableCircle
ILcd3DEditableDome
ILcd3DEditableSphere
ILcd2DEditableEllipse
ILcd2DEditableGeoBuffer
ILcd2DEditableVariableGeoBuffer
TLcdLonLatBuffer
TLcdLonLatHeightBuffer
ILcdEditableSurface
ILcd2DEditableText
ILcdEditableComplexPolygon
ILcdEditableCompositeCurve
TLcdRoundedPolyline
TLcdRoundedPolygon
ILcd2DEditableShape
(only moves the entire shape)ILcdShapeList
(containing at least one of the above shapes)ILcdEditableExtrudedShape
(can edit the extrusion and the base shape if it is one of the above shapes)Adding editors is equivalent to adding editors to the composite editor
. Newly
added editors will supersede existing editors in case both return true for the canEdit
method.
Any new editor that is added will automatically have support for shapelists and extruded shapes. These have been configured to have the shape editor as their delegate. In other words: Shapelists and extruded shapes will properly be unpacked and given back to the shape editor itself.
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_INITIAL_Z
Initial minimal and maximal Z value of 10000 for creation of extruded shapes.
|
Constructor and Description |
---|
TLspShapeEditor()
Creates a new shape editor.
|
Modifier and Type | Method and Description |
---|---|
void |
addEditor(ILspEditor aEditor)
Adds the given editor to the list of editors.
|
ALspCreateEditorModel<ILcdCurve> |
getCompositeCurveCreateModel()
Gets the sub-shape create model to be used with composite curve creation.
|
ELspCreationMode |
getCreationMode()
Returns how the default delegate editors behave during creation.
|
double |
getInitialZValue()
Gets the initial minimal and maximal Z value for creation of extruded shapes.
|
void |
setCompositeCurveCreateModel(ALspCreateEditorModel<ILcdCurve> aShapeCreateEditorModel)
Sets the sub-shape create model to be used with composite shape creation.
|
void |
setCreationMode(ELspCreationMode aCreationMode)
Sets how the default delegate editors behaves during creation.
|
void |
setInitialZValue(double aInitialZValue)
Sets the initial minimal and maximal Z value for creation of extruded shapes.
|
addEditor, canEdit, canPerformOperation, edit, getCreateHandle, getEditHandles, getEditors, removeEditor
public static final int DEFAULT_INITIAL_Z
public void addEditor(ILspEditor aEditor)
TLspCompositeEditor
addEditor
in class TLspCompositeEditor
aEditor
- the editor to addpublic double getInitialZValue()
public void setInitialZValue(double aInitialZValue)
aInitialZValue
- the initial minimal and maximal Z value to which newly created extruded
shapes are initializedpublic ALspCreateEditorModel<ILcdCurve> getCompositeCurveCreateModel()
TLspCreateCurveEditorModel
public void setCompositeCurveCreateModel(ALspCreateEditorModel<ILcdCurve> aShapeCreateEditorModel)
aShapeCreateEditorModel
- the subshape create modelpublic ELspCreationMode getCreationMode()
public void setCreationMode(ELspCreationMode aCreationMode)
addEditor(ILspEditor)
will not be affected.aCreationMode
- the creation mode to be set on the default delegate editors