|
||||||||||
| 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.CreateTemplateInstanceAction
public static class DiagramActions.CreateTemplateInstanceAction
Action which creates a new instance of a Template in a
TemplateDiagram.
| Field Summary | |
|---|---|
protected Entity[] |
buffer
A buffer which will store the new instance so it can be passed back. |
protected TemplateDiagram |
diagram
The TemplateDiagram context to be used by the action. |
protected java.awt.Point |
location
The location where the template instance should appear. |
protected Template |
template
The template to be instantiated. |
| 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.CreateTemplateInstanceAction(javax.swing.undo.CompoundEdit parent,
TemplateDiagram diagram,
Template template,
java.awt.Point location)
Construct an action for the given parameters. |
|
DiagramActions.CreateTemplateInstanceAction(javax.swing.undo.CompoundEdit parent,
TemplateDiagram diagram,
Template template,
java.awt.Point location,
Entity[] buffer)
Construct an action for the given parameters. |
|
DiagramActions.CreateTemplateInstanceAction(TemplateDiagram diagram,
Template template,
java.awt.Point location)
Construct an action for the given parameters. |
|
DiagramActions.CreateTemplateInstanceAction(TemplateDiagram diagram,
Template template,
java.awt.Point location,
Entity[] 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 Template template
protected java.awt.Point location
protected Entity[] buffer
| Constructor Detail |
|---|
public DiagramActions.CreateTemplateInstanceAction(TemplateDiagram diagram,
Template template,
java.awt.Point location)
diagram - the TemplateDiagram to be used by the actiontemplate - the template to be instantiatedlocation - the location where the template instance should appear
public DiagramActions.CreateTemplateInstanceAction(TemplateDiagram diagram,
Template template,
java.awt.Point location,
Entity[] buffer)
diagram - the TemplateDiagram to be used by the actiontemplate - the template to be instantiatedlocation - the location where the template instance should appearbuffer - the buffer which will store the new Template
instance so the caller can get access to it
public DiagramActions.CreateTemplateInstanceAction(javax.swing.undo.CompoundEdit parent,
TemplateDiagram diagram,
Template template,
java.awt.Point location)
parent - the UndoableEdit to which this action should add
its own undo informationdiagram - the TemplateDiagram to be used by the actiontemplate - the template to be instantiatedlocation - the location where the template instance should appear
public DiagramActions.CreateTemplateInstanceAction(javax.swing.undo.CompoundEdit parent,
TemplateDiagram diagram,
Template template,
java.awt.Point location,
Entity[] buffer)
parent - the UndoableEdit to which this action should add
its own undo informationdiagram - the TemplateDiagram to be used by the actiontemplate - the template to be instantiatedlocation - the location where the template instance should appearbuffer - the buffer which will store the new Template
instance 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 | |||||||||