info.bioinfweb.treegraph.document.undo.format
Class AutoPositionLabelsEdit
java.lang.Object
info.bioinfweb.treegraph.document.undo.DocumentEdit
info.bioinfweb.treegraph.document.undo.format.AutoPositionLabelsEdit
- All Implemented Interfaces:
- UndoableEdit
public class AutoPositionLabelsEdit
- extends DocumentEdit
- Since:
- 2.0.35
- Author:
- Ben Stöver
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LABEL_BLOCK_ASPECT_RATIO
public static final double LABEL_BLOCK_ASPECT_RATIO
- See Also:
- Constant Field Values
LINE_POSITION_STEP
public static final int LINE_POSITION_STEP
- See Also:
- Constant Field Values
branches
private Branch[] branches
ids
private String[] ids
oldFormats
private Vector<LabelFormats>[] oldFormats
AutoPositionLabelsEdit
public AutoPositionLabelsEdit(Document document,
Branch[] branches)
backupFormats
private void backupFormats()
restoreFormats
private void restoreFormats()
position
private static void position(Branch branch,
String[] ids)
position
public static void position(Node root)
redo
public void redo()
throws CannotRedoException
- Specified by:
redo
in interface UndoableEdit
- Overrides:
redo
in class DocumentEdit
- Throws:
CannotRedoException
undo
public void undo()
throws CannotUndoException
- Specified by:
undo
in interface UndoableEdit
- Overrides:
undo
in class DocumentEdit
- Throws:
CannotUndoException
getPresentationName
public String getPresentationName()