jigcell.compare.compare2
Class Compare2

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.BasicTableView
                              extended by jigcell.compare.compare2.Compare2
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.MouseListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.beans.PropertyChangeListener, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.event.ListSelectionListener, javax.swing.event.TableColumnModelListener, javax.swing.event.TableModelListener, ITab, IBasicTableHost, ICellEditorTab, IColumnEditorTab, IDataEditorTab, INameFinderTab, IRowEditorTab

public class Compare2
extends BasicTableView
implements java.awt.event.ActionListener, ICellEditorTab, IColumnEditorTab, IDataEditorTab, IRowEditorTab, javax.swing.event.TableColumnModelListener, javax.swing.event.TableModelListener

A visualization tool for performing comparisons across multiple comparisons.

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
protected  class Compare2.SetReadHelper
          Helper class for performing read operations on other threads.
protected  class Compare2.ThresholdReadHelper
          Helper class for performing read operations on other threads.
 
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
protected  IViewColorer colorer
          Current view colorer being used
protected  int colorerMode
          Colorer display mode
protected  java.util.Map colorers
          Map[MenuItem,IViewColorer] of the triggers for the loaded view colorers
protected  java.util.Map comparisonNames
          Map[IResultSetMap,String] of comparisons to the set name
protected  java.util.List comparisons
          List[IResultSetMap] of comparisons
static java.lang.String CONFIG_VIEWCOLORERS
          Property key for available view colorers
protected  javax.swing.JCheckBoxMenuItem currentRankings
          Menu item to toggle rankings display
private  IWriteableDataSource currentSourceThreshold
          Data source the current content should be saved to
protected  java.util.List experimentBaseNames
          List[IDataGeneratorCollection.Key] of the keys of experiments used in the objective set
protected  java.util.Map experimentComparisons
          Map[IDataGeneratorCollection.Key,String] of the keys of experiments to the comparison type
protected  java.util.List experimentNames
          List[IDataGeneratorCollection.Key] of the keys of results used in comparisons
protected  java.util.Map experimentThresholds
          Map[IDataGeneratorCollection.Key,String] of the keys of experiments to the threshold
protected static SuffixFileFilter FILTER_RESULTSETGROUP
          File filter for result set group files
protected static java.lang.String MENU_VIEW
          View menu label
protected static java.lang.String MENUITEM_VIEWCOLORER
          A view colorer menu item
protected static java.lang.String MENUITEM_VIEWRANKS
          View values menu item label
protected  Compare2Model model
          Data model of the comparisons
protected  IDataGeneratorMap objectives
          Objective set used for comparison thresholds
protected static java.lang.String OPTION_CHOOSERADD
          File chooser option when adding a file
static java.lang.String PROPERTY_COMPARISONNAMES_EDIT
          Property key for changing an existing comparison name
static java.lang.String PROPERTY_COMPARISONS_EDIT
          Property key for changing an existing comparison
protected  java.lang.Runnable resizeTableColumnsRunnable
          Runnable for resizing the table columns after all events have been processed.
static java.lang.String RESOURCE_COMPARISONNAMES
          Resource key for the list of available comparison names
static java.lang.String RESOURCE_COMPARISONS
          Resource key for the list of available comparisons
protected  ThresholdEditor thresholdDialog
          Dialog view for threshold editor
protected  boolean trackSetPosition
          Whether to track the column position when adding a set
protected  javax.swing.ButtonGroup viewColorerGroup
          Group of available view colorers
protected  ResultViewZoom zoomDialog
          Dialog view for zoom popup
 
Fields inherited from class jigcell.compare.views.BasicTableView
clipboard, lastSearchName, popup, POPUP_DEFAULT, popupPoint, printer, RESOURCE_LASTTABLESELECTION, RESOURCE_TABLESELECTION, selectionGroup, table
 
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 jigcell.compare.ITab
CONFIG_TABNAME, STATE_ENDINITIALIZE, STATE_ENDUI, STATE_INITIALIZE, STATE_RUNNING, STATES
 
