Interface RenderingScenario

  • All Known Implementing Classes:
    XSLTRenderingScenario

    public interface RenderingScenario
    Provides a rendering scenario.
    • 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