|
||||||||||
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()
CellStyle
CellStyle
copy
in interface CellStyle
CellStyle
public Format getFormat()
CellStyle
getFormat
in interface CellStyle
public void setFormat(Format format)
CellStyle
setFormat
in interface CellStyle
format
- the cell formatpublic Font getFont()
CellStyle
getFont
in interface CellStyle
public void setFont(Font f)
CellStyle
setFont
in interface CellStyle
f
- font to render cell textpublic Border getBorder()
CellStyle
JGrid
since borders are shared with
adjancent cells.
getBorder
in interface CellStyle
public void setBorder(Border cellBorder)
CellStyle
setBorder
in interface CellStyle
cellBorder
- the new cell borderpublic Color getForegroundColor()
CellStyle
getForegroundColor
in interface CellStyle
public void setForegroundColor(Color c)
CellStyle
setForegroundColor
in interface CellStyle
c
- the new cell text colorpublic Color getBackgroundColor()
CellStyle
getBackgroundColor
in interface CellStyle
public void setBackgroundColor(Color c)
CellStyle
setBackgroundColor
in interface CellStyle
c
- the cell background colorpublic int getHorizontalAlignment()
CellStyle
getHorizontalAlignment
in interface CellStyle
SwingContants.LEFT
||
SwingConstants.CENTER
||
SwingConstants.RIGHT
public void setHorizontalAlignment(int hAlign)
CellStyle
setHorizontalAlignment
in interface CellStyle
hAlign
- one of SwingContants.LEFT
,
SwingConstants.CENTER
, or
SwingConstants.RIGHT
public int getVerticalAlignment()
CellStyle
getVerticalAlignment
in interface CellStyle
SwingContants.TOP
||
SwingConstants.CENTER
||
SwingConstants.BOTTOM
public void setVerticalAlignment(int vAlign)
CellStyle
setVerticalAlignment
in interface CellStyle
public Insets getPadding()
CellStyle
getPadding
in interface CellStyle
Insets
that represents the paddingpublic void setPadding(Insets padding)
CellStyle
setPadding
in interface CellStyle
padding
- the new cell padding
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |