edu.jhu.tmaj.client.arraybuilder
Class ArrayBuilderTable

java.lang.Object
  extended by edu.jhu.tmaj.client.arraybuilder.ArrayBuilderTable

public final class ArrayBuilderTable
extends java.lang.Object

Represents the JTable-related classes in the ArrayBuilder application.


Field Summary
(package private)  TissueDiagnosisIDPanel tissueDiagnosisIDPanel
           
 
Constructor Summary
ArrayBuilderTable(ArrayBlockBean arrayBlockBean, CoreDataPanel coreDataPanel, ArrayCoreReferenceBean arrayCoreReferenceBean, CellLinesReferenceBean cellLinesReferenceBean)
          Constructs this object.
 
Method Summary
 ArrayCoreCell getArrayCoreCell(Coordinate coordinate)
          Returns the tableModel's ArrayCoreCell for the given coordinate.
 java.awt.Component getScrollPane()
          Returns the grapical Component representing this object.
 java.util.Set<ArrayCoreCell> getSelectedArrayCoreCellSet()
           
 java.util.Set<Coordinate> getSelectedCoordinateSet()
           
 boolean hasUnsavedModifications()
           
 void setColorLegendDisplayed(boolean isDisplayed)
          Display a legend showing which colors are mapped to which TissueTypes.
 void setColorsUse(boolean b)
          Turns the color-scheme on or off.
 void setShowDetails(CellView cellView)
           
 CommandResponse writeToDatabase()
          Sends a Request to write the ArrayCores to the database for the specified ArrayBlockID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tissueDiagnosisIDPanel

final TissueDiagnosisIDPanel tissueDiagnosisIDPanel
Constructor Detail

ArrayBuilderTable

public ArrayBuilderTable(ArrayBlockBean arrayBlockBean,
                         CoreDataPanel coreDataPanel,
                         ArrayCoreReferenceBean arrayCoreReferenceBean,
                         CellLinesReferenceBean cellLinesReferenceBean)
Constructs this object.

Parameters:
arrayBlockBean - the ArrayBlockBean the user is viewing or editing.
Method Detail

getSelectedCoordinateSet

public java.util.Set<Coordinate> getSelectedCoordinateSet()

getSelectedArrayCoreCellSet

public java.util.Set<ArrayCoreCell> getSelectedArrayCoreCellSet()

setColorLegendDisplayed

public void setColorLegendDisplayed(boolean isDisplayed)
Display a legend showing which colors are mapped to which TissueTypes.


setColorsUse

public void setColorsUse(boolean b)
Turns the color-scheme on or off. If the color scheme is off, all cells are displayed as the normal, gray background.


setShowDetails

public void setShowDetails(CellView cellView)

writeToDatabase

public CommandResponse writeToDatabase()
Sends a Request to write the ArrayCores to the database for the specified ArrayBlockID.


getArrayCoreCell

public ArrayCoreCell getArrayCoreCell(Coordinate coordinate)
Returns the tableModel's ArrayCoreCell for the given coordinate.


getScrollPane

public java.awt.Component getScrollPane()
Returns the grapical Component representing this object.


hasUnsavedModifications

public boolean hasUnsavedModifications()