public class TLspProjectedObjectTranslationHandle extends TLspObjectTranslationHandle
ILcdEditableExtrudedShape
: the projected shape is the base shape drawn on the terrainILcd3DEditableBounds
: the projected shapes is a 2D bounds drawn on the terrainILcd3DEditableSphere
and ILcd3DEditableDome
: the projected shape is a circle on the terrainILcd3DEditablePointList
: the projected shape is a 2D polyline drawn on the terrainILcdVariableGeoBuffer
: The projected shape is a variable geobuffer on the terrain.TLcdLonLatHeightBuffer
: The projected shape is a lon-lat buffer drawn on the terrain.getProjectedShape
method to support custom shapes.PRIORITY_2D_CONTOUR, PRIORITY_2D_POINT, PRIORITY_2D_SHAPE, PRIORITY_3D_CONTOUR, PRIORITY_3D_POINT, PRIORITY_3D_SHAPE, PRIORITY_MULTIPLE_SHAPES
Constructor and Description |
---|
TLspProjectedObjectTranslationHandle(Object aObject) |
Modifier and Type | Method and Description |
---|---|
protected ILcdShape |
getProjectedShape(Object aGeometry,
TLspContext aContext)
Returns the projected shape of the given geometry.
|
List<ALspStyleTargetProvider> |
getStyleTargetProviders(TLspHandleGeometryType aType)
Returns a style target provider that can generate geometry for the given visual editing
component type, or an empty list if no geometry can be generated for the given type.
|
protected boolean |
isObjectTouched(int aX,
int aY,
TLspEditContext aEditContext)
Returns whether the edited object is touched.
|
onActivate, onActivate, onDeactivate, onDeactivate, process, process
canActivate, canActivate, canDeactivate, canDeactivate, canProcess, canProcess, isTranslateOnDrag, requestsFocus, requestsFocus, setTranslateOnDrag
handleAWTEvent, handleFXEvent, isActive
getGeometry
getCursor, getCursorFX, getPriority, getProperties, setCursor, setCursorFX, setPriority
public TLspProjectedObjectTranslationHandle(Object aObject)
public List<ALspStyleTargetProvider> getStyleTargetProviders(TLspHandleGeometryType aType)
ALspHandle
TLspEditHandleStyler
allows
you to register different styles for each visual component type.getStyleTargetProviders
in class TLspObjectTranslationHandle
aType
- a visual editing component type
visual editing component type
protected boolean isObjectTouched(int aX, int aY, TLspEditContext aEditContext)
ALspObjectTranslationHandle
isObjectTouched
in class ALspObjectTranslationHandle
aX
- the x coordinate in the viewaY
- the y coordinate in the viewaEditContext
- the edit contexttrue
if the object is touchedprotected ILcdShape getProjectedShape(Object aGeometry, TLspContext aContext)
ILcdEditableExtrudedShape
: the projected shape is the base shape drawn on the terrainILcd3DEditableBounds
: the projected shapes is a 2D bounds drawn on the terrainILcd3DEditableSphere
and ILcd3DEditableDome
: the projected shape is a circle on the terrainILcd3DEditablePointList
: the projected shape is a 2D polyline drawn on the terrainILcdVariableGeoBuffer
: The projected shape is a variable geobuffer on the terrain.TLcdLonLatHeightBuffer
: The projected shape is a lon-lat buffer drawn on the terrain.IllegalArgumentException
.
Override this method to add support for other shapes.aGeometry
- the shape for which a projected shape should be returned.aContext
- the context in which the projected shape will be painted, i.e. this context
contains the layer in which this handle is painted.