|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractAction
templates.diagram.actions.DiagramActions.ShiftDiagramInViewAction
public static class DiagramActions.ShiftDiagramInViewAction
Action which translates a TemplateDiagram so that the diagram is
in view (all elements have positive co-ordinates).
This action is not a sublass of AbstractDiagramAction since some
methods of the abstract class depend on the functionality of this action.
| Field Summary | |
|---|---|
protected TemplateDiagram |
diagram
The TemplateDiagram to be translated. |
protected javax.swing.undo.CompoundEdit |
parentEdit
If this action is not independent, the UndoableEdit the
action is part of. |
| Fields inherited from class javax.swing.AbstractAction |
|---|
changeSupport, enabled |
| Fields inherited from interface javax.swing.Action |
|---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
| Constructor Summary | |
|---|---|
DiagramActions.ShiftDiagramInViewAction(javax.swing.undo.CompoundEdit parentEdit,
TemplateDiagram diagram)
Construct an action for the given parameters. |
|
DiagramActions.ShiftDiagramInViewAction(TemplateDiagram diagram)
Construct an action for the given parameters. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
|
void |
execute()
Perform the action. |
| Methods inherited from class javax.swing.AbstractAction |
|---|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected javax.swing.undo.CompoundEdit parentEdit
UndoableEdit the
action is part of. null if this action is independent.
protected TemplateDiagram diagram
TemplateDiagram to be translated.
| Constructor Detail |
|---|
public DiagramActions.ShiftDiagramInViewAction(TemplateDiagram diagram)
diagram - the TemplateDiagram to be translated
public DiagramActions.ShiftDiagramInViewAction(javax.swing.undo.CompoundEdit parentEdit,
TemplateDiagram diagram)
parentEdit - the UndoableEdit to which this action should add
its own undo informationdiagram - the TemplateDiagram to be translated| Method Detail |
|---|
public void actionPerformed(java.awt.event.ActionEvent event)
public void execute()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||