|
|||||||||
| 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
org.systemsbiology.gaggle.geese.cy.ip.ControlPanel
public class ControlPanel
| 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 | |
|---|---|
protected java.lang.String[] |
activeGooseNames
|
protected java.awt.Cursor |
busyCursor
|
protected javax.swing.JButton |
connectButton
|
protected CytoscapeWindow |
cw
|
protected BioDataServer |
dataServer
|
protected java.awt.Cursor |
defaultCursor
|
protected javax.swing.JButton |
disconnectButton
|
protected UndoableGraphHider |
graphHider
|
protected java.awt.GridBagLayout |
gridbagLayout
|
protected javax.swing.JTextField |
nodeSelectionTextField
|
protected int |
peptideMaxCountThreshold
|
protected javax.swing.JTextField |
peptideMaxCountThresholdReadout
|
protected int |
peptideMinCountThreshold
|
protected javax.swing.JTextField |
peptideMinCountThresholdReadout
|
protected double |
probabilityThreshold
|
protected javax.swing.JTextField |
probabilityThresholdReadout
|
protected javax.swing.JToolBar |
toolbar
|
| 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 | |
|---|---|
ControlPanel(CytoscapeWindow cw)
|
|
| Method Summary | |
|---|---|
void |
clearSelections()
|
void |
connectToGaggle()
|
protected javax.swing.JToolBar |
createGaggleToolBar()
|
protected javax.swing.JToolBar |
createLocalToolBar()
|
void |
doBroadcastList()
|
void |
doBroadcastNetwork()
|
void |
doExit()
Tells the goose to exit (terminate). |
void |
doHide()
Tells the goose to hide itself |
void |
doShow()
Tells the goose to show itself |
protected java.lang.String[] |
getCanonicalNamesOfNodesInGraph()
|
java.lang.String[] |
getCommands()
|
protected java.util.HashMap |
getCommonNamesInHash(java.lang.String[] canonicalNames)
********************** public String [] getSelectedNodeNames () { Graph2D graph = cw.getGraph (); ArrayList list = new ArrayList (); for (NodeCursor nc = graph.selectedNodes(); nc.ok(); nc.next()) { Node node = nc.node (); String canonicalName = cw.getCanonicalNodeName (node); String organism = cw.getNodeAttributes().getStringValue ("species", canonicalName); list.add (canonicalName); } // for nc return (String []) list.toArray (new String [0]); } // getSelectedNodeNames *********************** |
double[] |
getDoubleEdgeAttributes(java.lang.String attributeName)
|
double[] |
getDoubleNodeAttributes(java.lang.String attributeName)
|
double[] |
getEdgeWeights()
|
protected java.util.HashMap |
getGeneClusters()
|
int[] |
getIntegerEdgeAttributes(java.lang.String attributeName)
|
java.lang.String |
getName()
Returns the name of the goose. |
int |
getSelectionCount()
|
void |
handleCluster(java.lang.String source,
Cluster cluster)
Called when the goose receives a Cluster object |
void |
handleMatrix(java.lang.String source,
DataMatrix matrix)
Called when the goose receives a DataMatrix object |
void |
handleNameList(java.lang.String source,
Namelist nameList)
Called when the goose receives a NameList object |
void |
handleNetwork(java.lang.String source,
Network network)
Called when the goose receives a Network object |
void |
handleTuple(java.lang.String source,
GaggleTuple gaggleTuple)
Called when the goose receives a GaggleTuple object |
void |
hideEdgesByAttribute(java.lang.String attributeName,
double threshold,
java.lang.String minOrMax)
|
void |
hideEdgesByAttribute(java.lang.String attributeName,
int threshold,
java.lang.String minOrMax)
|
void |
hideNodesByThreshold(java.lang.String nodeAttributeName,
double threshold,
int aboveOrBelow)
|
protected void |
hideOrphans()
|
protected void |
hideProteinAPrey()
lots of things stick to Protein A. |
protected void |
selectNodes()
|
void |
selectTilesAboveCurrentLambdaThreshold()
|
void |
selectTilesAboveCurrentRatioThreshold()
|
void |
setGeometry(int x,
int y,
int width,
int height)
|
void |
setName(java.lang.String newValue)
Sets the name of (renames) the goose. |
void |
showAll()
|
void |
update(java.lang.String[] gooseNames)
Provides the goose with an updated list of the names of active geese. |
void |
zoomInOnNextSelectedNode()
|
void |
zoomInOnPreviousSelectedNode()
|
| 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, 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 |
|---|
protected java.lang.String[] activeGooseNames
protected javax.swing.JToolBar toolbar
protected javax.swing.JButton connectButton
protected javax.swing.JButton disconnectButton
protected java.awt.GridBagLayout gridbagLayout
protected javax.swing.JTextField nodeSelectionTextField
protected javax.swing.JTextField probabilityThresholdReadout
protected double probabilityThreshold
protected javax.swing.JTextField peptideMinCountThresholdReadout
protected int peptideMinCountThreshold
protected javax.swing.JTextField peptideMaxCountThresholdReadout
protected int peptideMaxCountThreshold
protected CytoscapeWindow cw
protected BioDataServer dataServer
protected UndoableGraphHider graphHider
protected java.awt.Cursor defaultCursor
protected java.awt.Cursor busyCursor
| Constructor Detail |
|---|
public ControlPanel(CytoscapeWindow cw)
| Method Detail |
|---|
public void connectToGaggle()
protected javax.swing.JToolBar createGaggleToolBar()
protected javax.swing.JToolBar createLocalToolBar()
public void selectTilesAboveCurrentRatioThreshold()
public void selectTilesAboveCurrentLambdaThreshold()
public void zoomInOnNextSelectedNode()
public void zoomInOnPreviousSelectedNode()
protected java.util.HashMap getCommonNamesInHash(java.lang.String[] canonicalNames)
protected void selectNodes()
protected java.lang.String[] getCanonicalNamesOfNodesInGraph()
protected java.util.HashMap getGeneClusters()
public void showAll()
protected void hideOrphans()
protected void hideProteinAPrey()
public void hideEdgesByAttribute(java.lang.String attributeName,
double threshold,
java.lang.String minOrMax)
public void hideEdgesByAttribute(java.lang.String attributeName,
int threshold,
java.lang.String minOrMax)
public void hideNodesByThreshold(java.lang.String nodeAttributeName,
double threshold,
int aboveOrBelow)
public double[] getDoubleEdgeAttributes(java.lang.String attributeName)
public int[] getIntegerEdgeAttributes(java.lang.String attributeName)
public double[] getDoubleNodeAttributes(java.lang.String attributeName)
public double[] getEdgeWeights()
public void handleNameList(java.lang.String source,
Namelist nameList)
throws java.rmi.RemoteException
Goose
handleNameList in interface Goosesource - Optional string indicating name of source goosenameList - The NameList object
java.rmi.RemoteException - if RMI communication fails
public void handleMatrix(java.lang.String source,
DataMatrix matrix)
throws java.rmi.RemoteException
Goose
handleMatrix in interface Goosesource - Optional string indicating name of source goosematrix - The DataMatrix object
java.rmi.RemoteException - if RMI communication fails
public void handleTuple(java.lang.String source,
GaggleTuple gaggleTuple)
Goose
handleTuple in interface Goosesource - Optional string indicating name of source goosegaggleTuple - The GaggleTuple object
public void handleCluster(java.lang.String source,
Cluster cluster)
throws java.rmi.RemoteException
Goose
handleCluster in interface Goosesource - Optional string indicating name of source goosecluster - The Cluster object
java.rmi.RemoteException - if RMI communication fails
public void handleNetwork(java.lang.String source,
Network network)
Goose
handleNetwork in interface Goosesource - Optional string indicating name of source goosenetwork - The Network objectpublic java.lang.String getName()
Goose
getName in interface GoosegetName in class java.awt.Componentpublic void setName(java.lang.String newValue)
Goose
setName in interface GoosesetName in class java.awt.ComponentnewValue - The new name of the goosepublic int getSelectionCount()
public void doHide()
Goose
doHide in interface Goosepublic void doShow()
Goose
doShow in interface Goosepublic void clearSelections()
public void setGeometry(int x,
int y,
int width,
int height)
public void doBroadcastList()
doBroadcastList in interface Goosepublic void doBroadcastNetwork()
public void doExit()
Goose
doExit in interface Goosepublic void update(java.lang.String[] gooseNames)
Goose
update in interface GoosegooseNames - the names of the currently active geeseMiscUtil.updateGooseChooser(javax.swing.JComboBox gooseChooser, String callingGoose, String[] allGeese);public java.lang.String[] getCommands()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||