Class ChartIoHandler
java.lang.Object
org.n52.io.handler.IoHandler<Data<QuantityValue>>
org.n52.io.type.quantity.handler.img.ChartIoHandler
- Direct Known Subclasses:
MultipleChartsRenderer
-
Nested Class Summary
Nested Classes -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionChartIoHandler(IoParameters parameters, IoProcessChain<Data<QuantityValue>> processChain, IoStyleContext context) -
Method Summary
Modifier and TypeMethodDescriptionorg.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<?>>protected DategetStartTime(String timespan) protected StylePropertiesgetTimeseriesStyleFor(String datasetId, String referenceValueDatasetId) org.jfree.chart.plot.XYPlotprotected booleanisBarStyle(StyleProperties properties) protected booleanisLineStyle(StyleProperties properties) voidsetMimeType(Constants.MimeType mimeType) abstract voidMethods inherited from class org.n52.io.handler.IoHandler
getParameters, writeBinary
-
Constructor Details
-
ChartIoHandler
public ChartIoHandler(IoParameters parameters, IoProcessChain<Data<QuantityValue>> processChain, IoStyleContext context)
-
-
Method Details
-
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
-
setMimeType
-
createRangeAxis
-
createRangeLabel
-
formatTitle
-
getMetadataOutputs
-
getDatasetStyleFor
-
getTimeseriesStyleFor
-
isLineStyle
-
isBarStyle
-
getStartTime
-
getEndTime
-