|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object echopoint.layout.GridLayoutManager.CellConstraints
This class is designed to be used as a contraints object with GridLayoutManager. It denotes a col1,row1,col2,row2 position of a Component within the GridLayoutManager.
Field Summary | |
static int |
PERCENT_UNITS
A constant used in the setWidthUnits() and
setHeightUnits() methods.
|
static int |
PIXEL_UNITS
A constant used in the setWidthUnits() and
setHeightUnits() methods.
|
Constructor Summary | |
GridLayoutManager.CellConstraints(int col1,
int row1)
CellConstraints constructor for col1 == col2 and row1 == row2. |
|
GridLayoutManager.CellConstraints(int col1,
int row1,
int col2,
int row2)
CellConstraints constructor. |
Method Summary | |
nextapp.echo.Color |
getBackground()
|
int |
getCol1()
Returns the Col1 co-ord |
int |
getCol2()
Returns the Col2 co-ord |
nextapp.echo.Font |
getFont()
|
nextapp.echo.Color |
getForeground()
|
int |
getHeight()
Returns the current height value of the cell or -1 if its not set |
int |
getHeightUnits()
Returns the height untis in action for this cell. |
int |
getRow1()
Returns the Row1 co-ord |
int |
getRow2()
Returns the Row1 co-ord |
int |
getWidth()
Returns the current width value of the cell or -1 if its not set |
int |
getWidthUnits()
Returns the width untis in action for this cell. |
boolean |
overlaps(GridLayoutManager.CellConstraints cell)
Returns true of the current GridCellContraint overlaps with the provided one. |
void |
setBackground(nextapp.echo.Color background)
|
void |
setFont(nextapp.echo.Font font)
|
void |
setForeground(nextapp.echo.Color foreground)
|
void |
setHeight(int height)
Sets the height of the cell |
GridLayoutManager.CellConstraints |
setHeightInPercent(int height)
|
GridLayoutManager.CellConstraints |
setHeightInPixels(int height)
|
void |
setHeightUnits(int units)
Sets the height units of the cell |
void |
setWidth(int width)
Sets the width of the cell |
GridLayoutManager.CellConstraints |
setWidthInPercent(int width)
|
GridLayoutManager.CellConstraints |
setWidthInPixels(int width)
|
void |
setWidthUnits(int units)
Sets the width units of the cell |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int PIXEL_UNITS
setWidthUnits()
and
setHeightUnits()
methods.
This value specifies that pixel-based units are used
in defining the individual column or row sizes and the
overall width and height of the grid.
public static final int PERCENT_UNITS
setWidthUnits()
and
setHeightUnits()
methods.
This value specifies that percent-based are used in defining both the
individual column or row sizes and the overall width or height of the
grid.
Constructor Detail |
public GridLayoutManager.CellConstraints(int col1, int row1)
public GridLayoutManager.CellConstraints(int col1, int row1, int col2, int row2)
Method Detail |
public int getCol1()
public int getCol2()
public int getRow1()
public int getRow2()
public boolean overlaps(GridLayoutManager.CellConstraints cell)
public java.lang.String toString()
public int getHeight()
public int getWidth()
public int getHeightUnits()
public int getWidthUnits()
public void setHeight(int height)
height
- - the height of the cellpublic void setHeightUnits(int units)
units
- - the height units of the cellpublic void setWidth(int width)
width
- the width of the cellpublic void setWidthUnits(int units)
units
- - the width units of the cellpublic GridLayoutManager.CellConstraints setHeightInPixels(int height)
public GridLayoutManager.CellConstraints setHeightInPercent(int height)
public GridLayoutManager.CellConstraints setWidthInPixels(int width)
public GridLayoutManager.CellConstraints setWidthInPercent(int width)
public nextapp.echo.Color getBackground()
public void setBackground(nextapp.echo.Color background)
background
- The background to set.public nextapp.echo.Font getFont()
public void setFont(nextapp.echo.Font font)
font
- The font to set.public nextapp.echo.Color getForeground()
public void setForeground(nextapp.echo.Color foreground)
foreground
- The foreground to set.
|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |