ptolemy.vergil.gt
Class TransformationEditor.MatchingAttributeActionsFactory

java.lang.Object
  extended by ptolemy.vergil.gt.TransformationEditor.MatchingAttributeActionsFactory
All Implemented Interfaces:
MenuItemFactory
Enclosing class:
TransformationEditor

protected class TransformationEditor.MatchingAttributeActionsFactory
extends java.lang.Object
implements MenuItemFactory


Constructor Summary
protected TransformationEditor.MatchingAttributeActionsFactory()
           
 
Method Summary
private  javax.swing.JMenuItem _add(javax.swing.JMenu menu, javax.swing.Action action, boolean isRadio)
           
private  MatchingAttribute _getRadioAttribute(NamedObj object, TransformationEditor.MatchingAttributeAction[] radioActions)
           
 javax.swing.JMenuItem create(JContextMenu menu, NamedObj object)
          Add an item to the given context menu that will configure the parameters on the given target.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransformationEditor.MatchingAttributeActionsFactory

protected TransformationEditor.MatchingAttributeActionsFactory()
Method Detail

create

public javax.swing.JMenuItem create(JContextMenu menu,
                                    NamedObj object)
Add an item to the given context menu that will configure the parameters on the given target.

Specified by:
create in interface MenuItemFactory
Parameters:
menu - The context menu to add to.
object - The object that the menu item command will operate on.
Returns:
A menu item, or null to decline to provide a menu item.

_add

private javax.swing.JMenuItem _add(javax.swing.JMenu menu,
                                   javax.swing.Action action,
                                   boolean isRadio)

_getRadioAttribute

private MatchingAttribute _getRadioAttribute(NamedObj object,
                                             TransformationEditor.MatchingAttributeAction[] radioActions)