|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.sf.jeppers.grid.DefaultCellStyle
Default implementation of CellStyle.
| Constructor Summary | |
DefaultCellStyle()
Constructs the default CellStyle. |
|
DefaultCellStyle(CellStyle parent)
|
|
| 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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultCellStyle()
public DefaultCellStyle(CellStyle parent)
| Method Detail |
public CellStyle copy()
CellStyleCellStyle
copy in interface CellStyleCellStylepublic Format getFormat()
CellStyle
getFormat in interface CellStylepublic void setFormat(Format format)
CellStyle
setFormat in interface CellStyleformat - the cell formatpublic Font getFont()
CellStyle
getFont in interface CellStylepublic void setFont(Font f)
CellStyle
setFont in interface CellStylef - font to render cell textpublic Border getBorder()
CellStyleJGrid since borders are shared with
adjancent cells.
getBorder in interface CellStylepublic void setBorder(Border cellBorder)
CellStyle
setBorder in interface CellStylecellBorder - the new cell borderpublic Color getForegroundColor()
CellStyle
getForegroundColor in interface CellStylepublic void setForegroundColor(Color c)
CellStyle
setForegroundColor in interface CellStylec - the new cell text colorpublic Color getBackgroundColor()
CellStyle
getBackgroundColor in interface CellStylepublic void setBackgroundColor(Color c)
CellStyle
setBackgroundColor in interface CellStylec - the cell background colorpublic int getHorizontalAlignment()
CellStyle
getHorizontalAlignment in interface CellStyleSwingContants.LEFT ||
SwingConstants.CENTER ||
SwingConstants.RIGHTpublic void setHorizontalAlignment(int hAlign)
CellStyle
setHorizontalAlignment in interface CellStylehAlign - one of SwingContants.LEFT,
SwingConstants.CENTER, or
SwingConstants.RIGHTpublic int getVerticalAlignment()
CellStyle
getVerticalAlignment in interface CellStyleSwingContants.TOP ||
SwingConstants.CENTER ||
SwingConstants.BOTTOMpublic void setVerticalAlignment(int vAlign)
CellStyle
setVerticalAlignment in interface CellStylepublic Insets getPadding()
CellStyle
getPadding in interface CellStyleInsets that represents the paddingpublic void setPadding(Insets padding)
CellStyle
setPadding in interface CellStylepadding - the new cell padding
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||