public class PlanZChanged
extends javax.swing.undo.AbstractUndoableEdit
Modifier and Type | Field and Description |
---|---|
protected ManeuverLocation.Z_UNITS |
newUnits |
protected double |
newZ |
protected PlanType |
plan |
protected java.util.LinkedHashMap<java.lang.String,ManeuverLocation.Z_UNITS> |
previousUnits |
protected java.util.LinkedHashMap<java.lang.String,java.lang.Double> |
previousValues |
Constructor and Description |
---|
PlanZChanged(PlanType plan,
double newZ,
ManeuverLocation.Z_UNITS newUnits,
java.util.LinkedHashMap<java.lang.String,ManeuverLocation.Z_UNITS> previousUnits,
java.util.LinkedHashMap<java.lang.String,java.lang.Double> previousValues) |
Modifier and Type | Method and Description |
---|---|
boolean |
canRedo() |
boolean |
canUndo() |
PlanType |
getPlan() |
java.lang.String |
getPresentationName() |
void |
redo() |
void |
undo() |
protected java.util.LinkedHashMap<java.lang.String,ManeuverLocation.Z_UNITS> previousUnits
protected java.util.LinkedHashMap<java.lang.String,java.lang.Double> previousValues
protected double newZ
protected ManeuverLocation.Z_UNITS newUnits
protected PlanType plan
public PlanZChanged(PlanType plan, double newZ, ManeuverLocation.Z_UNITS newUnits, java.util.LinkedHashMap<java.lang.String,ManeuverLocation.Z_UNITS> previousUnits, java.util.LinkedHashMap<java.lang.String,java.lang.Double> previousValues)
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 PlanType getPlan()
Copyright © 2004-2020 FEUP-LSTS and Neptus developers. All Rights Reserved.