edu.jhu.tmaj.client.image.data
Class ArrayImageCell

java.lang.Object
  extended by edu.jhu.tmaj.client.image.data.ArrayImageCell
All Implemented Interfaces:
java.io.Serializable

public final class ArrayImageCell
extends java.lang.Object
implements java.io.Serializable

This class represents an ArrayImage in the ArraySlideFrame,ArrayImageFrame, and DotDataFrame. This class contains the image's ArrayImageID and path, as well as session-specific variables such as isScored. Some variables are specific to the running application such as isVisited and isSelected.

See Also:
Serialized Form

Method Summary
 void clearHistory()
          Indicate the user has not yet visited this image.
 void deSelect()
          Indicate user has de-selected this image.
 boolean equals(java.lang.Object object)
          Returns true if object is an ArrayImage with the same x and y coordinates.
 int getArrayImageID()
          Returns this ArrayImage's unique id in the ArrayImages table.
static ArrayImageCell getDisabledInstance(Pair pair)
          Returns a disabled ArrayImage with null for filename and directory path.
 ExternalFile getExternalFile(ImageSize imageSize)
           
static ArrayImageCell getInstance(Pair pair, int arrayImageID, VariedSizeImages variedSizeImages, boolean isBad)
           
 ScoreData getScoreData()
           
 java.lang.String getWebSlideURL()
           
 int getXPosition()
          Returns the X Position of this ArrayImage indicated in the ArrayCores table.
 int getYPosition()
          Returns the Y Position of this ArrayImage indicated in the ArrayCores table.
 int hashCode()
           
 boolean isBad()
          Returns true if there is an image present, but it is not worth viewing.
 boolean isDisabled()
          Returns true if the ArrayImage actually has an image, and not just a place holder.
 boolean isFilteredOut()
          Returns true if this image is not part of the images selected in a filter
 boolean isFilterOn()
          Returns true if a filter has been applied to this set of images
 boolean isSelected()
          Returns true if the ArrayImage is currently selected by the user.
 boolean isVisited()
          Returns true if the user has visited this ArrayImage since starting the application.
 void select()
          Indicate user has selected this image to be viewed.
 void setFilteredOut(boolean b)
           
 void setFilterOn(boolean b)
           
 void setIsBad(boolean b)
          Sets whether this ArrayImage has an image worth viewing.
 void setScoreData(ScoreData scoreData)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getInstance

public static ArrayImageCell getInstance(Pair pair,
                                         int arrayImageID,
                                         VariedSizeImages variedSizeImages,
                                         boolean isBad)

getDisabledInstance

public static ArrayImageCell getDisabledInstance(Pair pair)
Returns a disabled ArrayImage with null for filename and directory path.


isBad

public boolean isBad()
Returns true if there is an image present, but it is not worth viewing. For example, it is blurry.


isVisited

public boolean isVisited()
Returns true if the user has visited this ArrayImage since starting the application.


isSelected

public boolean isSelected()
Returns true if the ArrayImage is currently selected by the user.


isDisabled

public boolean isDisabled()
Returns true if the ArrayImage actually has an image, and not just a place holder.


clearHistory

public void clearHistory()
Indicate the user has not yet visited this image. Visiting history is not stored in the database or in a file, but only in memory. Once the user closes the session it will be reset.


getWebSlideURL

public java.lang.String getWebSlideURL()

deSelect

public void deSelect()
Indicate user has de-selected this image.


select

public void select()
Indicate user has selected this image to be viewed.


setIsBad

public void setIsBad(boolean b)
Sets whether this ArrayImage has an image worth viewing. A blurry image, for example, is not worth viewing.


getXPosition

public int getXPosition()
Returns the X Position of this ArrayImage indicated in the ArrayCores table.


getYPosition

public int getYPosition()
Returns the Y Position of this ArrayImage indicated in the ArrayCores table.


getArrayImageID

public int getArrayImageID()
Returns this ArrayImage's unique id in the ArrayImages table.


getExternalFile

public ExternalFile getExternalFile(ImageSize imageSize)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object object)
Returns true if object is an ArrayImage with the same x and y coordinates. Used in dotDataFrame

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

isFilteredOut

public boolean isFilteredOut()
Returns true if this image is not part of the images selected in a filter


setFilteredOut

public void setFilteredOut(boolean b)

isFilterOn

public boolean isFilterOn()
Returns true if a filter has been applied to this set of images


setFilterOn

public void setFilterOn(boolean b)

getScoreData

public ScoreData getScoreData()

setScoreData

public void setScoreData(ScoreData scoreData)