Fields inherited from interface jigcell.compare.ITab
CONFIG_TABNAME, STATE_ENDINITIALIZE, STATE_ENDUI, STATE_INITIALIZE, STATE_RUNNING, STATES
 
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
Compare2(Compare compare, java.lang.String configMarker)
          Creates a new table view that compares multiple sets of comparisons.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void addColumn()
          Adds a new column to the view.
 void addColumns(int count)
          Adds several new columns to the view.
 void addRow()
          Adds a new row to the view.
 void addRows(int count)
          Adds several new rows to the view.
 void clear()
          Clears all data for this view.
 void clearAndNew()
          Create a new data set for editing.
 void clearThresholds()
          Clears the threshold values.
 void columnAdded(javax.swing.event.TableColumnModelEvent e)
           
 void columnMarginChanged(javax.swing.event.ChangeEvent e)
           
 void columnMoved(javax.swing.event.TableColumnModelEvent e)
           
 void columnRemoved(javax.swing.event.TableColumnModelEvent e)
           
 void columnSelectionChanged(javax.swing.event.ListSelectionEvent e)
           
protected  int convertColumnIndexToData(int column)
          Converts the column to the corresponding data column.
 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  javax.swing.JFileChooser createFileChooserThreshold()
          A file chooser specialized for the view.
protected  javax.swing.JMenu[] createMenus()
          A list of menus for the view.
 java.awt.Image createResultImage()
          Creates an image corresponding to the comparison results.
protected  void createUI()
          Creates an interface for the view.
protected  void createUI(Compare2Model model)
           
 void deleteColumn(int column)
          Deletes a column from the table.
 void deleteColumns(int[] columns)
          Deletes columns from the table.
 void deleteRow(int row)
          Deletes a row from the table.
 void deleteRows(int[] rows)
          Deletes rows from the table.
 void editCell(int row, int column)
          Starts editing a cell.
 void editThresholds()
          Edits all of the threshold values at the same time.
 void fillDown(int row, int column)
          Fills a column down with a value.
 void fillSelected(int row, int column, int[] rows)
          Fills a column at selected spots with a value.
 void fillUp(int row, int column)
          Fills a column up with a value.
protected  boolean findByName(java.lang.String name, int row, boolean forward)
          Searches for a name starting from an initial row in a specified direction.
 int getColorerMode()
          The colorer display mode.
protected  void indexExperiments()
          Indexes the known comparisons to produce a list of experiment names used.
protected  void initialize()
          Performs any initialization work for the view.
 void insertColumn(int column)
          Inserts a column at a specified location.
 void insertColumns(int column, int count)
          Inserts a number of new columns at a specified location.
 void insertRow(int row)
          Inserts a row at a specified location.
 void insertRows(int row, int count)
          Inserts a number of new rows at a specified location.
 void loadSet(IReadableDataSource source)
          Loads the data for the view from some external source.
 void loadSetDirect(IReadableDataSource source, java.lang.String name)
          Loads the data for the view from some external source without user prompting.
 void loadThreshold(IReadableDataSource source)
          Loads the data for the view from some external source.
 void loadThresholdDirect(IReadableDataSource source)
          Loads the data for the view from some external source without user prompting.
 void moveRowsDown(int[] rows)
          Moves selected rows down.
 void moveRowsUp(int[] rows)
          Moves selected rows up.
protected  void preparePopup(int row, int column)
          Prepares the popup for display.
 void readConfiguration(java.lang.String state)
          Reads the view configuration from the Comparator.
protected  void readInternal(java.lang.Object readResult)
          Processes data that has been read from some external source.
protected  void readInternalSet(java.lang.Object readResult, java.lang.String name)
          Processes data that has been read from some external source.
protected  void readInternalThreshold(java.lang.Object readResult)
          Processes data that has been read from some external source.
protected  void readNotify()
          Notifies listeners after a read operation has completed.
