public abstract class Decoration
extends java.lang.Object
Decorator class
for adding and removing decorations on a node. ControlsFX
ships with pre-built decorations, including GraphicDecoration and
StyleClassDecoration.
To better understand how to use the ControlsFX decoration API in your
application, refer to the code samples and explanations in Decorator.
Decorator,
GraphicDecoration,
StyleClassDecoration| Modifier | Constructor and Description |
|---|---|
protected |
Decoration()
Instantiates a default Decoration instance (obviously only callable by
subclasses).
|
| Modifier and Type | Method and Description |
|---|---|
abstract javafx.scene.Node |
applyDecoration(javafx.scene.Node targetNode)
This method decorates the given
target node with the relevant decorations, returning any 'decoration node'
that needs to be added to the scenegraph (although this can be null).
|
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
Custom decoration properties
|
abstract void |
removeDecoration(javafx.scene.Node targetNode)
This method removes the decoration from the given target node.
|
protected Decoration()
public abstract javafx.scene.Node applyDecoration(javafx.scene.Node targetNode)
When the boolean parameter is false, this method removes the decoration from the given target node, always returning null.
targetNode - The node to decorate.public abstract void removeDecoration(javafx.scene.Node targetNode)
targetNode - The node to undecorate.public final java.util.Map<java.lang.String,java.lang.Object> getProperties()