super.stop();
}
@Override
public void update() {
Sheet sheet = (Sheet)getComponent();
float scale;
if (isReversed()) {
scale = easing.easeIn(getElapsedTime(), 1, -1, getDuration());
} else {
scale = easing.easeOut(getElapsedTime(), 1, -1, getDuration());
}
Display display = sheet.getDisplay();
if (display != null) {
Bounds decoratedBounds = sheet.getDecoratedBounds();
display.repaint(decoratedBounds.x, decoratedBounds.y,
decoratedBounds.width, decoratedBounds.height + dy);
Dimensions size = sheet.getPreferredSize();
dy = -(int)(size.height * scale);
translationDecorator.setY(dy);
display.repaint(decoratedBounds.x, decoratedBounds.y,
decoratedBounds.width, decoratedBounds.height + dy);