public abstract class ALspHandle extends Object
Modifier and Type | Field and Description |
---|---|
static int |
PRIORITY_2D_CONTOUR
Predefined priority level for handles that respond when touching the
contour of a 2D shape or a 3D shape's projected footprint on the ground.
|
static int |
PRIORITY_2D_POINT
Predefined priority level for handles that respond when touching the
control points of a 2D shape or a 3D shape's projected footprint on the
ground.
|
static int |
PRIORITY_2D_SHAPE
Predefined priority level for handles that respond when touching the
interior of a filled 2D shape or a 3D shape's projected footprint on the
ground.
|
static int |
PRIORITY_3D_CONTOUR
Predefined priority level for handles that respond when touching the
contour of a 3D shape.
|
static int |
PRIORITY_3D_POINT
Predefined priority level for handles that respond when touching the
control points of a 3D shape.
|
static int |
PRIORITY_3D_SHAPE
Predefined priority level for handles that respond when touching the
interior of a filled 3D shape.
|
static int |
PRIORITY_MULTIPLE_SHAPES
Predefined priority level for handles that operate on multiple shapes
simultaneously.
|
Modifier and Type | Method and Description |
---|---|
Cursor |
getCursor()
Returns the cursor for this handle.
|
javafx.scene.Cursor |
getCursorFX()
JavaFX equivalent of
getCursor() , used when this handle is active in a
JavaFX view . |
int |
getPriority()
Gets the priority of a handle.
|
Map<Object,Object> |
getProperties()
Returns a map containing all properties in this handle.
|
abstract 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.
|
abstract boolean |
isActive()
Checks whether this handle is active.
|
void |
setCursor(Cursor aCursor)
Sets the cursor for this handle.
|
void |
setCursorFX(javafx.scene.Cursor aCursor)
JavaFX equivalent of
setCursor(Cursor) . |
void |
setPriority(int aPriority)
Sets the priority of this handle.
|
public static final int PRIORITY_MULTIPLE_SHAPES
public static final int PRIORITY_3D_SHAPE
public static final int PRIORITY_3D_CONTOUR
public static final int PRIORITY_2D_SHAPE
public static final int PRIORITY_2D_CONTOUR
public static final int PRIORITY_3D_POINT
public static final int PRIORITY_2D_POINT
public Map<Object,Object> getProperties()
TLspEditOperation
object, the
latter will contain a copy of these properties. This allows the editor to recover this semantic information in its
edit
method.public Cursor getCursor()
public javafx.scene.Cursor getCursorFX()
getCursor()
, used when this handle is active in a
JavaFX view
. If no JavaFX cursor
has been set, this method will attempt to create a JavaFX counterpart of the
AWT cursor
. This will work for the built-in cursors, but
any custom cursors will be replaced with the default cursor instead.setCursorFX(javafx.scene.Cursor)
public void setCursor(Cursor aCursor)
aCursor
- the cursor to be used by this handle.public void setCursorFX(javafx.scene.Cursor aCursor)
setCursor(Cursor)
. Sets the cursor to be used by this
handle if it is active in a JavaFX view
.aCursor
- the JavaFX cursor to be used by this handlegetCursorFX()
public int getPriority()
public void setPriority(int aPriority)
aPriority
- the handle's new prioritygetPriority()
public abstract boolean isActive()
public abstract List<ALspStyleTargetProvider> getStyleTargetProviders(TLspHandleGeometryType aType)
TLspEditHandleStyler
allows
you to register different styles for each visual component type.aType
- a visual editing component type
visual editing component type