Class AnchorPanes


  • public final class AnchorPanes
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void anchorFor​(javafx.scene.Node target, double value)
      Apply the AnchorPane.setTopAnchor(Node, Double) (and others) to the given target
      static javafx.scene.layout.AnchorPane wrapWithAnchor​(javafx.scene.Node node)
      Wrap the given Node with an AnchorPane and apply 0.0 as anchor value
      static javafx.scene.layout.AnchorPane wrapWithAnchor​(javafx.scene.Node node, double anchorValue)
      Wrap the given Node with an AnchorPane and apply the specified anchor value
      static void zeroAnchorFor​(javafx.scene.Node target)
      Same as anchorFor(Node, double) but with 0.0 as anchor value
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • wrapWithAnchor

        public static javafx.scene.layout.AnchorPane wrapWithAnchor​(javafx.scene.Node node,
                                                                    double anchorValue)
        Wrap the given Node with an AnchorPane and apply the specified anchor value
        Parameters:
        node - the node to wrap
        anchorValue - 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 given Node with an AnchorPane and 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 as anchorFor(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 the AnchorPane.setTopAnchor(Node, Double) (and others) to the given target
        Parameters:
        target - the node to wrap
        value - the anchor value to use