templates.presentation
Class UIActions.CreateEntityAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by templates.presentation.UIActions.CreateEntityAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
Enclosing class:
UIActions

public static class UIActions.CreateEntityAction
extends javax.swing.AbstractAction

Action to create a new Entity in a template design.

Author:
Lenko Grigorov
See Also:
Serialized Form

Field Summary
protected  TemplateEditableCanvas canvas
          The canvas which will contain the entity.
 
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
UIActions.CreateEntityAction(TemplateEditableCanvas canvas, java.awt.Point location)
          Construct an action to add a new Entity at the given location.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
          Create a new Entity at the given location.
 
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

canvas

protected TemplateEditableCanvas canvas
The canvas which will contain the entity.

Constructor Detail

UIActions.CreateEntityAction

public UIActions.CreateEntityAction(TemplateEditableCanvas canvas,
                                    java.awt.Point location)
Construct an action to add a new Entity at the given location.

Parameters:
canvas - the canvas which will contain the entity
location - the location for the new entity
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
Create a new Entity at the given location.