protected  void readNotifySet()
          Notifies listeners after a read operation has completed.
protected  void readNotifyThreshold()
          Notifies listeners after a read operation has completed.
protected  void resizeTableColumns()
          Resizes the table columns.
 void saveThreshold(IWriteableDataSource source)
          Saves the data for the view to some external source.
 void saveThresholdDirect(IWriteableDataSource source)
          Saves the data for the view to some external source without user prompting.
 void setColorerMode(int colorerMode)
          Sets the colorer display mode.
 void setCurrentSource(IWriteableDataSource source)
          Sets the current data source to work from.
 void setCurrentSourceThreshold(IWriteableDataSource source)
          Sets the value of the current data source to work from.
 void setViewColorer(IViewColorer colorer)
          Changes the current view coloring.
 void tableChanged(javax.swing.event.TableModelEvent e)
           
 void viewCell(int row, int column)
          Starts viewing a cell.
protected  void write(IWriteableDataSource source)
          Writes data to some external source.
protected  void writeThreshold(IWriteableDataSource source)
          Writes data from some external source.
 void zoomColors()
          Displays a zoomed view of the current data set with color.
 
Methods inherited from class jigcell.compare.views.BasicTableView
clipboardWrite, createPopup, createUI, findByName, findByName, findByName, findByName, getColumnCount, getColumnData, getLastSearchName, getRowCount, getRowData, getSelectedColumns, getSelectedRows, getSelectionGroup, getTable, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, selectAll, selectInvert, selectInvertColumns, selectInvertRows, selectNone, setSelectedColumns, setSelectedRows, setSelectionGroup, valueChanged
 
Methods inherited from class jigcell.compare.ui.DataEditorPanelTab
addRecentSource, 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, propertyChange
 
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.ITab
createAboutDialog, getName
 
Methods inherited from interface jigcell.compare.ui.IColumnEditorTab
getColumnCount, getColumnData
 
Methods inherited from interface jigcell.compare.ITab
createAboutDialog, getName
 
Methods inherited from interface jigcell.compare.ui.IDataEditorTab
getCurrentSource, load, loadDirect, save, saveDirect
 
Methods inherited from interface jigcell.compare.ITab
createAboutDialog, getName
 
Methods inherited from interface jigcell.compare.ui.IRowEditorTab
getRowCount, getRowData
 
Methods inherited from interface jigcell.compare.ITab
createAboutDialog, getName
 
Methods inherited from interface jigcell.compare.ui.IBasicTableHost
getCompare, getConfigMarkers, getHostIdentifier
 

Field Detail

CONFIG_VIEWCOLORERS

public static final java.lang.String CONFIG_VIEWCOLORERS
Property key for available view colorers

See Also:
Constant Field Values

PROPERTY_COMPARISONNAMES_EDIT

public static final java.lang.String PROPERTY_COMPARISONNAMES_EDIT
Property key for changing an existing comparison name

See Also:
Constant Field Values

PROPERTY_COMPARISONS_EDIT

public static final java.lang.String PROPERTY_COMPARISONS_EDIT
Property key for changing an existing comparison

See Also:
Constant Field Values

RESOURCE_COMPARISONNAMES

public static final java.lang.String RESOURCE_COMPARISONNAMES
Resource key for the list of available comparison names

See Also:
Constant Field Values

RESOURCE_COMPARISONS

public static final java.lang.String RESOURCE_COMPARISONS
Resource key for the list of available comparisons

See Also:
Constant Field Values

MENU_VIEW

protected static final java.lang.String MENU_VIEW
View menu label

See Also:
Constant Field Values

MENUITEM_VIEWCOLORER

protected static final java.lang.String MENUITEM_VIEWCOLORER
A view colorer menu item

See Also:
Constant Field Values

MENUITEM_VIEWRANKS

protected static final java.lang.String MENUITEM_VIEWRANKS
View values menu item label

See Also:
Constant Field Values

OPTION_CHOOSERADD

