|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractAction
easik.ui.menu.popup.NewEntityAction
public class NewEntityAction
Action for the new entity option in the popup menu.
| 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 |
|---|
java.awt.Point _newPoint
| Constructor Detail |
|---|
public NewEntityAction(java.awt.Point inPoint)
inPoint - The sketch's last-rightclicked-position| Method Detail |
|---|
public void actionPerformed(java.awt.event.ActionEvent e)
e - The action event
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||