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 classMarkerReferenceField.MarkerSearchDirectionDefines marker search directions.static classMarkerReferenceField.MarkerSearchScopeDefines 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 StringgetName()Gets the name of this marker reference fieldintgetOffset()Gets the page offset where to start the searchMarkerReferenceField.MarkerSearchDirectiongetSearchDirection()Gets the direction of the searchMarkerReferenceField.MarkerSearchScopegetSearchScope()Gets the scope of the searchStringgetTextStyle()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:FieldThe text style of the field, or null if no special style is used.- Specified by:
getTextStylein interfaceField- Returns:
- the text style
-
getOffset
public int getOffset()
Gets the page offset where to start the search- Returns:
- the page offset
-
-