|
org.netbeans.api.visual 2.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.api.visual.animator.SceneAnimator
public final class SceneAnimator
Manages all animations on a scene. An animation can be registered and started by calling Animator.start method. The class contains a few built-in animators: preferredLocation, preferredBounds, background, foreground, zoomFactor.
| Constructor Summary | |
|---|---|
SceneAnimator(Scene scene)
Creates a scene animator. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SceneAnimator(Scene scene)
scene - | Method Detail |
|---|
public Scene getScene()
public boolean isAnimatingPreferredLocation(Widget widget)
widget - the widget
public void animatePreferredLocation(Widget widget, Point targetPreferredLocation)
widget - the widgettargetPreferredLocation - the target preferred locationpublic boolean isAnimatingPreferredBounds(Widget widget)
widget - the widget
public 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 widget
public void animateBackgroundColor(Widget widget, Color targetBackgroundColor)
widget - the widgettargetBackgroundColor - the target background colorpublic boolean isAnimatingForegroundColor(Widget widget)
widget - the widget
public void animateForegroundColor(Widget widget, Color targetForegroundColor)
widget - the widgettargetForegroundColor - the target foreground colorpublic Animator getPreferredLocationAnimator()
public Animator getPreferredBoundsAnimator()
public Animator getZoomAnimator()
public Animator getColorAnimator()
|
org.netbeans.api.visual 2.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||