All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jgraph.graph.ExecutableChange Maven / Gradle / Ivy

The newest version!
/*
 * $Id: ExecutableChange.java,v 1.1 2006/10/27 15:33:08 david Exp $
 * Copyright (c) 2001-2005, Gaudenz Alder
 * 
 * All rights reserved.
 * 
 * See LICENSE file for license details. If you are unable to locate
 * this file please contact info (at) jgraph (dot) com.
 */
package org.jgraph.graph;

import javax.swing.undo.AbstractUndoableEdit;

/**
 * The interface executable changes must adhere to
 */
public abstract class ExecutableChange extends AbstractUndoableEdit {

	/*
	 * (non-Javadoc)
	 * 
	 * @see javax.swing.undo.UndoableEdit#undo()
	 */
	public void undo() {
		execute();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see javax.swing.undo.UndoableEdit#redo()
	 */
	public void redo() {
		execute();
	}

	/**
	 * 
	 */
	public abstract void execute();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy