|
|||||||||||
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 |
java.awt.Color |
getBackgroundColor()
Returns the background color of the cell. |
javax.swing.border.Border |
getBorder()
Returns the border to paint around the cell. |
java.awt.Font |
getFont()
Return the font to use for rendering cell text. |
java.awt.Color |
getForegroundColor()
Return the color to use for rendering cell text. |
java.text.Format |
getFormat()
Returns the formatting to use for rendering cell text. |
int |
getHorizontalAlignment()
Returns the horizontal alignment of the cell text. |
java.awt.Insets |
getPadding()
Returns the padding to be used around the cell text. |
int |
getVerticalAlignment()
Returns the vertical alignment of the cell text. |
void |
setBackgroundColor(java.awt.Color c)
Sets the background color of the cell. |
void |
setBorder(javax.swing.border.Border cellBorder)
Sets the border to paint around the edges of the cell. |
void |
setFont(java.awt.Font f)
Set the font to use to render cell text. |
void |
setForegroundColor(java.awt.Color c)
Sets the color to use for rendering cell text. |
void |
setFormat(java.text.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(java.awt.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 java.text.Format getFormat()
public void setFormat(java.text.Format format)
format
- the cell formatpublic java.awt.Font getFont()
public void setFont(java.awt.Font f)
f
- font to render cell textpublic javax.swing.border.Border getBorder()
JGrid
since borders are shared with
adjancent cells.
public void setBorder(javax.swing.border.Border cellBorder)
cellBorder
- the new cell borderpublic java.awt.Color getForegroundColor()
public void setForegroundColor(java.awt.Color c)
c
- the new cell text colorpublic java.awt.Color getBackgroundColor()
public void setBackgroundColor(java.awt.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 java.awt.Insets getPadding()
Insets
that represents the paddingpublic void setPadding(java.awt.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 |