Interface Processor
-
- All Known Implementing Classes:
DefaultProcessor,SampleProcessor
public interface Processor- Author:
- Giulio Toffoli (gt78@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONF_HEIGHTstatic StringCONF_PRINT_ELEMENTstatic StringCONF_SERIESstatic StringCONF_WIDTH
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,Object>processConfiguration(Map<String,Object> configuration)Process a set of values, to build the script that will perform the visualization.
-
-
-
Field Detail
-
CONF_WIDTH
static final String CONF_WIDTH
- See Also:
- Constant Field Values
-
CONF_HEIGHT
static final String CONF_HEIGHT
- See Also:
- Constant Field Values
-
CONF_SERIES
static final String CONF_SERIES
- See Also:
- Constant Field Values
-
CONF_PRINT_ELEMENT
static final String CONF_PRINT_ELEMENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
processConfiguration
Map<String,Object> processConfiguration(Map<String,Object> configuration)
Process a set of values, to build the script that will perform the visualization. Why a Map and not a serious object?! Well, to be able to implement this class without having to declare any dependency by JasperReports. Moreover, it is not really required to implement this interface, it is enough that a class provides this method, the component will look for it! Input: a Map with the component, the item properties and the series.
Series are represented as lists of Maps. The Map is the record, and contain the properties set for the series. The result should include at least the "script key. output_html: a string with the main script, optional styles and other things that will be outputkey Type Description Processor.CONF_PRINT_ELEMENT net.sf.jasperreports.engine.fill.JRTemplateGenericPrintElement The print element produced by the fill process Processor.CONF_SERIES Collection a collection of series, which are List of Maps. Processor.CONF_WIDTH Integer the element width Processor.CONF_HEIGHT Integer the element height Processor.CONF_KEY String the element key/id to be used in the HTML - Parameters:
configuration- the Map that will be passed to the velocity Template.- Returns:
- the processing result
-
-