public class CellStyle
extends java.lang.Object
implements java.lang.Cloneable
Constructor and Description |
---|
CellStyle()
New cell style without border and padding.
|
CellStyle(int borderWidth)
Creates a new cell style with a solid black border.
|
CellStyle(int borderWidth,
java.awt.Color borderColor)
Creates a new cell style with a solid border.
|
CellStyle(int borderWidth,
int padding)
Creates a new cell style with a solid black border and padding (insets).
|
Modifier and Type | Method and Description |
---|---|
CellStyle |
cloned()
Clones this CellStyle.
|
Border |
getBorder()
Gets the border of cell.
|
Padding |
getPadding()
Gets the padding of cell (insets).
|
Values.DisplayAlignment |
getVAlign()
Gets the vertical alignment of cell content.
|
void |
setBorder(Border border)
Sets the border of cell.
|
void |
setPadding(Padding padding)
Sets the padding of cell.
|
void |
setVAlign(Values.DisplayAlignment vAlign)
Sets the vertical alignment of cell content.
|
public CellStyle()
public CellStyle(int borderWidth)
borderWidth
- Width of border in points.public CellStyle(int borderWidth, java.awt.Color borderColor)
borderWidth
- Width of border in points.borderColor
- Color of border.public CellStyle(int borderWidth, int padding)
borderWidth
- Border width.padding
- Top, left, right and bottom padding (insets).public CellStyle cloned()
public Border getBorder()
public Padding getPadding()
public Values.DisplayAlignment getVAlign()
public void setVAlign(Values.DisplayAlignment vAlign)
vAlign
- Vertical alignment.public void setPadding(Padding padding)
padding
- Padding.public void setBorder(Border border)
border
- Border.© 2003-2011 by Sascha Schmidt (vision-cloud.de). All Rights Reserved.