edu.jhu.tmaj.client.image
Class DotTableFrame

java.lang.Object
  extended by edu.jhu.tmaj.client.image.DotTableFrame
All Implemented Interfaces:
ArrayImageSettable

public final class DotTableFrame
extends java.lang.Object
implements ArrayImageSettable

The window with the table showing all the scores the user has made. Each row represents 1 scored-iamge. If a user double clicks on a row, the image of that row will be displayed in the ArrayImage Window. In this class, the user can establish a filter by using sort/ filter to filter out any images and then hitting the 'apply filter' button. This will cause the ArraySlide window to display all the images that have NOT been filtered out in red.


Constructor Summary
DotTableFrame(ImageAppGuis imageAppGuis, SessionBean sessionBean)
           
 
Method Summary
 javax.swing.JFrame getFrame()
           
 ArrayImageCell getRowArrayImage(int row)
          Constructs and return an ArrayImage from the specified row in the table.
static ScoredImageDetailsRequest getScoredImageDetailsRequest(int[] sessions)
           
 GeneralTableModel getTableModel()
           
 boolean isShowing()
           
 void setArrayImage(ArrayImageCell arrayImage)
          Highlight the row that is represents the supplied ArrayImage.
 void setSession(SessionBean sessionBean)
           
 void setTitle(java.lang.String title)
           
static void setupTableModel(GeneralTableModel tableModel, int[] sessions, java.awt.Component component)
          Sets the data in a tableModel to include detailed information about the specified sessions.
 void setVisible(boolean isVisible)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DotTableFrame

public DotTableFrame(ImageAppGuis imageAppGuis,
                     SessionBean sessionBean)
Method Detail

setSession

public void setSession(SessionBean sessionBean)

getRowArrayImage

public ArrayImageCell getRowArrayImage(int row)
Constructs and return an ArrayImage from the specified row in the table.


setArrayImage

public void setArrayImage(ArrayImageCell arrayImage)
Highlight the row that is represents the supplied ArrayImage.

Specified by:
setArrayImage in interface ArrayImageSettable

setupTableModel

public static void setupTableModel(GeneralTableModel tableModel,
                                   int[] sessions,
                                   java.awt.Component component)
Sets the data in a tableModel to include detailed information about the specified sessions. For each row an x and y coordinate is displayed, the scoring information a user entered for the image, and any background information on that image. Note this method is also used in AnalysisFrame to download information about one or more sessions.

Parameters:
tableModel - the tableModel whose rows and column identifiers will be set by this function.
sessions - the sessionIDs of the Sessions whose data will be retrieved
component - the component on where to display an error dialog if an error occurs

getScoredImageDetailsRequest

public static ScoredImageDetailsRequest getScoredImageDetailsRequest(int[] sessions)

isShowing

public boolean isShowing()

setVisible

public void setVisible(boolean isVisible)

setTitle

public void setTitle(java.lang.String title)

getFrame

public javax.swing.JFrame getFrame()

getTableModel

public GeneralTableModel getTableModel()