org.systemsbiology.gaggle.geese.pdfViewer
Class ClusterViewer

java.lang.Object
  extended by org.systemsbiology.gaggle.geese.pdfViewer.ClusterViewer
All Implemented Interfaces:
java.rmi.Remote, Goose

public class ClusterViewer
extends java.lang.Object
implements Goose


Field Summary
protected  javax.swing.JFrame mainFrame
           
protected  javax.swing.JTabbedPane tabbedPane
           
 
Constructor Summary
ClusterViewer(java.lang.String baseUrl)
           
 
Method Summary
 void addNewTab(java.lang.String clusterIdAs3DigitString)
           
 void clearSelections()
           
 void connectToGaggle()
           
protected  void createGui()
           
protected  javax.swing.JMenuBar createMenuBar()
           
protected  javax.swing.JPanel createScrolledPdfViewer(java.lang.String clusterIdAs3DigitString)
           
 void doBroadcastList()
           
 void doExit()
          Tells the goose to exit (terminate).
 void doHide()
          Tells the goose to hide itself
 void doShow()
          Tells the goose to show itself
 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
static void main(java.lang.String[] args)
           
 void setGeometry(int x, int y, int width, int height)
           
 void setName(java.lang.String newName)
          Sets the name of (renames) the goose.
 void update(java.lang.String[] gooseNames)
          Provides the goose with an updated list of the names of active geese.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mainFrame

protected javax.swing.JFrame mainFrame

tabbedPane

protected javax.swing.JTabbedPane tabbedPane
Constructor Detail

ClusterViewer

public ClusterViewer(java.lang.String baseUrl)
Method Detail

createGui

protected void createGui()

createMenuBar

protected javax.swing.JMenuBar createMenuBar()

addNewTab

public void addNewTab(java.lang.String clusterIdAs3DigitString)

createScrolledPdfViewer

protected javax.swing.JPanel createScrolledPdfViewer(java.lang.String clusterIdAs3DigitString)

connectToGaggle

public void connectToGaggle()

handleNameList

public void handleNameList(java.lang.String source,
                           Namelist nameList)
Description copied from interface: Goose
Called when the goose receives a NameList object

Specified by:
handleNameList in interface Goose
Parameters:
source - Optional string indicating name of source goose
nameList - The NameList object

handleCluster

public void handleCluster(java.lang.String source,
                          Cluster cluster)
Description copied from interface: Goose
Called when the goose receives a Cluster object

Specified by:
handleCluster in interface Goose
Parameters:
source - Optional string indicating name of source goose
cluster - The Cluster object

handleMatrix

public void handleMatrix(java.lang.String source,
                         DataMatrix matrix)
Description copied from interface: Goose
Called when the goose receives a DataMatrix object

Specified by:
handleMatrix in interface Goose
Parameters:
source - Optional string indicating name of source goose
matrix - The DataMatrix object

handleTuple

public void handleTuple(java.lang.String source,
                        GaggleTuple gaggleTuple)
Description copied from interface: Goose
Called when the goose receives a GaggleTuple object

Specified by:
handleTuple in interface Goose
Parameters:
source - Optional string indicating name of source goose
gaggleTuple - The GaggleTuple object

handleNetwork

public void handleNetwork(java.lang.String source,
                          Network network)
Description copied from interface: Goose
Called when the goose receives a Network object

Specified by:
handleNetwork in interface Goose
Parameters:
source - Optional string indicating name of source goose
network - The Network object

getName

public java.lang.String getName()
Description copied from interface: Goose
Returns the name of the goose.

Specified by:
getName in interface Goose
Returns:
the name of the goose

setName

public void setName(java.lang.String newName)
Description copied from interface: Goose
Sets the name of (renames) the goose.

Specified by:
setName in interface Goose
Parameters:
newName - The new name of the goose

doHide

public void doHide()
Description copied from interface: Goose
Tells the goose to hide itself

Specified by:
doHide in interface Goose

doShow

public void doShow()
Description copied from interface: Goose
Tells the goose to show itself

Specified by:
doShow in interface Goose

clearSelections

public void clearSelections()

setGeometry

public void setGeometry(int x,
                        int y,
                        int width,
                        int height)

getSelectionCount

public int getSelectionCount()

doBroadcastList

public void doBroadcastList()
Specified by:
doBroadcastList in interface Goose

doExit

public void doExit()
Description copied from interface: Goose
Tells the goose to exit (terminate).

Specified by:
doExit in interface Goose

update

public void update(java.lang.String[] gooseNames)
Description copied from interface: Goose
Provides the goose with an updated list of the names of active geese. This list includes the name of the goose receiving the list.

Specified by:
update in interface Goose
Parameters:
gooseNames - the names of the currently active geese
See Also:
MiscUtil.updateGooseChooser(javax.swing.JComboBox gooseChooser, String callingGoose, String[] allGeese);

main

public static void main(java.lang.String[] args)