T - the type of the decoration node.public class MutableDecorator<T extends javafx.scene.Node> extends Decorator<T>
MutableDecorator is a decorator whose position information can be changed.| Type | Property and Description |
|---|---|
javafx.beans.property.ObjectProperty<T> |
node
A read-only property for the decoration node.
|
javafx.beans.property.ObjectProperty<javafx.geometry.Point2D> |
offset |
javafx.beans.property.ObjectProperty<javafx.geometry.Insets> |
padding |
javafx.beans.property.ObjectProperty<javafx.geometry.Pos> |
pos |
javafx.beans.property.ObjectProperty<javafx.animation.Transition> |
transition |
javafx.beans.property.BooleanProperty |
valueInPercent |
_nodeProperty, _offsetProperty, _paddingProperty, _posProperty, _transitionProperty, _valueInPercentProperty| Constructor and Description |
|---|
MutableDecorator() |
MutableDecorator(T node)
Creates a MutableDecorator at the TOP_RIGHT position.
|
MutableDecorator(T node,
javafx.geometry.Pos pos)
Creates a MutableDecorator at the specified position.
|
MutableDecorator(T node,
javafx.geometry.Pos pos,
javafx.geometry.Point2D offset)
Creates a MutableDecorator at the specified position.
|
MutableDecorator(T node,
javafx.geometry.Pos pos,
javafx.geometry.Point2D offset,
javafx.geometry.Insets padding)
Creates a MutableDecorator at the specified position with a specified padding added to the target node.
|
MutableDecorator(T node,
javafx.geometry.Pos pos,
javafx.geometry.Point2D offset,
javafx.geometry.Insets padding,
boolean valueInPercentOrPixels)
Creates a MutableDecorator at the specified position with a specified padding added to the target node.
|
MutableDecorator(T node,
javafx.geometry.Pos pos,
javafx.geometry.Point2D offset,
javafx.geometry.Insets padding,
boolean valueInPercentOrPixels,
jidefx.animation.AnimationType type)
Creates a MutableDecorator at the specified position with a specified padding added to the target node.
|
MutableDecorator(T node,
javafx.geometry.Pos pos,
javafx.geometry.Point2D offset,
javafx.geometry.Insets padding,
boolean valueInPercentOrPixels,
javafx.animation.Transition transition)
Creates a MutableDecorator at the specified position with a specified padding added to the target node.
|
| Modifier and Type | Method and Description |
|---|---|
javafx.beans.property.ObjectProperty<T> |
nodeProperty()
A read-only property for the decoration node.
|
javafx.beans.property.ObjectProperty<javafx.geometry.Point2D> |
offsetProperty() |
javafx.beans.property.ObjectProperty<javafx.geometry.Insets> |
paddingProperty() |
javafx.beans.property.ObjectProperty<javafx.geometry.Pos> |
posProperty() |
void |
setPadding(javafx.geometry.Insets padding)
Sets the padding to the target node.
|
void |
setPos(javafx.geometry.Pos pos)
Sets the position of the decoration node relative to the target node.
|
void |
setPosOffset(javafx.geometry.Point2D offset)
Sets the offset of the decoration node.
|
void |
setTransition(javafx.animation.Transition transition)
Sets the transition.
|
void |
setValueInPercent(boolean valueInPercent)
Sets the flag if the value is in percentage or pixels.
|
javafx.beans.property.ObjectProperty<javafx.animation.Transition> |
transitionProperty() |
javafx.beans.property.BooleanProperty |
valueInPercentProperty() |
getNode, getPadding, getPos, getPosOffset, getTransition, isValueInPercent, nodePropertyImpl, offsetPropertyImpl, paddingPropertyImpl, posPropertyImpl, transitionPropertyImpl, valueInPercentPropertyImplpublic javafx.beans.property.ObjectProperty<T extends javafx.scene.Node> nodeProperty
nodeProperty in class Decorator<T extends javafx.scene.Node>Decorator.getNode()public javafx.beans.property.ObjectProperty<javafx.geometry.Pos> posProperty
posProperty in class Decorator<T extends javafx.scene.Node>setPos(Pos)public javafx.beans.property.ObjectProperty<javafx.geometry.Insets> paddingProperty
paddingProperty in class Decorator<T extends javafx.scene.Node>setPadding(Insets)public javafx.beans.property.ObjectProperty<javafx.geometry.Point2D> offsetProperty
offsetProperty in class Decorator<T extends javafx.scene.Node>public javafx.beans.property.ObjectProperty<javafx.animation.Transition> transitionProperty
transitionProperty in class Decorator<T extends javafx.scene.Node>setTransition(Transition)public javafx.beans.property.BooleanProperty valueInPercentProperty
valueInPercentProperty in class Decorator<T extends javafx.scene.Node>setValueInPercent(boolean)public MutableDecorator()
public MutableDecorator(T node)
node - the decoration node.public MutableDecorator(T node, javafx.geometry.Pos pos)
node - the decoration node.pos - the position of the decoration node relative to the target node. For example, TOP_RIGHT means the
center of the decoration node will be at the exact top right corner of the target node.public MutableDecorator(T node, javafx.geometry.Pos pos, javafx.geometry.Point2D offset)
node - the decoration node.pos - the position of the decoration node relative to the target node. For example, TOP_RIGHT means the
center of the decoration node will be at the exact top right corner of the target node.offset - the offset of the decoration node. The value in the offset is the percentage of size of the
decoration node.public MutableDecorator(T node, javafx.geometry.Pos pos, javafx.geometry.Point2D offset, javafx.geometry.Insets padding)
node - the decoration node.pos - the position of the decoration node relative to the target node. For example, TOP_RIGHT means the
center of the decoration node will be at the exact top right corner of the target node.offset - the offset of the decoration node. The value in the offset is the percentage of size of the
decoration node.padding - the padding added to the target node. The value in the padding is the percentage of size of the
decoration node.public MutableDecorator(T node, javafx.geometry.Pos pos, javafx.geometry.Point2D offset, javafx.geometry.Insets padding, boolean valueInPercentOrPixels)
node - the decoration node.pos - the position of the decoration node relative to the target node. For example,
TOP_RIGHT means the center of the decoration node will be at the exact top right
corner of the target node.offset - the offset of the decoration node. The value in the offset is the percentage of
size of the decoration node if valueInPercentOrPixels is true. Otherwise, it would
be in pixels.padding - the padding added to the target node. The value in the padding is the percentage of
size of the decoration node if valueInPercentOrPixels is true. Otherwise, it would
be in pixels.valueInPercentOrPixels - true if the value in the offset and padding are percentage. Otherwise in pixels.public MutableDecorator(T node, javafx.geometry.Pos pos, javafx.geometry.Point2D offset, javafx.geometry.Insets padding, boolean valueInPercentOrPixels, jidefx.animation.AnimationType type)
node - the decoration node.pos - the position of the decoration node relative to the target node. For example,
TOP_RIGHT means the center of the decoration node will be at the exact top right
corner of the target node.offset - the offset of the decoration node. The value in the offset is the percentage of
size of the decoration node if valueInPercentOrPixels is true. Otherwise, it would
be in pixels.padding - the padding added to the target node. The value in the padding is the percentage of
size of the decoration node if valueInPercentOrPixels is true. Otherwise, it would
be in pixels.valueInPercentOrPixels - true if the value in the offset and padding are percentage. Otherwise in pixels.type - the animation type as defined in <code>AnimationType</code>.public MutableDecorator(T node, javafx.geometry.Pos pos, javafx.geometry.Point2D offset, javafx.geometry.Insets padding, boolean valueInPercentOrPixels, javafx.animation.Transition transition)
node - the decoration node.pos - the position of the decoration node relative to the target node. For example,
TOP_RIGHT means the center of the decoration node will be at the exact top right
corner of the target node.offset - the offset of the decoration node. The value in the offset is the percentage of
size of the decoration node if valueInPercentOrPixels is true. Otherwise, it would
be in pixels.padding - the padding added to the target node. The value in the padding is the percentage of
size of the decoration node if valueInPercentOrPixels is true. Otherwise, it would
be in pixels.valueInPercentOrPixels - true if the value in the offset and padding are percentage. Otherwise in pixels.transition - the transitionpublic javafx.beans.property.ObjectProperty<T> nodeProperty()
DecoratornodeProperty in class Decorator<T extends javafx.scene.Node>Decorator.getNode()public javafx.beans.property.ObjectProperty<javafx.geometry.Pos> posProperty()
posProperty in class Decorator<T extends javafx.scene.Node>setPos(Pos)public javafx.beans.property.ObjectProperty<javafx.geometry.Insets> paddingProperty()
paddingProperty in class Decorator<T extends javafx.scene.Node>setPadding(Insets)public javafx.beans.property.ObjectProperty<javafx.geometry.Point2D> offsetProperty()
offsetProperty in class Decorator<T extends javafx.scene.Node>public javafx.beans.property.ObjectProperty<javafx.animation.Transition> transitionProperty()
transitionProperty in class Decorator<T extends javafx.scene.Node>setTransition(Transition)public javafx.beans.property.BooleanProperty valueInPercentProperty()
valueInPercentProperty in class Decorator<T extends javafx.scene.Node>setValueInPercent(boolean)public void setPos(javafx.geometry.Pos pos)
pos - the Pos.public void setPosOffset(javafx.geometry.Point2D offset)
Decorator.isValueInPercent() is true. If not, the values should be in pixels.offset - the offset.public void setPadding(javafx.geometry.Insets padding)
Decorator.isValueInPercent() is true. If not, the values should be in pixels.padding - the padding.public void setTransition(javafx.animation.Transition transition)
transition - a new transition.public void setValueInPercent(boolean valueInPercent)
valueInPercent - true or false.