Package org.daisy.dotify.api.formatter
Class MarkerReferenceField
- java.lang.Object
-
- org.daisy.dotify.api.formatter.MarkerReferenceField
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MarkerReferenceField.MarkerSearchDirection
Defines marker search directions.static class
MarkerReferenceField.MarkerSearchScope
Defines marker search scopes.
-
Constructor Summary
Constructors Constructor Description MarkerReferenceField(String markerName, MarkerReferenceField.MarkerSearchDirection dir, MarkerReferenceField.MarkerSearchScope scope)
Creates a new instance with the specified parametersMarkerReferenceField(String markerName, MarkerReferenceField.MarkerSearchDirection dir, MarkerReferenceField.MarkerSearchScope scope, String textStyle)
Creates a new instance with the specified parametersMarkerReferenceField(String markerName, MarkerReferenceField.MarkerSearchDirection dir, MarkerReferenceField.MarkerSearchScope scope, String textStyle, int offset)
Creates a new instance with the specified parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Gets the name of this marker reference fieldint
getOffset()
Gets the page offset where to start the searchMarkerReferenceField.MarkerSearchDirection
getSearchDirection()
Gets the direction of the searchMarkerReferenceField.MarkerSearchScope
getSearchScope()
Gets the scope of the searchString
getTextStyle()
The text style of the field, or null if no special style is used.
-
-
-
Constructor Detail
-
MarkerReferenceField
public MarkerReferenceField(String markerName, MarkerReferenceField.MarkerSearchDirection dir, MarkerReferenceField.MarkerSearchScope scope)
Creates a new instance with the specified parameters- Parameters:
markerName
- the name of the markerdir
- the directionscope
- the scope
-
MarkerReferenceField
public MarkerReferenceField(String markerName, MarkerReferenceField.MarkerSearchDirection dir, MarkerReferenceField.MarkerSearchScope scope, String textStyle)
Creates a new instance with the specified parameters- Parameters:
markerName
- the name of the markerdir
- the directionscope
- the scopetextStyle
- a text style name
-
MarkerReferenceField
public MarkerReferenceField(String markerName, MarkerReferenceField.MarkerSearchDirection dir, MarkerReferenceField.MarkerSearchScope scope, String textStyle, int offset)
Creates a new instance with the specified parameters- Parameters:
markerName
- the name of the markerdir
- the directionscope
- the scopetextStyle
- a text style nameoffset
- offsets the search by the specified amount, in pages
-
-
Method Detail
-
getName
public String getName()
Gets the name of this marker reference field- Returns:
- returns the name
-
getSearchDirection
public MarkerReferenceField.MarkerSearchDirection getSearchDirection()
Gets the direction of the search- Returns:
- returns the search direction
-
getSearchScope
public MarkerReferenceField.MarkerSearchScope getSearchScope()
Gets the scope of the search- Returns:
- returns the search scope
-
getTextStyle
public String getTextStyle()
Description copied from interface:Field
The text style of the field, or null if no special style is used.- Specified by:
getTextStyle
in interfaceField
- Returns:
- the text style
-
getOffset
public int getOffset()
Gets the page offset where to start the search- Returns:
- the page offset
-
-