Page Summary
-
BaseTransformableNodeis a base class for nodes that can be transformed using gestures through theTransformationSystem. -
It provides methods for selecting, transforming, and handling tap events on the node.
-
Subclasses can add and remove transformation controllers to customize the transformation behavior.
-
It inherits functionalities from
NodeandNodeParentfor scene graph manipulation and lifecycle management. -
The
TransformableNodeis a direct subclass ofBaseTransformableNodeand allows for selection, translation, rotation, and scaling.
| Known Direct Subclasses |
Base class for nodes that can be transformed using gestures from TransformationSystem.
Public Constructors
|
BaseTransformableNode(TransformationSystem transformationSystem)
|
Public Methods
| TransformationSystem | |
| boolean |
isSelected()
Returns true if this node is currently selected by the TransformationSystem.
|
| boolean |
isTransforming()
Returns true if any of the transformation controllers are actively transforming this node.
|
| void | |
| boolean |
select()
Sets this as the selected node in the TransformationSystem if there is no currently selected
node or if the currently selected node is not actively being transformed.
|
Protected Methods
| void |
addTransformationController(BaseTransformationController<?> transformationController)
|
| void |
removeTransformationController(BaseTransformationController<?> transformationController)
|
Inherited Methods
Public Constructors
public BaseTransformableNode (TransformationSystem transformationSystem)
Parameters
| transformationSystem |
|---|
Public Methods
public boolean isSelected ()
Returns true if this node is currently selected by the TransformationSystem.
public boolean isTransforming ()
Returns true if any of the transformation controllers are actively transforming this node.
public void onTap (HitTestResult hitTestResult, MotionEvent motionEvent)
public boolean select ()
Sets this as the selected node in the TransformationSystem if there is no currently selected node or if the currently selected node is not actively being transformed.
Returns
- true if the node was successfully selected
See Also
Protected Methods
protected void addTransformationController (BaseTransformationController<?> transformationController)
Parameters
| transformationController |
|---|
protected void removeTransformationController (BaseTransformationController<?> transformationController)
Parameters
| transformationController |
|---|