public class BorderAttributeBuilder extends Object
| Constructor and Description |
|---|
BorderAttributeBuilder()
A new builder
|
| Modifier and Type | Method and Description |
|---|---|
BorderAttributeBuilder |
borderColor(Color borderColor)
Set the currently set border color.
|
BorderAttributeBuilder |
borderSize(int size)
Sets the current value of border size in pt.
|
BorderAttributeBuilder |
borderSize(Length borderSize)
Sets the current value of border size.
|
BorderAttributeBuilder |
borderStyle(BorderStyle style)
Sets the current border NamedObject.
|
BorderAttribute |
build()
Builds a border style
|
public BorderAttributeBuilder borderColor(Color borderColor)
borderColor - The color in format #rrggbbpublic BorderAttributeBuilder borderSize(int size)
size - The size as int, in ptpublic BorderAttributeBuilder borderSize(Length borderSize)
borderSize - The size as lengthpublic BorderAttributeBuilder borderStyle(BorderStyle style)
style - BorderAttribute.BORDER_SOLID or BorderAttribute.BORDER_DOUBLEpublic BorderAttribute build()
Copyright © 2016–2021. All rights reserved.