|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provides rendering information about a cell.
Method Summary | |
CellStyle |
copy()
Return a new object that is a duplicate of this CellStyle |
Color |
getBackgroundColor()
Returns the background color of the cell. |
Border |
getBorder()
Returns the border to paint around the cell. |
Font |
getFont()
Return the font to use for rendering cell text. |
Color |
getForegroundColor()
Return the color to use for rendering cell text. |
Format |
getFormat()
Returns the formatting to use for rendering cell text. |
int |
getHorizontalAlignment()
Returns the horizontal alignment of the cell text. |
Insets |
getPadding()
Returns the padding to be used around the cell text. |
int |
getVerticalAlignment()
Returns the vertical alignment of the cell text. |
void |
setBackgroundColor(Color c)
Sets the background color of the cell. |
void |
setBorder(Border cellBorder)
Sets the border to paint around the edges of the cell. |
void |
setFont(Font f)
Set the font to use to render cell text. |
void |
setForegroundColor(Color c)
Sets the color to use for rendering cell text. |
void |
setFormat(Format format)
Set the format to use to render cell text. |
void |
setHorizontalAlignment(int hAlign)
Set the horizontal alignment of the cell text. |
void |
setPadding(Insets padding)
Sets the padding to be used around the cell text. |
void |
setVerticalAlignment(int vAlign)
Set the vertical alignment of the cell text. |
Method Detail |
public Format getFormat()
public void setFormat(Format format)
format
- the cell formatpublic Font getFont()
public void setFont(Font f)
f
- font to render cell textpublic Border getBorder()
JGrid
since borders are shared with
adjancent cells.
public void setBorder(Border cellBorder)
cellBorder
- the new cell borderpublic Color getForegroundColor()
public void setForegroundColor(Color c)
c
- the new cell text colorpublic Color getBackgroundColor()
public void setBackgroundColor(Color c)
c
- the cell background colorpublic int getHorizontalAlignment()
SwingContants.LEFT
||
SwingConstants.CENTER
||
SwingConstants.RIGHT
public void setHorizontalAlignment(int hAlign)
hAlign
- one of SwingContants.LEFT
,
SwingConstants.CENTER
, or
SwingConstants.RIGHT
public int getVerticalAlignment()
SwingContants.TOP
||
SwingConstants.CENTER
||
SwingConstants.BOTTOM
public void setVerticalAlignment(int vAlign)
public Insets getPadding()
Insets
that represents the paddingpublic void setPadding(Insets padding)
padding
- the new cell paddingpublic CellStyle copy()
CellStyle
CellStyle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |