|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractAction
templates.diagram.actions.AbstractDiagramAction
templates.diagram.actions.DiagramActions.AddLinkAction
public static class DiagramActions.AddLinkAction
Action which creates a TemplateLink between two events from the
TemplateComponents linked by a Connector and adds the new
TemplateLink to the Connector.
| Field Summary | |
|---|---|
protected Connector |
connector
The Connector to which the new TemplateLink will be
added. |
protected TemplateDiagram |
diagram
The TemplateDiagram context to be used by the action. |
protected java.lang.String |
leftEvent
The event (from the "left" TemplateComponent) which has to be
linked. |
protected java.lang.String |
rightEvent
The event (from the "right" TemplateComponent) which has to
be linked. |
| Fields inherited from class templates.diagram.actions.AbstractDiagramAction |
|---|
parentEdit, usePluralDescription |
| 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.AddLinkAction(javax.swing.undo.CompoundEdit parent,
TemplateDiagram diagram,
Connector connector,
java.lang.String leftEvent,
java.lang.String rightEvent)
Construct an action for the given parameters. |
|
DiagramActions.AddLinkAction(TemplateDiagram diagram,
Connector connector,
java.lang.String leftEvent,
java.lang.String rightEvent)
Construct an action for the given parameters. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
| Methods inherited from class templates.diagram.actions.AbstractDiagramAction |
|---|
addBoundsAdjust, execute, postEdit, postEdit, postEditAdjustCanvas, postEditAdjustCanvas, setLastOfMultiple |
| 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 TemplateDiagram diagram
TemplateDiagram context to be used by the action.
protected Connector connector
Connector to which the new TemplateLink will be
added.
protected java.lang.String leftEvent
TemplateComponent) which has to be
linked.
A connector is symmetric. "Left" and "right" are used only to enable addressing the two linked components separately.
protected java.lang.String rightEvent
TemplateComponent) which has to
be linked.
A connector is symmetric. "Left" and "right" are used only to enable addressing the two linked components separately.
| Constructor Detail |
|---|
public DiagramActions.AddLinkAction(TemplateDiagram diagram,
Connector connector,
java.lang.String leftEvent,
java.lang.String rightEvent)
A connector is symmetric. "Left" and "right" are used only to enable addressing the two linked components separately.
diagram - the TemplateDiagram to be used by the actionconnector - the Connector to which the new
TemplateLink will be addedleftEvent - the event (from the "left" TemplateComponent)
which has to be linkedrightEvent - the event (from the "right" TemplateComponent)
which has to be linked
public DiagramActions.AddLinkAction(javax.swing.undo.CompoundEdit parent,
TemplateDiagram diagram,
Connector connector,
java.lang.String leftEvent,
java.lang.String rightEvent)
A connector is symmetric. "Left" and "right" are used only to enable addressing the two linked components separately.
parent - the UndoableEdit to which this action should add
its own undo informationdiagram - the TemplateDiagram to be used by the actionconnector - the Connector to which the new
TemplateLink will be addedleftEvent - the event (from the "left" TemplateComponent)
which has to be linkedrightEvent - the event (from the "right" TemplateComponent)
which has to be linked| Method Detail |
|---|
public void actionPerformed(java.awt.event.ActionEvent e)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||