public class DefaultAnchorUtilities extends Object implements AnchorUtilities
Region
Rectangle
Circle
Ellipse
Arc
Text
Constructor and Description |
---|
DefaultAnchorUtilities() |
Modifier and Type | Method and Description |
---|---|
double |
getHeight(javafx.scene.Node node)
Return the height of a Node.
|
javafx.beans.binding.DoubleExpression |
getHeightProperty(javafx.scene.Node node)
Return the height property of a Node.
|
double |
getWidth(javafx.scene.Node node)
Return the width of a Node.
|
javafx.beans.binding.DoubleExpression |
getWidthProperty(javafx.scene.Node node)
Return the width property of a Node.
|
double |
getX(javafx.scene.Node node)
Return the X position of a Node.
|
javafx.beans.binding.DoubleExpression |
getXProperty(javafx.scene.Node node)
Return the X property of a Node.
|
double |
getY(javafx.scene.Node node)
Return the Y position of a Node.
|
javafx.beans.binding.DoubleExpression |
getYProperty(javafx.scene.Node node)
Return the Y property of a Node.
|
void |
setHeight(javafx.scene.Node node,
double value)
Set the height of a Node.
|
void |
setWidth(javafx.scene.Node node,
double value)
Set the width of a Node.
|
void |
setX(javafx.scene.Node node,
double value)
Set the X position of a Node.
|
void |
setY(javafx.scene.Node node,
double value)
Set the Y position of a Node.
|
public double getY(javafx.scene.Node node)
getY
in interface AnchorUtilities
node
- the Nodepublic double getX(javafx.scene.Node node)
getX
in interface AnchorUtilities
node
- the Nodepublic void setX(javafx.scene.Node node, double value)
setX
in interface AnchorUtilities
node
- the Nodevalue
- the X positionpublic void setY(javafx.scene.Node node, double value)
setY
in interface AnchorUtilities
node
- the Nodevalue
- the Y positionpublic void setHeight(javafx.scene.Node node, double value)
setHeight
in interface AnchorUtilities
node
- the Nodevalue
- the heightpublic double getHeight(javafx.scene.Node node)
getHeight
in interface AnchorUtilities
node
- the Nodepublic void setWidth(javafx.scene.Node node, double value)
setWidth
in interface AnchorUtilities
node
- the Nodevalue
- the widthpublic double getWidth(javafx.scene.Node node)
getWidth
in interface AnchorUtilities
node
- the Nodepublic javafx.beans.binding.DoubleExpression getXProperty(javafx.scene.Node node)
getXProperty
in interface AnchorUtilities
node
- the Nodepublic javafx.beans.binding.DoubleExpression getYProperty(javafx.scene.Node node)
getYProperty
in interface AnchorUtilities
node
- the Nodepublic javafx.beans.binding.DoubleExpression getHeightProperty(javafx.scene.Node node)
getHeightProperty
in interface AnchorUtilities
node
- the Nodepublic javafx.beans.binding.DoubleExpression getWidthProperty(javafx.scene.Node node)
getWidthProperty
in interface AnchorUtilities
node
- the Node