Class ChartIoHandler
- java.lang.Object
-
- org.n52.io.handler.IoHandler<Data<QuantityValue>>
-
- org.n52.io.type.quantity.handler.img.ChartIoHandler
-
- Direct Known Subclasses:
MultipleChartsRenderer
public abstract class ChartIoHandler extends IoHandler<Data<QuantityValue>>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classChartIoHandler.LabelConstants
-
Constructor Summary
Constructors Constructor Description ChartIoHandler(IoParameters parameters, IoProcessChain<Data<QuantityValue>> processChain, IoStyleContext context)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.jfree.chart.axis.ValueAxiscreateRangeAxis(DatasetOutput<?> metadata)protected StringcreateRangeLabel(DatasetOutput<?> output)voidencodeAndWriteTo(DataCollection<Data<QuantityValue>> data, OutputStream stream)Encodes and writes previously generated output to the given stream.protected StringformatTitle(DatasetOutput<?> metadata, String title)protected StylePropertiesgetDatasetStyleFor(String datasetId)protected DategetEndTime(String timespan)protected List<? extends DatasetOutput<?>>getMetadataOutputs()IoStyleContextgetRenderingContext()protected DategetStartTime(String timespan)protected StylePropertiesgetTimeseriesStyleFor(String datasetId, String referenceValueDatasetId)org.jfree.chart.plot.XYPlotgetXYPlot()protected booleanisBarStyle(StyleProperties properties)protected booleanisLineStyle(StyleProperties properties)voidsetMimeType(Constants.MimeType mimeType)abstract voidwriteDataToChart(DataCollection<Data<QuantityValue>> data)-
Methods inherited from class org.n52.io.handler.IoHandler
getParameters, writeBinary
-
-
-
-
Constructor Detail
-
ChartIoHandler
public ChartIoHandler(IoParameters parameters, IoProcessChain<Data<QuantityValue>> processChain, IoStyleContext context)
-
-
Method Detail
-
writeDataToChart
public abstract void writeDataToChart(DataCollection<Data<QuantityValue>> data) throws IoParseException
- Throws:
IoParseException
-
encodeAndWriteTo
public void encodeAndWriteTo(DataCollection<Data<QuantityValue>> data, OutputStream stream) throws IoParseException
Description copied from class:IoHandlerEncodes and writes previously generated output to the given stream.- Specified by:
encodeAndWriteToin classIoHandler<Data<QuantityValue>>- Parameters:
data- the input data collection to create an output for.stream- the stream to write on the generated ouput.- Throws:
IoParseException
-
getXYPlot
public org.jfree.chart.plot.XYPlot getXYPlot()
-
getRenderingContext
public IoStyleContext getRenderingContext()
-
setMimeType
public void setMimeType(Constants.MimeType mimeType)
-
createRangeAxis
public org.jfree.chart.axis.ValueAxis createRangeAxis(DatasetOutput<?> metadata)
-
createRangeLabel
protected String createRangeLabel(DatasetOutput<?> output)
-
formatTitle
protected String formatTitle(DatasetOutput<?> metadata, String title)
-
getMetadataOutputs
protected List<? extends DatasetOutput<?>> getMetadataOutputs()
-
getDatasetStyleFor
protected StyleProperties getDatasetStyleFor(String datasetId)
-
getTimeseriesStyleFor
protected StyleProperties getTimeseriesStyleFor(String datasetId, String referenceValueDatasetId)
-
isLineStyle
protected boolean isLineStyle(StyleProperties properties)
-
isBarStyle
protected boolean isBarStyle(StyleProperties properties)
-
-