@Immutable @MustImplementEqualsAndHashcode public class BorderStyleSpec extends Object
| Modifier and Type | Field and Description |
|---|---|
static Color |
DEFAULT_COLOR
The default border color: black
|
static LineDashPatternSpec |
DEFAULT_LINE_DASH_PATTERN
The default border style: solid
|
static float |
DEFAULT_LINE_WIDTH
Use the default line width if unspecified
|
static BorderStyleSpec |
EMPTY |
| Constructor and Description |
|---|
BorderStyleSpec() |
BorderStyleSpec(Color aColor) |
BorderStyleSpec(Color aColor,
float fLineWidth) |
BorderStyleSpec(Color aColor,
LineDashPatternSpec aLineDashPattern) |
BorderStyleSpec(Color aColor,
LineDashPatternSpec aLineDashPattern,
float fLineWidth) |
BorderStyleSpec(float fLineWidth) |
BorderStyleSpec(LineDashPatternSpec aLineDashPattern) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
BorderStyleSpec |
getCloneWithColor(Color aNewColor) |
BorderStyleSpec |
getCloneWithLineDashPattern(LineDashPatternSpec aNewLineDashPattern) |
BorderStyleSpec |
getCloneWithLineWidth(float fNewLineWidth) |
Color |
getColor() |
LineDashPatternSpec |
getLineDashPattern() |
float |
getLineWidth() |
int |
hashCode() |
boolean |
isDefault() |
String |
toString() |
public static final Color DEFAULT_COLOR
public static final LineDashPatternSpec DEFAULT_LINE_DASH_PATTERN
public static final float DEFAULT_LINE_WIDTH
public static final BorderStyleSpec EMPTY
public BorderStyleSpec()
public BorderStyleSpec(@Nonnull LineDashPatternSpec aLineDashPattern)
public BorderStyleSpec(float fLineWidth)
public BorderStyleSpec(@Nonnull Color aColor, @Nonnull LineDashPatternSpec aLineDashPattern)
public BorderStyleSpec(@Nonnull Color aColor, @Nonnull LineDashPatternSpec aLineDashPattern, @Nonnegative float fLineWidth)
@Nonnull public LineDashPatternSpec getLineDashPattern()
null.@Nonnegative public float getLineWidth()
public boolean isDefault()
true if all values are set to default,
false otherwise.@Nonnull public BorderStyleSpec getCloneWithColor(@Nonnull Color aNewColor)
@Nonnull public BorderStyleSpec getCloneWithLineDashPattern(@Nonnull LineDashPatternSpec aNewLineDashPattern)
@Nonnull public BorderStyleSpec getCloneWithLineWidth(float fNewLineWidth)
Copyright © 2014–2016 Philip Helger. All rights reserved.