public final class SceneAnimator extends Object
Constructor | Description |
---|---|
SceneAnimator(Scene scene) |
Creates a scene animator.
|
Modifier and Type | Method | Description |
---|---|---|
void |
animateBackgroundColor(Widget widget,
Color targetBackgroundColor) |
Starts backgroundColor animation for a specified widget.
|
void |
animateForegroundColor(Widget widget,
Color targetForegroundColor) |
Starts foregroundColor animation for a specified widget.
|
void |
animatePreferredBounds(Widget widget,
Rectangle targetPreferredBounds) |
Starts preferredBounds animation for a specified widget.
|
void |
animatePreferredLocation(Widget widget,
Point targetPreferredLocation) |
Starts preferredLocation animation for a specified widget.
|
void |
animateZoomFactor(double targetZoomFactor) |
Starts zoomFactor animation.
|
Animator |
getColorAnimator() |
Returns the color animator which animates background and foreground colors of all widgets in the scene.
|
Animator |
getPreferredBoundsAnimator() |
Returns the preferred bounds animator which animates preferred bounds of all widgets in the scene.
|
Animator |
getPreferredLocationAnimator() |
Returns the preferred location animator which animates preferred location of all widgets in the scene.
|
Scene |
getScene() |
Returns an assigned scene.
|
double |
getTargetZoomFactor() |
Returns a target zoom factor.
|
Animator |
getZoomAnimator() |
Returns the zoom animator.
|
boolean |
isAnimatingBackgroundColor(Widget widget) |
Returns whether a backgroundColor animator for a specified widget is running.
|
boolean |
isAnimatingForegroundColor(Widget widget) |
Returns whether a foregroundColor animator for a specified widget is running.
|
boolean |
isAnimatingPreferredBounds(Widget widget) |
Returns whether a preferredBounds animator for a specified widget is running.
|
boolean |
isAnimatingPreferredLocation(Widget widget) |
Returns whether a preferredLocation animator for a specified widget is running.
|
boolean |
isAnimatingZoomFactor() |
Returns whether a zoomFactor animator is running.
|
public SceneAnimator(Scene scene)
scene
- the scenepublic Scene getScene()
public boolean isAnimatingPreferredLocation(Widget widget)
widget
- the widgetpublic void animatePreferredLocation(Widget widget, Point targetPreferredLocation)
widget
- the widgettargetPreferredLocation
- the target preferred locationpublic boolean isAnimatingPreferredBounds(Widget widget)
widget
- the widgetpublic void animatePreferredBounds(Widget widget, Rectangle targetPreferredBounds)
widget
- the widgettargetPreferredBounds
- the target preferred boundspublic boolean isAnimatingZoomFactor()
public double getTargetZoomFactor()
public void animateZoomFactor(double targetZoomFactor)
targetZoomFactor
- the target zoom factorpublic boolean isAnimatingBackgroundColor(Widget widget)
widget
- the widgetpublic void animateBackgroundColor(Widget widget, Color targetBackgroundColor)
widget
- the widgettargetBackgroundColor
- the target background colorpublic boolean isAnimatingForegroundColor(Widget widget)
widget
- the widgetpublic void animateForegroundColor(Widget widget, Color targetForegroundColor)
widget
- the widgettargetForegroundColor
- the target foreground colorpublic Animator getPreferredLocationAnimator()
public Animator getPreferredBoundsAnimator()
public Animator getZoomAnimator()
public Animator getColorAnimator()
Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.