public class AnimatedFlowContainer extends java.lang.Object implements FlowContainer<javafx.scene.layout.StackPane>
FlowContainer that supports animation for the view change.| ?????? |
|---|
AnimatedFlowContainer()
Defaults constructor that creates a container with a fade animation that last 320 ms.
|
AnimatedFlowContainer(javafx.util.Duration duration)
Creates a container with a fade animation and the given duration
|
AnimatedFlowContainer(javafx.util.Duration duration,
ContainerAnimations animation)
Creates a container with the given animation type and duration
|
AnimatedFlowContainer(javafx.util.Duration duration,
java.util.function.Function<AnimatedFlowContainer,java.util.List<javafx.animation.KeyFrame>> animationProducer)
Creates a container with the given animation type and duration
|
| ?????? | ????? |
|---|---|
javafx.util.Duration |
getDuration()
Returns the duration for the animation
|
javafx.scene.image.ImageView |
getPlaceholder()
Returns the
ImageView instance that is used as a placeholder for the old view in each navigation animation. |
javafx.scene.layout.StackPane |
getView()
Return the Parent node that is rendering the flow.
|
<U> void |
setViewContext(ViewContext<U> context)
The given view will be the new view of the flow.
|
public AnimatedFlowContainer()
public AnimatedFlowContainer(javafx.util.Duration duration)
duration - the duration of the animationpublic AnimatedFlowContainer(javafx.util.Duration duration,
ContainerAnimations animation)
duration - the duration of the animationanimation - the animation typepublic AnimatedFlowContainer(javafx.util.Duration duration,
java.util.function.Function<AnimatedFlowContainer,java.util.List<javafx.animation.KeyFrame>> animationProducer)
duration - the duration of the animationanimationProducer - the KeyFrame instances that define the animationpublic <U> void setViewContext(ViewContext<U> context)
FlowContainersetViewContext ???? FlowContainer<javafx.scene.layout.StackPane>context - Context of the current viewpublic javafx.scene.image.ImageView getPlaceholder()
ImageView instance that is used as a placeholder for the old view in each navigation animation.public javafx.util.Duration getDuration()
public javafx.scene.layout.StackPane getView()
FlowContainergetView ???? FlowContainer<javafx.scene.layout.StackPane>