|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
biggests.gui.PanelAnalyzingMatrixTables
public class PanelAnalyzingMatrixTables
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.
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.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
static int |
COLORS
The type for colors tables. |
protected BiggestsFrame |
mainFrame
The application's main frame. |
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 tableType s only). |
javax.swing.JScrollPane[] |
getScrolls()
Returns the array with the scroll panes that hold the tables to be displayed (for VALUES tableType only). |
smadeira.biclustering.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 TableValues s, TableColors s
and TableSymbols s, 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. |
void |
paintAgain()
|
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, getBaseline, getBaselineResizeBehavior, 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, isPaintingForPrint, 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 |
---|
public static final int VALUES
public static final int COLORS
public static final int SYMBOLS
protected BiggestsFrame mainFrame
Constructor Detail |
---|
public PanelAnalyzingMatrixTables(BiggestsFrame frame, int tableType)
tableType
s are:PanelAnalyzingMatrixTables.VALUES
PanelAnalyzingMatrixTables.COLORS
PanelAnalyzingMatrixTables.SYMBOLS
frame
- BiggestsFrame the application's main frametableType
- the int
type of the tables to display
in this panelMethod Detail |
---|
public void paintAgain()
public void paint(NodeInfo nodeInfo, javax.swing.tree.TreePath selectionPath)
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.
nodeInfo
- NodeInfo
the node information object,
which contains the node object that will provide
the data for the tablesselectionPath
- the selected TreePath
public void clear()
public void biclustersNumberOption_itemStateChanged(java.awt.event.ItemEvent event)
event
- the ItemEvent
resulting of the selection of a
new item in the biclustersNumberOption
combo boxpublic int getTableType()
PanelAnalyzingMatrixTables.VALUES
PanelAnalyzingMatrixTables.COLORS
PanelAnalyzingMatrixTables.SYMBOLS
int
the panel tables' typepublic static java.lang.String[] getBiclustersNumber()
String[]
set of options displayed to userpublic BiggestsFrame getMainFrame()
BiggestsFrame
public TableValues[] getTables()
TableValues
s, TableColors
s
and TableSymbols
s, depending on the tableType
).
TableValues
s, TableColors
s
or TableSymbols
s that are being displayed in this panelpublic javax.swing.JScrollPane[] getScrolls()
VALUES
tableType
only).
JScrollPane
s used to scroll the
displayed tablespublic javax.swing.JPanel[] getPanels()
COLORS
and SYMBOLS
tableType
s only).
JPanel
s which hold the tables and
their headerspublic javax.swing.BoxLayout getBoxLayout()
BoxLayout
of this panelpublic smadeira.biclustering.Bicluster[] getSetOfBiclusters()
Bicluster
s to displaypublic NodeInfo getNodeInfo()
NodeInfo
object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |