teichmann@5831: package org.dive4elements.river.exports.process; bjoern@4443: bjoern@4443: import org.w3c.dom.Document; bjoern@4443: teichmann@5831: import org.dive4elements.artifactdatabase.state.ArtifactAndFacet; teichmann@5831: import org.dive4elements.river.exports.XYChartGenerator; bjoern@4443: bjoern@4443: /** bjoern@4443: * A processor is intended to generate an output e.g. curve in a chart diagramm from bjoern@4443: * arbitrary data input which can be reused in several generators. bjoern@4443: * bjoern@4443: * @author Björn Ricks bjoern@4443: */ bjoern@4443: public interface Processor { bjoern@4443: bjoern@4443: /** bjoern@4443: * Processes data to generate e.g. a chart. bjoern@4443: * teichmann@4736: * @param generator XYChartGenerator to add output on. bjoern@4443: * @param aandf The artifact and facet bjoern@4443: * @param theme The theme that contains styling information. bjoern@4443: * @param visible The visibility of the curve. bjoern@4443: * @param index The index of the curve bjoern@4443: */ bjoern@4443: public void doOut( bjoern@4443: XYChartGenerator generator, bjoern@4443: ArtifactAndFacet aandf, bjoern@4443: Document theme, bjoern@4443: boolean visible, bjoern@4443: int index); bjoern@4443: bjoern@4443: /** bjoern@4443: * Returns true if the Processor class is able to generate output for a facet type teichmann@4736: * bjoern@4443: * @param facettype Name of the facet type bjoern@4443: * @return true if the facettype can be processed bjoern@4443: */ teichmann@4736: public boolean canHandle(String facettype); bjoern@4443: }