edu.jhu.tmaj.client.image.data
Enum ImageSize

java.lang.Object
  extended by java.lang.Enum<ImageSize>
      extended by edu.jhu.tmaj.client.image.data.ImageSize
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ImageSize>

public enum ImageSize
extends java.lang.Enum<ImageSize>

The 4 sizes of ArrayImages in TMAJ.


Enum Constant Summary
LARGE
          The largest size.
MID
          The third largest size, this is displayed as a strip of images.
SMALL
          The second largest size.
THUMB
          The thumbnail images shown in the ArraySlide Frame.
 
Method Summary
 java.lang.String getColumnName()
           
 java.lang.String getDescription()
           
static ImageSize getInstanceBySubDirectory(java.lang.String subDirectory)
           
 java.lang.String getPrefix()
           
 java.lang.String getSubDirectory()
           
static ImageSize valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ImageSize[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LARGE

public static final ImageSize LARGE
The largest size. This is the image output by the scanning machine. All other images are compressed by a third party program.


SMALL

public static final ImageSize SMALL
The second largest size. This is the image initially displayed for the user in the ArrayImagePanel. It takes up about 80% of the screen, whereas the large image takes up something more like 150% of the screen. This size is about 4 times smaller than the large image, so speed is improved when going threw the small images.


MID

public static final ImageSize MID
The third largest size, this is displayed as a strip of images.


THUMB

public static final ImageSize THUMB
The thumbnail images shown in the ArraySlide Frame.

Method Detail

values

public static ImageSize[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ImageSize c : ImageSize.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ImageSize valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getSubDirectory

public java.lang.String getSubDirectory()

getPrefix

public java.lang.String getPrefix()

getDescription

public java.lang.String getDescription()

getInstanceBySubDirectory

public static ImageSize getInstanceBySubDirectory(java.lang.String subDirectory)

getColumnName

public java.lang.String getColumnName()