templates.presentation
Class UIActions.ConnectAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by templates.presentation.UIActions.ConnectAction
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.ConnectAction
extends javax.swing.AbstractAction

An action to start drawing a new connector from an entity in a template design.

Author:
Lenko Grigorov
See Also:
Serialized Form

Field Summary
protected  TemplateEditableCanvas canvas
          The canvas which contains the entity where the new connector will originate.
 
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.ConnectAction(TemplateEditableCanvas canvas, Entity entity)
          Construct an action to start drawing a new connector from the given entity.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
          Start drawing a new connector from the entity.
 
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 contains the entity where the new connector will originate.

Constructor Detail

UIActions.ConnectAction

public UIActions.ConnectAction(TemplateEditableCanvas canvas,
                               Entity entity)
Construct an action to start drawing a new connector from the given entity.

Parameters:
canvas - the canvas which contains the entity where the new connector will originate
entity - the entity where the new connector will originate
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
Start drawing a new connector from the entity.