Package org.apache.pivot.wtk.skin.terra
Class TerraExpanderSkin.ExpandTransition
- java.lang.Object
-
- org.apache.pivot.wtk.effects.Transition
-
- org.apache.pivot.wtk.skin.terra.TerraExpanderSkin.ExpandTransition
-
- Enclosing class:
- TerraExpanderSkin
public class TerraExpanderSkin.ExpandTransition extends Transition
Expand/collapse transition.
-
-
Constructor Summary
Constructors Constructor Description ExpandTransition(boolean reversed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
getScale()
void
start(TransitionListener transitionListener)
Starts the transition.void
stop()
Stops the transition running with no final update, and does not fire aTransitionListener.transitionCompleted(Transition)
event.protected void
update()
Called repeatedly while the transition is running to update the transition's state.-
Methods inherited from class org.apache.pivot.wtk.effects.Transition
end, getCurrentTime, getDuration, getElapsedTime, getInterval, getPercentComplete, getRate, getStartTime, isRepeating, isReversed, isRunning, reverse, setDuration, setRate, setReversed, start, themeHasTransitionEnabled
-
-
-
-
Method Detail
-
getScale
public float getScale()
-
start
public void start(TransitionListener transitionListener)
Description copied from class:Transition
Starts the transition. CallsTransition.update()
to establish the initial state and starts a timer that will repeatedly callTransition.update()
at the current rate. The specifiedTransitionListener
will be notified when the transition completes.- Overrides:
start
in classTransition
- Parameters:
transitionListener
- The listener to get notified when the transition completes, ornull
if no notification is necessary.
-
stop
public void stop()
Description copied from class:Transition
Stops the transition running with no final update, and does not fire aTransitionListener.transitionCompleted(Transition)
event.- Overrides:
stop
in classTransition
-
update
protected void update()
Description copied from class:Transition
Called repeatedly while the transition is running to update the transition's state.- Specified by:
update
in classTransition
-
-