jigcell.compare.views
Class TransformEditor

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by jigcell.compare.ui.PanelTab
                      extended by jigcell.compare.ui.DataEditorPanelTab
                          extended by jigcell.compare.views.ProgrammableDataGeneratorEditor
                              extended by jigcell.compare.views.TransformEditor
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.ItemListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.beans.PropertyChangeListener, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, ITab, IDataEditorTab

public class TransformEditor
extends ProgrammableDataGeneratorEditor

Supports creating and editing transform functions.

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

Author:
Nicholas Allen
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class jigcell.compare.views.ProgrammableDataGeneratorEditor
ProgrammableDataGeneratorEditor.SetReadHelper
 
Nested classes/interfaces inherited from class jigcell.compare.ui.DataEditorPanelTab
DataEditorPanelTab.ReadHelper
 
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
static java.lang.String CONFIG_TRANSFORMS
          Property key for available transform primitives
protected static SuffixFileFilter FILTER_TRANSFORMCATALOG
          File filter for transform catalog files
protected static SuffixFileFilter FILTER_TRANSFORMSET
          File filter for transform files
protected static java.lang.String LABEL_TRANSFORM
          Transform name label
 
Fields inherited from class jigcell.compare.views.ProgrammableDataGeneratorEditor
BUTTON_ADD, customizer, localNames, localObjects, NAME_CUSTOMIZERS, names, objectModel, objects, primitives, propertyKey, resourceKey, TITLE_NAMEPOPUP
 
Fields inherited from class jigcell.compare.ui.DataEditorPanelTab
CONFIG_RECENTSOURCE, CONFIG_RECENTSOURCECOUNT, exception, manager, MENU_OPENRECENT, MENUBAR_DEFAULT, menuManager, menus, MESSAGE_LOADERROR, MESSAGE_LOADING, MESSAGE_SAVEERROR, OPTION_CHOOSEROPEN, OPTION_CHOOSERSAVE, PROPERTY_RECENTSOURCETARGET, READ_LOCK, recentReadablesMenu, TOOLBAR_DEFAULT
 
Fields inherited from class jigcell.compare.ui.PanelTab
compare, configMarkers, PATH_ABOUT, PATH_DESCRIPTION_ABOUT, tabName
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface jigcell.compare.ITab
CONFIG_TABNAME, STATE_ENDINITIALIZE, STATE_ENDUI, STATE_INITIALIZE, STATE_RUNNING, STATES
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
TransformEditor(Compare compare, java.lang.String configMarker)
          Creates a new editor for working with transforms.
 
Method Summary
 void add(java.lang.String name)
          Adds a new object.
protected  void cleanup(IProgrammableDataGenerator object)
          Performs any necessary cleanup operations on an object before it's removed from the view.
 IConfigEditor createConfigEditor()
          Creates a configuration editor for this tab or null if this tab does not support graphical configuration.
protected  javax.swing.JFileChooser createFileChooser()
          A file chooser specialized for the view.
protected  javax.swing.JFileChooser createFileChooserSet()
          A file chooser specialized for the view.
protected  void createUI()
          Creates an interface for the view.
 void duplicate(java.lang.String name)
          Duplicates the currently selected object.
protected  void initialize()
          Performs any initialization work for the view.
 void itemStateChanged(java.awt.event.ItemEvent e)
           
 void readConfiguration(java.lang.String state)
          Reads the view configuration from the Comparator.
protected  void updateList()
          Updates the internal list of objects to match the master list.
protected  void updateTransformSelection()
          Updates the internal transform selection to match the selection in the view.
 
Methods inherited from class jigcell.compare.views.ProgrammableDataGeneratorEditor
actionPerformed, add, add, clear, clearAndNew, createObjects, createPrimitiveList, delete, duplicate, indexNames, loadSet, loadSetDirect, promptForName, propertyChange, readInternal, readInternalSet, readNotify, rename, setCurrentSource, setCustomizerView, updateNames, write
 
Methods inherited from class jigcell.compare.ui.DataEditorPanelTab
addRecentSource, createMenus, createReadableRecentSourceMenuItems, createTools, getCurrentSource, getRecentSource, getRecentSourceCount, load, loadDirect, loadRecentSource, save, saveDirect
 
Methods inherited from class jigcell.compare.ui.PanelTab
createAboutDialog, createAboutDialogForTab, getCompare, getConfigForView, getConfigMarkers, getHostIdentifier, getName
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jigcell.compare.ui.IDataEditorTab
getCurrentSource, load, loadDirect, save, saveDirect
 
Methods inherited from interface jigcell.compare.ITab
createAboutDialog, getName
 

Field Detail

CONFIG_TRANSFORMS

public static final java.lang.String CONFIG_TRANSFORMS
Property key for available transform primitives

See Also:
Constant Field Values

LABEL_TRANSFORM

protected static final java.lang.String LABEL_TRANSFORM
Transform name label

See Also:
Constant Field Values

FILTER_TRANSFORMSET

protected static final SuffixFileFilter FILTER_TRANSFORMSET
File filter for transform files


FILTER_TRANSFORMCATALOG

protected static final SuffixFileFilter FILTER_TRANSFORMCATALOG
File filter for transform catalog files

Constructor Detail

TransformEditor

public TransformEditor(Compare compare,
                       java.lang.String configMarker)
Creates a new editor for working with transforms.

Parameters:
compare - Comparator backend to interface with
configMarker - Marker for retrieving configuration information from Comparator backend
Method Detail

add

public void add(java.lang.String name)
Adds a new object.

Specified by:
add in class ProgrammableDataGeneratorEditor
Parameters:
name - Name of object

createConfigEditor

public IConfigEditor createConfigEditor()
Creates a configuration editor for this tab or null if this tab does not support graphical configuration.

Specified by:
createConfigEditor in interface ITab
Overrides:
createConfigEditor in class PanelTab

duplicate

public void duplicate(java.lang.String name)
Duplicates the currently selected object.

Specified by:
duplicate in class ProgrammableDataGeneratorEditor
Parameters:
name - Name of new object

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent e)

readConfiguration

public void readConfiguration(java.lang.String state)
Reads the view configuration from the Comparator.

Specified by:
readConfiguration in interface ITab
Overrides:
readConfiguration in class DataEditorPanelTab
Parameters:
state - Current state of the view

cleanup

protected void cleanup(IProgrammableDataGenerator object)
Performs any necessary cleanup operations on an object before it's removed from the view.

Overrides:
cleanup in class ProgrammableDataGeneratorEditor
Parameters:
object - Object

createFileChooser

protected javax.swing.JFileChooser createFileChooser()
A file chooser specialized for the view.

Overrides:
createFileChooser in class DataEditorPanelTab

createFileChooserSet

protected javax.swing.JFileChooser createFileChooserSet()
A file chooser specialized for the view.

Specified by:
createFileChooserSet in class ProgrammableDataGeneratorEditor

createUI

protected void createUI()
Creates an interface for the view.

Overrides:
createUI in class PanelTab

initialize

protected void initialize()
Performs any initialization work for the view.

Overrides:
initialize in class ProgrammableDataGeneratorEditor

updateList

protected void updateList()
Updates the internal list of objects to match the master list.

Overrides:
updateList in class ProgrammableDataGeneratorEditor

updateTransformSelection

protected void updateTransformSelection()
Updates the internal transform selection to match the selection in the view.