public class ManeuverAdded
extends javax.swing.undo.AbstractUndoableEdit
Modifier and Type | Field and Description |
---|---|
protected java.util.Vector<TransitionType> |
addedTransitions |
protected boolean |
initial |
protected Maneuver |
maneuver |
protected PlanType |
plan |
protected java.util.Vector<TransitionType> |
removedTransitions |
Constructor and Description |
---|
ManeuverAdded(Maneuver maneuver,
PlanType plan,
java.util.Collection<TransitionType> addedTransitions,
java.util.Collection<TransitionType> removedTransitions) |
Modifier and Type | Method and Description |
---|---|
boolean |
canRedo() |
boolean |
canUndo() |
Maneuver |
getManeuver() |
PlanType |
getPlan() |
java.lang.String |
getPresentationName() |
void |
redo() |
void |
undo() |
protected PlanType plan
protected Maneuver maneuver
protected java.util.Vector<TransitionType> addedTransitions
protected java.util.Vector<TransitionType> removedTransitions
protected boolean initial
public ManeuverAdded(Maneuver maneuver, PlanType plan, java.util.Collection<TransitionType> addedTransitions, java.util.Collection<TransitionType> removedTransitions)
public boolean canUndo()
canUndo
in interface javax.swing.undo.UndoableEdit
canUndo
in class javax.swing.undo.AbstractUndoableEdit
public boolean canRedo()
canRedo
in interface javax.swing.undo.UndoableEdit
canRedo
in class javax.swing.undo.AbstractUndoableEdit
public java.lang.String getPresentationName()
getPresentationName
in interface javax.swing.undo.UndoableEdit
getPresentationName
in class javax.swing.undo.AbstractUndoableEdit
public void undo() throws javax.swing.undo.CannotUndoException
undo
in interface javax.swing.undo.UndoableEdit
undo
in class javax.swing.undo.AbstractUndoableEdit
javax.swing.undo.CannotUndoException
public void redo() throws javax.swing.undo.CannotRedoException
redo
in interface javax.swing.undo.UndoableEdit
redo
in class javax.swing.undo.AbstractUndoableEdit
javax.swing.undo.CannotRedoException
public Maneuver getManeuver()
public PlanType getPlan()
Copyright © 2004-2014 FEUP-LSTS and Neptus developers. All Rights Reserved.