protected static final java.lang.String OPTION_CHOOSERADD
File chooser option when adding a file

See Also:
Constant Field Values

FILTER_RESULTSETGROUP

protected static final SuffixFileFilter FILTER_RESULTSETGROUP
File filter for result set group files


trackSetPosition

protected boolean trackSetPosition
Whether to track the column position when adding a set


viewColorerGroup

protected javax.swing.ButtonGroup viewColorerGroup
Group of available view colorers


model

protected Compare2Model model
Data model of the comparisons


objectives

protected IDataGeneratorMap objectives
Objective set used for comparison thresholds


colorerMode

protected int colorerMode
Colorer display mode


colorer

protected IViewColorer colorer
Current view colorer being used


currentRankings

protected javax.swing.JCheckBoxMenuItem currentRankings
Menu item to toggle rankings display


comparisons

protected java.util.List comparisons
List[IResultSetMap] of comparisons


experimentBaseNames

protected java.util.List experimentBaseNames
List[IDataGeneratorCollection.Key] of the keys of experiments used in the objective set


experimentNames

protected java.util.List experimentNames
List[IDataGeneratorCollection.Key] of the keys of results used in comparisons


colorers

protected java.util.Map colorers
Map[MenuItem,IViewColorer] of the triggers for the loaded view colorers


comparisonNames

protected java.util.Map comparisonNames
Map[IResultSetMap,String] of comparisons to the set name


experimentComparisons

protected java.util.Map experimentComparisons
Map[IDataGeneratorCollection.Key,String] of the keys of experiments to the comparison type


experimentThresholds

protected java.util.Map experimentThresholds
Map[IDataGeneratorCollection.Key,String] of the keys of experiments to the threshold


zoomDialog

protected ResultViewZoom zoomDialog
Dialog view for zoom popup


resizeTableColumnsRunnable

protected java.lang.Runnable resizeTableColumnsRunnable
Runnable for resizing the table columns after all events have been processed.


thresholdDialog

protected ThresholdEditor thresholdDialog
Dialog view for threshold editor


currentSourceThreshold

private IWriteableDataSource currentSourceThreshold
Data source the current content should be saved to

Constructor Detail

Compare2

public Compare2(Compare compare,
                java.lang.String configMarker)
Creates a new table view that compares multiple sets of comparisons.

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

actionPerformed

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

addColumn

public void addColumn()
Adds a new column to the view.

Specified by:
addColumn in interface IColumnEditorTab

addColumns

public void addColumns(int count)
Adds several new columns to the view.

Specified by:
addColumns in interface IColumnEditorTab
Parameters:
count - Number of columns

addRow

public void addRow()
Adds a new row to the view.

Specified by:
addRow in interface IRowEditorTab

addRows

public void addRows(int count)
Adds several new rows to the view.

Specified by:
addRows in interface IRowEditorTab
Parameters:
count - Number of rows

clear

public void clear()
Clears all data for this view.

Specified by:
clear in interface IDataEditorTab

clearAndNew

public void clearAndNew()
Create a new data set for editing.

Specified by:
clearAndNew in interface IDataEditorTab

clearThresholds

public void clearThresholds()
Clears the threshold values.


columnAdded

public void columnAdded(javax.swing.event.TableColumnModelEvent e)
Specified by:
columnAdded in interface javax.swing.event.TableColumnModelListener

columnMarginChanged

public void columnMarginChanged(javax.swing.event.ChangeEvent e)
Specified by:
columnMarginChanged in interface javax.swing.event.TableColumnModelListener

columnMoved

public void columnMoved(javax.swing.event.TableColumnModelEvent e)
Specified by:
columnMoved in interface javax.swing.event.TableColumnModelListener

columnRemoved

public void columnRemoved(javax.swing.event.TableColumnModelEvent e)
Specified by:
columnRemoved in interface javax.swing.event.TableColumnModelListener

columnSelectionChanged

