Class LayoutAnimator

java.lang.Object
org.tbee.javafx.scene.layout.LayoutAnimator

public class LayoutAnimator extends Object
  • Field Details

    • ANIM_REPLACE_ID

      private static final String ANIM_REPLACE_ID
      See Also:
    • ANIM_DURATION

      public static final javafx.util.Duration ANIM_DURATION
    • pane

      private final MigPane pane
    • addedNodes

      private final ArrayList<javafx.scene.Node> addedNodes
    • removedNodes

      private final ArrayList<javafx.scene.Node> removedNodes
    • nodeAnimMap

      private final IdentityHashMap<javafx.scene.Node,HashMap<LayoutAnimator.TransType,javafx.animation.Transition>> nodeAnimMap
    • replacedNodeMap

      private final IdentityHashMap<javafx.scene.Node,javafx.scene.Node> replacedNodeMap
  • Constructor Details

    • LayoutAnimator

      public LayoutAnimator(MigPane pane)
  • Method Details

    • animate

      void animate(javafx.scene.Node node, javafx.geometry.Rectangle2D toBounds)
      Animates the node.
      Parameters:
      node - The node to animate. Not null.
      toBounds - If != null the animation will be to these bounds.
    • createOrUpdateAnimation

      private HashMap<LayoutAnimator.TransType,javafx.animation.Transition> createOrUpdateAnimation(javafx.scene.Node node, HashMap<LayoutAnimator.TransType,javafx.animation.Transition> transMap, javafx.geometry.Rectangle2D toBounds)
    • extractOpacity

      private double extractOpacity(javafx.scene.Node node)
    • nodeAdded

      void nodeAdded(javafx.scene.Node node)
    • nodeRemoved

      void nodeRemoved(javafx.scene.Node node)
    • isReplacement

      private static boolean isReplacement(javafx.scene.Node node)
    • createReplacement

      public javafx.scene.Node createReplacement(javafx.scene.Node node)
    • start

      void start()
    • getBounds

      private static javafx.geometry.Rectangle2D getBounds(javafx.scene.Node node)