Package org.daisy.dotify.api.formatter
Interface RenderingScenario
-
- All Known Implementing Classes:
XSLTRenderingScenario
public interface RenderingScenario
Provides a rendering scenario.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
calculateCost(Map<String,Double> variables)
Calculates the cost of this scenario with the supplied variables (which might, for example, include the total height of the rendered result).void
renderScenario(FormatterCore formatter)
Renders the scenario into the supplied formatter.
-
-
-
Method Detail
-
renderScenario
void renderScenario(FormatterCore formatter) throws FormatterException
Renders the scenario into the supplied formatter.- Parameters:
formatter
- the formatter to render into- Throws:
FormatterException
- if rendering fails. If this exception is thrown, the supplied formatter may be in an unknown state.
-
calculateCost
double calculateCost(Map<String,Double> variables)
Calculates the cost of this scenario with the supplied variables (which might, for example, include the total height of the rendered result).- Parameters:
variables
- the variables to use when calculating the cost- Returns:
- returns the cost for this scenario
-
-