public void columnSelectionChanged(javax.swing.event.ListSelectionEvent e)
Specified by:
columnSelectionChanged in interface javax.swing.event.TableColumnModelListener

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

createResultImage

public java.awt.Image createResultImage()
Creates an image corresponding to the comparison results.


deleteColumn

public void deleteColumn(int column)
Deletes a column from the table.

Specified by:
deleteColumn in interface IColumnEditorTab
Parameters:
column - Column

deleteColumns

public void deleteColumns(int[] columns)
Deletes columns from the table.

Specified by:
deleteColumns in interface IColumnEditorTab
Parameters:
columns - Columns

deleteRow

public void deleteRow(int row)
Deletes a row from the table.

Specified by:
deleteRow in interface IRowEditorTab
Parameters:
row - Row

deleteRows

public void deleteRows(int[] rows)
Deletes rows from the table.

Specified by:
deleteRows in interface IRowEditorTab
Parameters:
rows - Rows

editCell

public void editCell(int row,
                     int column)
Starts editing a cell.

Specified by:
editCell in interface ICellEditorTab
Parameters:
row - Row
column - Column

editThresholds

public void editThresholds()
Edits all of the threshold values at the same time.


fillDown

public void fillDown(int row,
                     int column)
Fills a column down with a value.

Specified by:
fillDown in interface ICellEditorTab
Parameters:
row - Starting row
column - Column

fillSelected

public void fillSelected(int row,
                         int column,
                         int[] rows)
Fills a column at selected spots with a value.

Specified by:
fillSelected in interface ICellEditorTab
Parameters:
row - Starting row
column - Column
rows - Selected rows

fillUp

public void fillUp(int row,
                   int column)
Fills a column up with a value.

Specified by:
fillUp in interface ICellEditorTab
Parameters:
row - Starting row
column - Column

getColorerMode

public int getColorerMode()
The colorer display mode.


insertColumn

public void insertColumn(int column)
Inserts a column at a specified location.

Specified by:
insertColumn in interface IColumnEditorTab
Parameters:
column - Column to insert at

insertColumns

public void insertColumns(int column,
                          int count)
Inserts a number of new columns at a specified location.

Specified by:
insertColumns in interface IColumnEditorTab
Parameters:
column - Column to insert at
count - Number of columns to insert

insertRow

public void insertRow(int row)
Inserts a row at a specified location.

Specified by:
insertRow in interface IRowEditorTab
Parameters:
row - Row to insert at

insertRows

public void insertRows(int row,
                       int count)
Inserts a number of new rows at a specified location.

Specified by:
insertRows in interface IRowEditorTab
Parameters:
row - Row to insert at
count - Number of rows to insert

loadSet

public void loadSet(IReadableDataSource source)
Loads the data for the view from some external source.

Parameters:
source - Data source to read from

loadSetDirect

public void loadSetDirect(IReadableDataSource source,
                          java.lang.String name)
Loads the data for the view from some external source without user prompting.

Parameters:
source - Data source to read from
name - Name of the new set

loadThreshold

public void loadThreshold(IReadableDataSource source)
Loads the data for the view from some external source.

Parameters:
source - Data source to read from

loadThresholdDirect

public void loadThresholdDirect(IReadableDataSource source)
Loads the data for the view from some external source without user prompting.

Parameters:
source - Data source to read from

moveRowsDown

public void moveRowsDown(int[] rows)
Moves selected rows down.

Specified by:
moveRowsDown in interface IRowEditorTab
Parameters:
rows - Rows

moveRowsUp

public void moveRowsUp(int[] rows)
Moves selected rows up.

Specified by:
moveRowsUp in interface IRowEditorTab
Parameters:
rows - Rows

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

saveThreshold

public void saveThreshold(IWriteableDataSource source)
Saves the data for the view to some external source.

Parameters:
source - Data source to write to

saveThresholdDirect

public void saveThresholdDirect(IWriteableDataSource source)
Saves the data for the view to some external source without user prompting.

