Package org.minifx.fxcommons.util
Class AnchorPanes
- java.lang.Object
-
- org.minifx.fxcommons.util.AnchorPanes
-
public final class AnchorPanes extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidanchorFor(javafx.scene.Node target, double value)Apply theAnchorPane.setTopAnchor(Node, Double)(and others) to the given targetstatic javafx.scene.layout.AnchorPanewrapWithAnchor(javafx.scene.Node node)Wrap the givenNodewith anAnchorPaneand apply 0.0 as anchor valuestatic javafx.scene.layout.AnchorPanewrapWithAnchor(javafx.scene.Node node, double anchorValue)Wrap the givenNodewith anAnchorPaneand apply the specified anchor valuestatic voidzeroAnchorFor(javafx.scene.Node target)Same asanchorFor(Node, double)but with 0.0 as anchor value
-
-
-
Method Detail
-
wrapWithAnchor
public static javafx.scene.layout.AnchorPane wrapWithAnchor(javafx.scene.Node node, double anchorValue)Wrap the givenNodewith anAnchorPaneand apply the specified anchor value- Parameters:
node- the node to wrapanchorValue- the anchor value to apply to the node- Returns:
- an anchor pane with the node wrapped
-
wrapWithAnchor
public static javafx.scene.layout.AnchorPane wrapWithAnchor(javafx.scene.Node node)
Wrap the givenNodewith anAnchorPaneand apply 0.0 as anchor value- Parameters:
node- the node to wrap- Returns:
- an anchor pane with the node wrapped
-
zeroAnchorFor
public static void zeroAnchorFor(javafx.scene.Node target)
Same asanchorFor(Node, double)but with 0.0 as anchor value- Parameters:
target- the node to wrap
-
anchorFor
public static void anchorFor(javafx.scene.Node target, double value)Apply theAnchorPane.setTopAnchor(Node, Double)(and others) to the given target- Parameters:
target- the node to wrapvalue- the anchor value to use
-
-