|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.xoetrope.xui.helper.Measurer
public class Measurer
A helper class to assist in positioning rows and columns of
components within a container. The containers width is divided into columns
and the height is divided into rows. Each cell is padded on either side.
No attempt is made to constrain the measurements. Therefore if an attempt is
made to call nextX or nextY more times than there are rows or columns
respectively then dimensions beyond the bounds on the container will be
returned.
Copyright: Copyright (c) Xoetrope Ltd., 1998-2003
License: see license.txt
| Constructor Summary | |
|---|---|
Measurer(java.awt.Container cont,
int rows,
int cols,
int horzPadding,
int vertPadding)
Constructs a new Measurer. |
|
| Method Summary | |
|---|---|
int |
getCellHeight()
Get the cell width including padding |
int |
getCellWidth()
Get the cell width including padding |
int |
getHeight()
Get the cell content's height (the cell height less the padding) |
int |
getNextX()
Get the left hand coordinate. |
int |
getNextY()
Get the top coordinate. |
int |
getRemainingHeight()
Get the remaining height available for a component, taking account of the required padding |
int |
getRemainingWidth()
Get the remaining width available for a component, taking account of the required padding |
int |
getWidth()
Get the cell width including padding (the cell width less the padding) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Measurer(java.awt.Container cont,
int rows,
int cols,
int horzPadding,
int vertPadding)
cont - the container to be dividiedrows - the number of rows into which the container's height is dividedcols - the number of columns into which the container's width is dividedhorzPadding - the amount of padding on the left and right of the cellvertPadding - the amount of padding on the top and bottom of the cell| Method Detail |
|---|
public int getNextX()
public int getNextY()
public int getCellWidth()
public int getCellHeight()
public int getWidth()
public int getHeight()
public int getRemainingWidth()
public int getRemainingHeight()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||