Newer
Older
MagnetRON / src / org / ntlab / actions / SkipBackAnimationAction.java
Aki Hongo on 22 Sep 2021 742 bytes #67 Implemented the feature to skip back animation
package org.ntlab.actions;

import java.awt.event.ActionEvent;

import org.ntlab.deltaViewer.IMagnetRON;
import org.ntlab.deltaViewer.MagnetRONFrame;

public class SkipBackAnimationAction extends AbstractMagnetRONAction {

	private static final long serialVersionUID = -7485589008525481164L;

	public SkipBackAnimationAction(IMagnetRON magnetRON) {
		super("Skip Back", magnetRON);
	}

	public SkipBackAnimationAction(String name, IMagnetRON magnetRON) {
		super(name, magnetRON);
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		if (super.magnetRON instanceof MagnetRONFrame) {
			MagnetRONFrame magnetRONFrame = (MagnetRONFrame) super.magnetRON;
			magnetRONFrame.skipBackAnimation();			
		}
	}

}