Class LayoutAnimator

java.lang.Object
org.eclipse.draw2d.Animator
org.eclipse.draw2d.LayoutAnimator
All Implemented Interfaces:
LayoutListener

public class LayoutAnimator extends Animator implements LayoutListener
Animates the layout of a figure's children. The animator will capture the effects of a layout manager, and then play back the placement of children using linear interpolation for each child's start and end locations.

To use an animator, hook it as a layout listener for the figure whose layout is to be animated, by calling IFigure.addLayoutListener(LayoutListener). It is not necessary to have an animator for every figure in a composition that is undergoing animation. For example, if a figure without an animator moves during the animation, it will continue to move and layout its children normally during each step of the animation.

Animator must be used in conjunction with layouts. If figures are placed manually using setBounds(), the animator may not be able to track and playback the changes that occur.

Since:
3.2
  • Constructor Details

    • LayoutAnimator

      protected LayoutAnimator()
      Constructs a new Animator. The default instance (getDefault()) can be used on all figures being animated.
      Since:
      3.2
  • Method Details