org.jdesktop.animation.transitions.effects
Class Move
java.lang.Object
org.jdesktop.animation.transitions.Effect
org.jdesktop.animation.transitions.effects.Move
public class Move
- extends Effect
Effect that moves a component from its position in the start
state to its position in the end state, based on linear interpolation
between the two points during the time of the animated transition.
The class extends ComponentImageEffect to use a simple image copy
for rendering the component rather than re-rendering the actual
component during each frame.
Method Summary |
void |
cleanup(org.jdesktop.animation.timing.Animator animator)
Effect subclasses that create temporary objects for the transition
(such as in the init() method) should override this
method and clean up those resources. |
void |
init(org.jdesktop.animation.timing.Animator animator,
Effect parentEffect)
|
Methods inherited from class org.jdesktop.animation.transitions.Effect |
getComponent, getComponentImage, getEnd, getRenderComponent, getStart, paint, setBounds, setBounds, setComponentImage, setComponentStates, setEnd, setHeight, setLocation, setRenderComponent, setStart, setup, setWidth, setX, setY |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Move
public Move()
Move
public Move(ComponentState start,
ComponentState end)
- REMIND: docs
init
public void init(org.jdesktop.animation.timing.Animator animator,
Effect parentEffect)
- Overrides:
init
in class Effect
cleanup
public void cleanup(org.jdesktop.animation.timing.Animator animator)
- Description copied from class:
Effect
- Effect subclasses that create temporary objects for the transition
(such as in the
init()
method) should override this
method and clean up those resources. For example, TimingTarget
e.g., PropertySetter) objects added to Animator should be removed
after the transition to avoid leaking resources that may otherwise
be retained by those objects.
- Overrides:
cleanup
in class Effect