Package org.daisy.dotify.api.translator
Interface TextBorderFactory
-
public interface TextBorderFactoryProvides a factory for text borders.
-
-
Field Summary
Fields Modifier and Type Field Description static StringFEATURE_MODEMode feature.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectgetFeature(String key)Gets the value for the specified feature key.TextBorderStylenewTextBorderStyle()Creates a new TextBorderStyle based on the current features.voidsetFeature(String key, Object value)Sets a feature.
-
-
-
Field Detail
-
FEATURE_MODE
static final String FEATURE_MODE
Mode feature. The corresponding value should be a string.- See Also:
- Constant Field Values
-
-
Method Detail
-
setFeature
void setFeature(String key, Object value)
Sets a feature.- Parameters:
key- a feature keyvalue- a feature value
-
getFeature
Object getFeature(String key)
Gets the value for the specified feature key.- Parameters:
key- the feature key- Returns:
- returns the feature value, or null if not defined
-
newTextBorderStyle
TextBorderStyle newTextBorderStyle() throws TextBorderConfigurationException
Creates a new TextBorderStyle based on the current features.- Returns:
- a new TextBorderStyle instance
- Throws:
TextBorderConfigurationException- if no text border could be created based on the currently set features.
-
-