Package org.daisy.dotify.api.formatter
Interface RenderingScenario
-
public interface RenderingScenarioProvides a rendering scenario.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublecalculateCost(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).voidrenderScenario(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
-
-