Package org.daisy.dotify.api.formatter
Class MarkerIndicatorRegion.Builder
- java.lang.Object
-
- org.daisy.dotify.api.formatter.MarkerIndicatorRegion.Builder
-
- Enclosing class:
- MarkerIndicatorRegion
public static class MarkerIndicatorRegion.Builder extends Object
Creates a new marker indicator region builder
-
-
Constructor Summary
Constructors Constructor Description Builder(int width)
Creates a new builder with the specified width.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MarkerIndicatorRegion.Builder
addIndicator(String name, String indicator)
Adds a new marker indicator.MarkerIndicatorRegion
build()
Builds the builder into a marker indicator region.
-
-
-
Method Detail
-
addIndicator
public MarkerIndicatorRegion.Builder addIndicator(String name, String indicator)
Adds a new marker indicator.- Parameters:
name
- the name of the markers to indicateindicator
- the string indicating an occurrence- Returns:
- a new builder
- Throws:
IllegalStateException
- if the builder has already transitioned to the built state
-
build
public MarkerIndicatorRegion build()
Builds the builder into a marker indicator region.- Returns:
- returns a new marker indicator region
- Throws:
IllegalStateException
- if the builder has already transitioned to the built state
-
-