public class CBorder
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CBorder.CBorderType
Border line style types.
|
| Modifier and Type | Field and Description |
|---|---|
CColor |
color
Border color (RGBA).
|
CBorder.CBorderType |
type
Border type (solid/dashed/dotted/double).
|
CUnitValue |
width
Border width.
|
| Constructor and Description |
|---|
CBorder()
Create a border with default values.
|
CBorder(CUnitValue width,
CBorder.CBorderType type,
CColor color)
Create a border with specified width, type and color.
|
CBorder(float width) |
| Modifier and Type | Method and Description |
|---|---|
CColor |
getColor()
Get the border color.
|
CBorder.CBorderType |
getType()
Get the border line type.
|
CUnitValue |
getWidth()
Get the border width.
|
void |
setColor(CColor color)
Set the border color.
|
void |
setType(CBorder.CBorderType type)
Set the border line type.
|
void |
setWidth(CUnitValue width)
Set the border width.
|
public CUnitValue width
Defaults to 1 point.
public CBorder.CBorderType type
Defaults to CBorder.CBorderType.SOLID.
public CColor color
Defaults to transparent (0,0,0,0).
public CBorder()
width: 1pttype: CBorder.CBorderType.SOLIDcolor: transparent (0,0,0,0)public CBorder(CUnitValue width, CBorder.CBorderType type, CColor color)
width - Border width as CUnitValue.type - Border line type.color - Border color.public CBorder(float width)
public CUnitValue getWidth()
CUnitValue. Never null in normal usage.public void setWidth(CUnitValue width)
width - Border width as a CUnitValue (e.g. points, percent if supported).public CBorder.CBorderType getType()
CBorder.CBorderType (solid/dashed/dotted/double).public void setType(CBorder.CBorderType type)
type - Border line type to use.