jigcell.compare.transformui
Class TransformInterface

java.lang.Object
  extended by jigcell.compare.ui.CustomizableInterface
      extended by jigcell.compare.transformui.TransformInterface
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.MouseListener, java.util.EventListener, ICustomizableInterface
Direct Known Subclasses:
ConstantInterface, ExtremaTestInterface, FileInterface, GenericScanInterface, InputInterface, JigCellRunManagerInterface, ScriptEvaluationInterface, SelectColumnsInterface, TransformContainerInterface, TransformEvaluationInterface, WildtypeScanInterface

public abstract class TransformInterface
extends CustomizableInterface
implements java.awt.event.ActionListener

Generic customizable interface for a transform.

This code is licensed under the DARPA BioCOMP Open Source License. See LICENSE for more details.

Author:
Nicholas Allen

Field Summary
protected  java.awt.GridBagConstraints constraints
          Constraints for layout
protected  Transform generator
          Generator
protected  java.awt.GridBagLayout layout
          Layout for this transform
protected static java.lang.String MENUITEM_DELETE
          Delete menu item label
protected static java.lang.String MENUITEM_INSERTAFTER
          Insert after menu item label
protected static java.lang.String MENUITEM_INSERTBEFORE
          Insert before menu item label
protected  ITransform oldPrevious
          Old previous statement for the generator
 
Fields inherited from class jigcell.compare.ui.CustomizableInterface
customizers, DESCRIPTION_INPUT, DESCRIPTION_OUTPUT, LOCK_CUSTOMIZERS, manager, menuManager, multipleViewSupport, PATH_DESCRIPTION_INPUT, PATH_DESCRIPTION_OUTPUT, PATH_HELP, popup, POPUP_DEFAULT, PROPERTY_CUSTOMIZERNAME
 
Fields inherited from interface jigcell.compare.ICustomizableInterface
DIMENSION_HELP, OPTION_INPUTDESCRIPTION, OPTION_OUTPUTDESCRIPTION
 
Constructor Summary
TransformInterface(IProgrammableDataGenerator generator)
          Creates a new interface for a transform.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 javax.swing.JComponent createCustomizer(java.lang.String name)
          A customization component for a generator.
protected  javax.swing.JPopupMenu createPopup()
          /** Creates a context menu for the view.
 void destroyCustomizer(java.lang.String name)
          Destroys a customization component created by this interface.
 boolean hasMultipleViewSupport()
          Whether this interface supports multiple, simultaneous views.
private  void setCustomizerComponents(java.awt.Container outerCustomizer, javax.swing.JComponent customizer, ITransform previous)
          Lays out the customizers for a transform.
 void updateInterface(java.lang.String propertyName)
          Updates customizers based on the generator state.
 
Methods inherited from class jigcell.compare.ui.CustomizableInterface
createCustomizer, decorateCustomizer, getCompare, getInputDescription, getOutputDescription, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, setInputDescription, setMultipleViewSupport, setOutputDescription
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MENUITEM_DELETE

protected static final java.lang.String MENUITEM_DELETE
Delete menu item label

See Also:
Constant Field Values

MENUITEM_INSERTAFTER

protected static final java.lang.String MENUITEM_INSERTAFTER
Insert after menu item label

See Also:
Constant Field Values

MENUITEM_INSERTBEFORE

protected static final java.lang.String MENUITEM_INSERTBEFORE
Insert before menu item label

See Also:
Constant Field Values

constraints

protected transient java.awt.GridBagConstraints constraints
Constraints for layout


layout

protected transient java.awt.GridBagLayout layout
Layout for this transform


oldPrevious

protected ITransform oldPrevious
Old previous statement for the generator


generator

protected Transform generator
Generator

Constructor Detail

TransformInterface

public TransformInterface(IProgrammableDataGenerator generator)
Creates a new interface for a transform.

Parameters:
generator - Generator
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

createCustomizer

public javax.swing.JComponent createCustomizer(java.lang.String name)
A customization component for a generator.

Specified by:
createCustomizer in interface ICustomizableInterface
Overrides:
createCustomizer in class CustomizableInterface
Parameters:
name - Identifying name for the customizer. Each unique expected usage of a customizer should have a distinct name.

destroyCustomizer

public void destroyCustomizer(java.lang.String name)
Destroys a customization component created by this interface.

Specified by:
destroyCustomizer in interface ICustomizableInterface
Overrides:
destroyCustomizer in class CustomizableInterface
Parameters:
name - Identifying name for the customizer

hasMultipleViewSupport

public boolean hasMultipleViewSupport()
Whether this interface supports multiple, simultaneous views.

Specified by:
hasMultipleViewSupport in interface ICustomizableInterface
Overrides:
hasMultipleViewSupport in class CustomizableInterface

updateInterface

public void updateInterface(java.lang.String propertyName)
Updates customizers based on the generator state.

Specified by:
updateInterface in interface ICustomizableInterface
Overrides:
updateInterface in class CustomizableInterface
Parameters:
propertyName - Name of the property that changed or null to indicate that all properties may have changed

createPopup

protected javax.swing.JPopupMenu createPopup()
/** Creates a context menu for the view.

Overrides:
createPopup in class CustomizableInterface

setCustomizerComponents

private void setCustomizerComponents(java.awt.Container outerCustomizer,
                                     javax.swing.JComponent customizer,
                                     ITransform previous)
Lays out the customizers for a transform.

Parameters:
outerCustomizer - Container customizer for this transform
customizer - Customizer component for this transform
previous - Previous transform