public class Border extends BaseDomainConstant
Modifier and Type | Field and Description |
---|---|
static byte |
BORDER_STYLE_DASHED |
static byte |
BORDER_STYLE_DOTTED |
static byte |
BORDER_STYLE_DOUBLE |
static byte |
BORDER_STYLE_SOLID |
static float |
BORDER_WIDTH_1POINT |
static float |
BORDER_WIDTH_2POINT |
static float |
BORDER_WIDTH_4POINT |
static float |
BORDER_WIDTH_NONE |
static float |
BORDER_WIDTH_THIN |
Constructor and Description |
---|
Border(float width)
This constructor uses "solid line style"
|
Border(float width,
byte lineStyle)
Uses Black as default color
|
Border(float width,
byte lineStyle,
Color color) |
Modifier and Type | Method and Description |
---|---|
static Border |
DASHED() |
static Border |
DOTTED() |
Color |
getColor() |
byte |
getLineStyle() |
float |
getWidth() |
static Border |
NO_BORDER() |
static Border |
PEN_1_POINT() |
static Border |
PEN_2_POINT() |
static Border |
PEN_4_POINT() |
void |
setColor(Color color) |
void |
setLineStyle(byte lineStyle) |
void |
setWidth(float width) |
static Border |
THIN() |
public static byte BORDER_STYLE_SOLID
public static byte BORDER_STYLE_DASHED
public static byte BORDER_STYLE_DOTTED
public static byte BORDER_STYLE_DOUBLE
public static float BORDER_WIDTH_NONE
public static float BORDER_WIDTH_THIN
public static float BORDER_WIDTH_1POINT
public static float BORDER_WIDTH_2POINT
public static float BORDER_WIDTH_4POINT
public Border(float width)
width
- public Border(float width, byte lineStyle)
width
- the width, use #Border.BORDER_WIDTH_XXXX or a float numberlineStyle
- use #Border.BORDER_STYLE_XXXXX for different stylespublic Border(float width, byte lineStyle, Color color)
width
- the width, use #Border.BORDER_WIDTH_XXXX or a float numberlineStyle
- use #Border.BORDER_STYLE_XXXXX for different stylescolor
- the color of the borderpublic static Border NO_BORDER()
public static Border THIN()
public static Border PEN_1_POINT()
public static Border PEN_2_POINT()
public static Border PEN_4_POINT()
public static Border DOTTED()
public static Border DASHED()
public float getWidth()
public void setWidth(float width)
public Color getColor()
public void setColor(Color color)
public byte getLineStyle()
public void setLineStyle(byte lineStyle)
Copyright © 2006–2015 FDV Solutions. All rights reserved.