|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.animation.transitions.EffectsManager
public final class EffectsManager
This class manages the cache of effects for the application. Users
wishing to have specific effects occur on particular components
should cache those effects here. These effects will be retrieved
at transition time, based on which components are transitioning
and which EffectsManager.TransitionType
is needed.
Nested Class Summary | |
---|---|
static class |
EffectsManager.TransitionType
An enum that describes the type of transition that this effect should be used for. |
Method Summary | |
---|---|
static void |
clearAllEffects()
This method clears the manager of all effects previously set. |
static void |
clearEffects(EffectsManager.TransitionType transitionType)
This method clears all effects for the specified transitionType . |
static Effect |
getEffect(javax.swing.JComponent component,
EffectsManager.TransitionType transitionType)
This method is called during the setup phase for any transition. |
static void |
removeEffect(javax.swing.JComponent component,
EffectsManager.TransitionType transitionType)
This method removes an effect for the specified (if it exists) from the manager for the specified transitionType . |
static void |
setEffect(javax.swing.JComponent component,
Effect effect,
EffectsManager.TransitionType transitionType)
This method is used to cache a custom effect on a per-component basis for the application. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void setEffect(javax.swing.JComponent component, Effect effect, EffectsManager.TransitionType transitionType)
TransitionType
.
So a custom TransitionType.CHANGING
effect for a
given component will have no bearing on the effect used in a
transition where the component either appears or disappers between
the transition states.
component
- The Component that this effect should be applied toeffect
- The custom effect desired. A null argument effectively
cancels any prior custom value for this component and this
TransitionTypetransitionType
- The type of transition to apply this effect onEffectsManager.TransitionType
public static Effect getEffect(javax.swing.JComponent component, EffectsManager.TransitionType transitionType)
TransitionType
component
- The component we are querying on behalf oftransitionType
- The type of transition that the component
is going to undergo
public static void removeEffect(javax.swing.JComponent component, EffectsManager.TransitionType transitionType)
transitionType
.
component
- The component that the effect is currently linked
to in the managertransitionType
- The type of transition that the component
is going to undergopublic static void clearEffects(EffectsManager.TransitionType transitionType)
transitionType
.
transitionType
- The type of transition that the component
is going to undergopublic static void clearAllEffects()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |