uk.ac.essex.ia.imageview.pane
Class ImageGridLayout

java.lang.Object
  extended by uk.ac.essex.ia.imageview.pane.ImageGridLayout

public class ImageGridLayout
extends java.lang.Object

A class defines an grid layout for an uk.ac.essex.ia.imageview.pane.MultipleImagePane. The valid layouts for this application are defined in the property file. An example for a layout is listed below:

              Layout1Label="     4-Views     "
              Layout1ImageNum=4
              Layout1ImageNumInARow=2
              Layout1ImageNumInAColumn=2
  

The first item is the name of the layout displayed on the GUI of the application. The second item is the total image number to be displayed in the uk.ac.essex.ia.imageview.pane.MultipleImagePane. The third and fourth items is the number of images to be displayed on each row or column. If the total image number is less than the total grid number, some of the grid will be displayed as empty panels.


Constructor Summary
ImageGridLayout(java.lang.String name)
          Construct an uk.ac.essex.ia.imageview.pane.ImageGridLayout object based on the name composed with the string "Layout" and the serial number of this layout when it is defined in the property file.
 
Method Summary
 int getImageNum()
          Return the capacity of this layout.
 int getImageNumInAColumn()
          Return the number of rows.
 int getImageNumInARow()
          Return the number of columns.
 java.lang.String getLabel()
          Return the name to be displayed in the layout list of the GUI.
 java.lang.String toString()
          Stringify for print for debugging.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImageGridLayout

public ImageGridLayout(java.lang.String name)
Construct an uk.ac.essex.ia.imageview.pane.ImageGridLayout object based on the name composed with the string "Layout" and the serial number of this layout when it is defined in the property file. Retrieve the parameters of this layout from the property file.

Method Detail

getImageNum

public int getImageNum()
Return the capacity of this layout.


getImageNumInAColumn

public int getImageNumInAColumn()
Return the number of rows.


getImageNumInARow

public int getImageNumInARow()
Return the number of columns.


getLabel

public java.lang.String getLabel()
Return the name to be displayed in the layout list of the GUI.


toString

public java.lang.String toString()
Stringify for print for debugging.

Overrides:
toString in class java.lang.Object