edu.jhu.tmaj.client.image
Class TopMenu

java.lang.Object
  extended by edu.jhu.tmaj.client.image.TopMenu

public final class TopMenu
extends java.lang.Object

The options menu for the ArrayImageFrame


Constructor Summary
TopMenu(ArrayImageFrame arrayImageFrame)
           
 
Method Summary
static boolean areTissueTypesRestrictedForProject(SessionBean sessionBean)
           
 int getGridSpacing()
           
 javax.swing.JMenuBar getMenuBar()
           
 boolean isDrawingViewable()
          Returns true if the user should be able to view drawing made on the image.
static boolean isLookupDisabledForProject(SessionBean sessionBean)
           
 boolean isLookupEnabled()
          Returns true if diagnosis's (either general or specific) are being looked up for the user.
 boolean isRandom()
          Returns true if the ArrayImages should be viewed in a random order.
 boolean isViewPositionEnabled()
          Returns true if the user can view the current x/y position of the ArrayImage in the corner.
 boolean shouldDisplayInputLogColumn()
           
 boolean usesGrid()
          Returns true if a grid should be displayed over the image.
 boolean willLookupDiagnosis()
          Returns true if both the general type and specific diagnosis should be looked up in TissueDiagnosis.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TopMenu

public TopMenu(ArrayImageFrame arrayImageFrame)
Method Detail

isDrawingViewable

public boolean isDrawingViewable()
Returns true if the user should be able to view drawing made on the image.


isViewPositionEnabled

public boolean isViewPositionEnabled()
Returns true if the user can view the current x/y position of the ArrayImage in the corner. Turning this feature off reduces bias as ArrayBlocks are often designed in a regular fasion, and users may know what to expect at certain coordinates.


isLookupEnabled

public boolean isLookupEnabled()
Returns true if diagnosis's (either general or specific) are being looked up for the user.


willLookupDiagnosis

public boolean willLookupDiagnosis()
Returns true if both the general type and specific diagnosis should be looked up in TissueDiagnosis.


isRandom

public boolean isRandom()
Returns true if the ArrayImages should be viewed in a random order. Enabling this option reduces bias.


usesGrid

public boolean usesGrid()
Returns true if a grid should be displayed over the image.


getGridSpacing

public int getGridSpacing()

shouldDisplayInputLogColumn

public boolean shouldDisplayInputLogColumn()

getMenuBar

public javax.swing.JMenuBar getMenuBar()

isLookupDisabledForProject

public static boolean isLookupDisabledForProject(SessionBean sessionBean)

areTissueTypesRestrictedForProject

public static boolean areTissueTypesRestrictedForProject(SessionBean sessionBean)