easik.ui.menu.popup
Class NewEntityAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by easik.ui.menu.popup.NewEntityAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class NewEntityAction
extends javax.swing.AbstractAction

Action for the new entity option in the popup menu.

Author:
Rob Fletcher 2005
See Also:
Serialized Form

Field Summary
(package private)  java.awt.Point _newPoint
          The point at which to place the new entity
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
NewEntityAction(java.awt.Point inPoint)
          Prepare the menu option, as well as pass a reference to the last clicked point, which is used when positioning the new entity.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Create the new entity and set up its name
 
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

_newPoint

java.awt.Point _newPoint
The point at which to place the new entity

Constructor Detail

NewEntityAction

public NewEntityAction(java.awt.Point inPoint)
Prepare the menu option, as well as pass a reference to the last clicked point, which is used when positioning the new entity.

Parameters:
inPoint - The sketch's last-rightclicked-position
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Create the new entity and set up its name

Parameters:
e - The action event