|
||||||||||
| 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.CreateConnectorAction
public static class DiagramActions.CreateConnectorAction
Action which creates a Connector in a TemplateDiagram.
| Field Summary | |
|---|---|
protected Connector[] |
buffer
A buffer which will store the new Connector so it can be
passed back. |
protected TemplateDiagram |
diagram
The TemplateDiagram context to be used by the action. |
protected Entity |
left
The first Entity to be linked. |
protected Entity |
right
The second Entity 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.CreateConnectorAction(javax.swing.undo.CompoundEdit parent,
TemplateDiagram diagram,
Entity left,
Entity right)
Construct an action for the given parameters. |
|
DiagramActions.CreateConnectorAction(javax.swing.undo.CompoundEdit parent,
TemplateDiagram diagram,
Entity left,
Entity right,
Connector[] buffer)
Construct an action for the given parameters. |
|
DiagramActions.CreateConnectorAction(TemplateDiagram diagram,
Entity left,
Entity right)
Construct an action for the given parameters. |
|
DiagramActions.CreateConnectorAction(TemplateDiagram diagram,
Entity left,
Entity right,
Connector[] buffer)
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 Entity left
Entity to be linked.
A connector is symmetric. "Left" and "right" are used only to enable addressing the two linked entities separately.
protected Entity right
Entity to be linked.
A connector is symmetric. "Left" and "right" are used only to enable addressing the two linked entities separately.
protected Connector[] buffer
Connector so it can be
passed back.
| Constructor Detail |
|---|
public DiagramActions.CreateConnectorAction(TemplateDiagram diagram,
Entity left,
Entity right)
A connector is symmetric. "Left" and "right" are used only to enable addressing the two linked entities separately.
diagram - the TemplateDiagram to be used by the actionleft - the first Entity to be linkedright - the second Entity to be linked
public DiagramActions.CreateConnectorAction(TemplateDiagram diagram,
Entity left,
Entity right,
Connector[] buffer)
A connector is symmetric. "Left" and "right" are used only to enable addressing the two linked entities separately.
diagram - the TemplateDiagram to be used by the actionleft - the first Entity to be linkedright - the second Entity to be linkedbuffer - the buffer which will store the new Connector so
the caller can get access to it
public DiagramActions.CreateConnectorAction(javax.swing.undo.CompoundEdit parent,
TemplateDiagram diagram,
Entity left,
Entity right)
A connector is symmetric. "Left" and "right" are used only to enable addressing the two linked entities separately.
parent - the UndoableEdit to which this action should add
its own undo informationdiagram - the TemplateDiagram to be used by the actionleft - the first Entity to be linkedright - the second Entity to be linked
public DiagramActions.CreateConnectorAction(javax.swing.undo.CompoundEdit parent,
TemplateDiagram diagram,
Entity left,
Entity right,
Connector[] buffer)
A connector is symmetric. "Left" and "right" are used only to enable addressing the two linked entities separately.
parent - the UndoableEdit to which this action should add
its own undo informationdiagram - the TemplateDiagram to be used by the actionleft - the first Entity to be linkedright - the second Entity to be linkedbuffer - the buffer which will store the new Connector so
the caller can get access to it| 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 | |||||||||