Package org.daisy.dotify.api.translator
Class TextBorderStyle.Builder
- java.lang.Object
-
- org.daisy.dotify.api.translator.TextBorderStyle.Builder
-
- Enclosing class:
- TextBorderStyle
public static class TextBorderStyle.Builder extends Object
Provides a builder for text borders.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Creates a new text border style builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextBorderStyle.Builder
bottomBorder(String pattern)
Sets the bottom of the border.TextBorderStyle.Builder
bottomLeftCorner(String pattern)
Sets the bottom left corner.TextBorderStyle.Builder
bottomRightCorner(String pattern)
Sets the bottom right corner.TextBorderStyle
build()
Creates a new text border style using the current state of the builder.TextBorderStyle.Builder
leftBorder(String pattern)
Sets the left border pattern.TextBorderStyle.Builder
rightBorder(String pattern)
Sets the right border pattern.TextBorderStyle.Builder
topBorder(String pattern)
Sets the top of the border.TextBorderStyle.Builder
topLeftCorner(String pattern)
Sets the top left corner for the border.TextBorderStyle.Builder
topRightCorner(String pattern)
Sets the top right corner for the border.
-
-
-
Method Detail
-
topLeftCorner
public TextBorderStyle.Builder topLeftCorner(String pattern)
Sets the top left corner for the border.- Parameters:
pattern
- top left corner pattern- Returns:
- returns this Builder
-
topBorder
public TextBorderStyle.Builder topBorder(String pattern)
Sets the top of the border.- Parameters:
pattern
- the top border pattern- Returns:
- returns this Builder
-
topRightCorner
public TextBorderStyle.Builder topRightCorner(String pattern)
Sets the top right corner for the border.- Parameters:
pattern
- top right corner pattern- Returns:
- returns this Builder
-
leftBorder
public TextBorderStyle.Builder leftBorder(String pattern)
Sets the left border pattern.- Parameters:
pattern
- the left border pattern- Returns:
- returns this Builder
-
rightBorder
public TextBorderStyle.Builder rightBorder(String pattern)
Sets the right border pattern.- Parameters:
pattern
- the right border pattern- Returns:
- returns this Builder
-
bottomLeftCorner
public TextBorderStyle.Builder bottomLeftCorner(String pattern)
Sets the bottom left corner.- Parameters:
pattern
- bottom left corner pattern- Returns:
- returns this Builder
-
bottomBorder
public TextBorderStyle.Builder bottomBorder(String pattern)
Sets the bottom of the border.- Parameters:
pattern
- bottom border pattern- Returns:
- returns this Builder
-
bottomRightCorner
public TextBorderStyle.Builder bottomRightCorner(String pattern)
Sets the bottom right corner.- Parameters:
pattern
- bottom right corner pattern- Returns:
- returns this Builder
-
build
public TextBorderStyle build()
Creates a new text border style using the current state of the builder.- Returns:
- returns a new text border style
-
-