Package org.daisy.dotify.api.translator
Class BorderSpecification.Builder
- java.lang.Object
-
- org.daisy.dotify.api.translator.BorderSpecification.Builder
-
- Enclosing class:
- BorderSpecification
public static class BorderSpecification.Builder extends Object
Provides a builder for a border specification.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Creates a new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BorderSpecification.Builder
align(BorderSpecification.Align value)
Sets the border alignment.BorderSpecification
build()
Creates a new border specification.BorderSpecification
build(BorderSpecification fallback)
Creates a new border specification with the supplied fallback border.BorderSpecification.Builder
style(BorderSpecification.Style value)
Sets the border style.BorderSpecification.Builder
width(Integer value)
Sets the width of the border.
-
-
-
Method Detail
-
style
public BorderSpecification.Builder style(BorderSpecification.Style value)
Sets the border style.- Parameters:
value
- the border style- Returns:
- returns this builder
-
align
public BorderSpecification.Builder align(BorderSpecification.Align value)
Sets the border alignment.- Parameters:
value
- the border alignment- Returns:
- returns this builder
-
width
public BorderSpecification.Builder width(Integer value)
Sets the width of the border.- Parameters:
value
- the border width- Returns:
- returns this builder
-
build
public BorderSpecification build()
Creates a new border specification.- Returns:
- returns a new border specification
-
build
public BorderSpecification build(BorderSpecification fallback)
Creates a new border specification with the supplied fallback border.- Parameters:
fallback
- the fallback border specification- Returns:
- returns a new border specification
-
-