biggests.gui
Class PanelAnalyzingMatrixTables

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 biggests.gui.PanelAnalyzingMatrixTables
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible

public class PanelAnalyzingMatrixTables
extends javax.swing.JPanel

Title: Matrix Analysis Tables Panel

Description: Displays tables of real values, tables of colors or tables of symbols for matrices, biclusters or groups of biclusters.

Copyright: Copyright (C) 2007 Joana Gonçalves This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

See Also:
Serialized Form

Nested Class Summary
 
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 int COLORS
          The type for colors tables.
static int SYMBOLS
          The type for symbols tables.
static int VALUES
          The type for values tables.
 
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 java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
PanelAnalyzingMatrixTables(BiggestsFrame frame, int tableType)
          Creates a new panel to display tables.
 
Method Summary
 void biclustersNumberOption_itemStateChanged(java.awt.event.ItemEvent event)
          Fired when the selected item of the biclusters' number combo box changes.
 void clear()
          Clears the panel.
static java.lang.String[] getBiclustersNumber()
          Returns the options presented to user about the number of tables that he/she wants to visualize.
 javax.swing.BoxLayout getBoxLayout()
          Returns the layout of this panel.
 BiggestsFrame getMainFrame()
          Returns the application's main frame.
 NodeInfo getNodeInfo()
          Returns the node information object containing the object with the data to display in the table.
 javax.swing.JPanel[] getPanels()
          Returns the set of panels which holds the tables and their headers, which are displayed in this panel (for COLORS and SYMBOLS tableTypes only).
 javax.swing.JScrollPane[] getScrolls()
          Returns the array with the scroll panes that hold the tables to be displayed (for VALUES tableType only).
 Bicluster[] getSetOfBiclusters()
          Returns the set of biclusters from which the set of tables is constructed.
 TableValues[] getTables()
          Returns the array which contains the tables to be displayed (may contain TableValuess, TableColorss and TableSymbolss, depending on the tableType).
 int getTableType()
          Returns the type of the tables presented in the panel.
 void paint(NodeInfo nodeInfo, javax.swing.tree.TreePath selectionPath)
          Creates and displays the tables with data retrieved from the node object associated with the given node info object.
 
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, getName, 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
 

Field Detail

VALUES

public static final int VALUES
The type for values tables.

See Also:
Constant Field Values

COLORS

public static final int COLORS
The type for colors tables.

See Also:
Constant Field Values

SYMBOLS

public static final int SYMBOLS
The type for symbols tables.

See Also:
Constant Field Values
Constructor Detail

PanelAnalyzingMatrixTables

public PanelAnalyzingMatrixTables(BiggestsFrame frame,
                                  int tableType)
Creates a new panel to display tables. Supports three kinds of tables: values' tables, colors' tables and symbols' tables.
valid tableTypes are:
PanelAnalyzingMatrixTables.VALUES
PanelAnalyzingMatrixTables.COLORS
PanelAnalyzingMatrixTables.SYMBOLS

Parameters:
frame - BiggestsFrame the application's main frame
tableType - the int type of the tables to display in this panel
Method Detail

paint

public void paint(NodeInfo nodeInfo,
                  javax.swing.tree.TreePath selectionPath)
Creates and displays the tables with data retrieved from the node object associated with the given node info object.

If node info object contains a node object which has a single expression matrix, then a single table is created with data from that matrix.

Otherwise, if the node info object contains a node object which is a bicluster group or a post-processed bicluster group and, by that, contains a set of biclusters (each one provided with its own matrix), then several tables are created (one for each bicluster). For efficiency reasons, by default, only the first 5 tables are displayed (for the first 5 biclusters of the bicluster group). The user is then asked to select another number of tables to be shown, if he/she wants.

Parameters:
nodeInfo - NodeInfo the node information object, which contains the node object that will provide the data for the tables
selectionPath - the selected TreePath

clear

public void clear()
Clears the panel. Prepares it to receive new data for a new set of tables. Removes all displayed components and initializes tables and scrolls arrays.


biclustersNumberOption_itemStateChanged

public void biclustersNumberOption_itemStateChanged(java.awt.event.ItemEvent event)
Fired when the selected item of the biclusters' number combo box changes. Checks the new number of tables to be displayed, creates and shows them.

Parameters:
event - the ItemEvent resulting of the selection of a new item in the biclustersNumberOption combo box

getTableType

public int getTableType()
Returns the type of the tables presented in the panel. Table types are:
PanelAnalyzingMatrixTables.VALUES
PanelAnalyzingMatrixTables.COLORS
PanelAnalyzingMatrixTables.SYMBOLS

Returns:
int the panel tables' type

getBiclustersNumber

public static java.lang.String[] getBiclustersNumber()
Returns the options presented to user about the number of tables that he/she wants to visualize. These options are only displayed to user if this panel holds tables of biclusters' groups.

Returns:
the String[] set of options displayed to user

getMainFrame

public BiggestsFrame getMainFrame()
Returns the application's main frame.

Returns:
the main BiggestsFrame

getTables

public TableValues[] getTables()
Returns the array which contains the tables to be displayed (may contain TableValuess, TableColorss and TableSymbolss, depending on the tableType).

Returns:
the set of TableValuess, TableColorss or TableSymbolss that are being displayed in this panel

getScrolls

public javax.swing.JScrollPane[] getScrolls()
Returns the array with the scroll panes that hold the tables to be displayed (for VALUES tableType only).

Returns:
the set of JScrollPanes used to scroll the displayed tables

getPanels

public javax.swing.JPanel[] getPanels()
Returns the set of panels which holds the tables and their headers, which are displayed in this panel (for COLORS and SYMBOLS tableTypes only).

Returns:
the set of JPanels which hold the tables and their headers

getBoxLayout

public javax.swing.BoxLayout getBoxLayout()
Returns the layout of this panel.

Returns:
the BoxLayout of this panel

getSetOfBiclusters

public Bicluster[] getSetOfBiclusters()
Returns the set of biclusters from which the set of tables is constructed. This is only true if the object to display is either a group of biclusters or a group of post-processed biclusters.

Returns:
the set of Biclusters to display

getNodeInfo

public NodeInfo getNodeInfo()
Returns the node information object containing the object with the data to display in the table.

Returns:
the NodeInfo object