Parameters:
source - Data source to write to

setColorerMode

public void setColorerMode(int colorerMode)
Sets the colorer display mode.

Parameters:
colorerMode - Mode

setCurrentSource

public void setCurrentSource(IWriteableDataSource source)
Sets the current data source to work from.

Specified by:
setCurrentSource in interface IDataEditorTab
Overrides:
setCurrentSource in class DataEditorPanelTab
Parameters:
source - Data source

setCurrentSourceThreshold

public void setCurrentSourceThreshold(IWriteableDataSource source)
Sets the value of the current data source to work from.

Parameters:
source - Data source

setViewColorer

public void setViewColorer(IViewColorer colorer)
Changes the current view coloring.

Parameters:
colorer - Colorer

tableChanged

public void tableChanged(javax.swing.event.TableModelEvent e)
Specified by:
tableChanged in interface javax.swing.event.TableModelListener

viewCell

public void viewCell(int row,
                     int column)
Starts viewing a cell.

Specified by:
viewCell in interface ICellEditorTab
Parameters:
row - Row
column - Column

zoomColors

public void zoomColors()
Displays a zoomed view of the current data set with color.


convertColumnIndexToData

protected int convertColumnIndexToData(int column)
Converts the column to the corresponding data column. If the column is not a data column, the value is -1.


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.


createFileChooserThreshold

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


createMenus

protected javax.swing.JMenu[] createMenus()
A list of menus for the view.

Overrides:
createMenus in class DataEditorPanelTab

createUI

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

Overrides:
createUI in class BasicTableView

createUI

protected void createUI(Compare2Model model)
See Also:
BasicTableView.createUI(jigcell.compare.ui.BasicTable.BasicTableModel)

findByName

protected boolean findByName(java.lang.String name,
                             int row,
                             boolean forward)
Searches for a name starting from an initial row in a specified direction. Returns whether an instance was found.

Overrides:
findByName in class BasicTableView
Parameters:
name - Name to search for
row - Starting row
forward - Whether to search forwards

indexExperiments

protected void indexExperiments()
Indexes the known comparisons to produce a list of experiment names used.


initialize

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

Overrides:
initialize in class DataEditorPanelTab

preparePopup

protected void preparePopup(int row,
                            int column)
Prepares the popup for display.

Overrides:
preparePopup in class BasicTableView
Parameters:
row - Model row of the popup point
column - Model column of the popup point

readInternal

protected void readInternal(java.lang.Object readResult)
                     throws java.lang.Exception
Processes data that has been read from some external source.

Overrides:
readInternal in class DataEditorPanelTab
Parameters:
readResult - Data
Throws:
java.lang.Exception

readInternalSet

protected void readInternalSet(java.lang.Object readResult,
                               java.lang.String name)
                        throws java.lang.Exception
Processes data that has been read from some external source.

Parameters:
readResult - Data
Throws:
java.lang.Exception

readInternalThreshold

protected void readInternalThreshold(java.lang.Object readResult)
                              throws java.lang.Exception
Processes data that has been read from some external source.

Parameters:
readResult - Data
Throws:
java.lang.Exception

readNotify

protected void readNotify()
Notifies listeners after a read operation has completed.

Overrides:
readNotify in class DataEditorPanelTab

readNotifySet

protected void readNotifySet()
Notifies listeners after a read operation has completed.


readNotifyThreshold

protected void readNotifyThreshold()
Notifies listeners after a read operation has completed.


resizeTableColumns

protected void resizeTableColumns()
Resizes the table columns.


write

protected void write(IWriteableDataSource source)
              throws java.lang.Exception
Writes data to some external source.

Overrides:
write in class DataEditorPanelTab
Parameters:
source - Data source to write to
Throws:
java.lang.Exception

writeThreshold

protected void writeThreshold(IWriteableDataSource source)
                       throws java.lang.Exception
Writes data from some external source.

Parameters:
source - Data source to write to
Throws:
java.lang.Exception