Package org.daisy.dotify.api.translator
Class Border.Builder.BuilderView
- java.lang.Object
-
- org.daisy.dotify.api.translator.Border.Builder.BuilderView
-
- Enclosing class:
- Border.Builder
public class Border.Builder.BuilderView extends Object
Provides a view of the builder that has a specific edge selected for configuration.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Border.Builder.BuilderView
align(BorderSpecification.Align value)
Sets the border alignment for the active edge.Border
build()
Creates a new border using the current state of the builderBorder.Builder.BuilderView
getBottom()
Gets the bottom edge view of the builder.Border.Builder.BuilderView
getDefault()
Gets the default edge view of the builder.Border.Builder.BuilderView
getLeft()
Gets the left edge view of the builder.Border.Builder.BuilderView
getRight()
Gets the right edge view of the builder.Border.Builder.BuilderView
getTop()
Gets the top edge view of the builder.Border.Builder.BuilderView
style(BorderSpecification.Style value)
Sets the border style for the active edge.Border.Builder.BuilderView
width(Integer value)
Sets the border width for the active edge.
-
-
-
Method Detail
-
getTop
public Border.Builder.BuilderView getTop()
Gets the top edge view of the builder.- Returns:
- returns the top edge view for configuration
-
getLeft
public Border.Builder.BuilderView getLeft()
Gets the left edge view of the builder.- Returns:
- returns the left edge view for configuration
-
getRight
public Border.Builder.BuilderView getRight()
Gets the right edge view of the builder.- Returns:
- returns the right edge view for configuration
-
getBottom
public Border.Builder.BuilderView getBottom()
Gets the bottom edge view of the builder.- Returns:
- returns the bottom edge view for configuration
-
getDefault
public Border.Builder.BuilderView getDefault()
Gets the default edge view of the builder. The default edge is used whenever a named edge hasn't been configured.- Returns:
- returns the default edge view for configuration
-
style
public Border.Builder.BuilderView style(BorderSpecification.Style value)
Sets the border style for the active edge.- Parameters:
value
- the style- Returns:
- returns this builder view
-
align
public Border.Builder.BuilderView align(BorderSpecification.Align value)
Sets the border alignment for the active edge.- Parameters:
value
- the alignment- Returns:
- returns this builder view
-
width
public Border.Builder.BuilderView width(Integer value)
Sets the border width for the active edge.- Parameters:
value
- the width- Returns:
- returns this builder view
-
build
public Border build()
Creates a new border using the current state of the builder- Returns:
- returns a new border
-
-