Class TLspShapeEditor
java.lang.Object
com.luciad.view.lightspeed.editor.TLspCompositeEditor
com.luciad.view.lightspeed.editor.TLspShapeEditor
- All Implemented Interfaces:
ILspEditor
This editor is a composite editor that delegates to all other editors in this package. It is
able to edit most default shapes available in LuciadLightspeed:
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.
- Since:
- 2012.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Initial minimal and maximal Z value of 10000 for creation of extruded shapes. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addEditor
(ILspEditor aEditor) Adds the given editor to the list of editors.Gets the sub-shape create model to be used with composite curve creation.Returns how the default delegate editors behave during creation.double
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.Methods inherited from class com.luciad.view.lightspeed.editor.TLspCompositeEditor
addEditor, canEdit, canPerformOperation, edit, getCreateHandle, getEditHandles, getEditors, removeEditor
-
Field Details
-
DEFAULT_INITIAL_Z
public static final int DEFAULT_INITIAL_ZInitial minimal and maximal Z value of 10000 for creation of extruded shapes.- See Also:
-
-
Constructor Details
-
TLspShapeEditor
public TLspShapeEditor()Creates a new shape editor.
-
-
Method Details
-
addEditor
Description copied from class:TLspCompositeEditor
Adds the given editor to the list of editors.- Overrides:
addEditor
in classTLspCompositeEditor
- Parameters:
aEditor
- the editor to add
-
getInitialZValue
public double getInitialZValue()Gets the initial minimal and maximal Z value for creation of extruded shapes.- Returns:
- the initial minimal and maximal Z value to which newly created extruded shapes are initialized
-
setInitialZValue
public void setInitialZValue(double aInitialZValue) Sets the initial minimal and maximal Z value for creation of extruded shapes.- Parameters:
aInitialZValue
- the initial minimal and maximal Z value to which newly created extruded shapes are initialized
-
getCompositeCurveCreateModel
Gets the sub-shape create model to be used with composite curve creation. This create model is used when constructing composite curves. By default this will be aTLspCreateCurveEditorModel
- Returns:
- the subshape create model
-
setCompositeCurveCreateModel
Sets the sub-shape create model to be used with composite shape creation. This create model is used when constructing composite curves. This model is called for each new composite sub shape that needs to be created.- Parameters:
aShapeCreateEditorModel
- the subshape create model
-
getCreationMode
Returns how the default delegate editors behave during creation.- Returns:
- the creation mode of the default delegate editors
-
setCreationMode
Sets how the default delegate editors behaves during creation. Other editors added byaddEditor(ILspEditor)
will not be affected.- Parameters:
aCreationMode
- the creation mode to be set on the default delegate editors
-