Class XSLTRenderingScenario
- java.lang.Object
-
- org.daisy.dotify.formatter.impl.obfl.XSLTRenderingScenario
-
- All Implemented Interfaces:
RenderingScenario
public class XSLTRenderingScenario extends Object implements RenderingScenario
TODO: Write java doc.
-
-
Constructor Summary
Constructors Constructor Description XSLTRenderingScenario(ObflParserImpl parser, Transformer t, Node node, TextProperties tp, Expression ev, String exp)
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Constructor Detail
-
XSLTRenderingScenario
public XSLTRenderingScenario(ObflParserImpl parser, Transformer t, Node node, TextProperties tp, Expression ev, String exp)
-
-
Method Detail
-
renderScenario
public void renderScenario(FormatterCore formatter) throws FormatterException
Description copied from interface:RenderingScenario
Renders the scenario into the supplied formatter.- Specified by:
renderScenario
in interfaceRenderingScenario
- 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
public double calculateCost(Map<String,Double> variables)
Description copied from interface:RenderingScenario
Calculates the cost of this scenario with the supplied variables (which might, for example, include the total height of the rendered result).- Specified by:
calculateCost
in interfaceRenderingScenario
- Parameters:
variables
- the variables to use when calculating the cost- Returns:
- returns the cost for this scenario
-
-