|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.essex.ia.imageview.pane.ImageGridLayout
public class ImageGridLayout
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 |
---|
public ImageGridLayout(java.lang.String name)
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 |
---|
public int getImageNum()
public int getImageNumInAColumn()
public int getImageNumInARow()
public java.lang.String getLabel()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |