java.lang.Object
org.tbee.javafx.scene.layout.LayoutAnimator
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate class(package private) static enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ArrayList<javafx.scene.Node> static final javafx.util.Durationprivate static final Stringprivate final IdentityHashMap<javafx.scene.Node, HashMap<LayoutAnimator.TransType, javafx.animation.Transition>> private final MigPaneprivate final ArrayList<javafx.scene.Node> private final IdentityHashMap<javafx.scene.Node, javafx.scene.Node> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidanimate(javafx.scene.Node node, javafx.geometry.Rectangle2D toBounds) Animates the node.private HashMap<LayoutAnimator.TransType, javafx.animation.Transition> createOrUpdateAnimation(javafx.scene.Node node, HashMap<LayoutAnimator.TransType, javafx.animation.Transition> transMap, javafx.geometry.Rectangle2D toBounds) javafx.scene.NodecreateReplacement(javafx.scene.Node node) private doubleextractOpacity(javafx.scene.Node node) private static javafx.geometry.Rectangle2DgetBounds(javafx.scene.Node node) private static booleanisReplacement(javafx.scene.Node node) (package private) voidnodeAdded(javafx.scene.Node node) (package private) voidnodeRemoved(javafx.scene.Node node) (package private) voidstart()
-
Field Details
-
ANIM_REPLACE_ID
- See Also:
-
ANIM_DURATION
public static final javafx.util.Duration ANIM_DURATION -
pane
-
addedNodes
-
removedNodes
-
nodeAnimMap
private final IdentityHashMap<javafx.scene.Node,HashMap<LayoutAnimator.TransType, nodeAnimMapjavafx.animation.Transition>> -
replacedNodeMap
-
-
Constructor Details
-
LayoutAnimator
-
-
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)
-