Package org.hcl.pdftemplate.freeChart
Class ChartBuilder<Data,XData>
java.lang.Object
org.hcl.pdftemplate.freeChart.ChartBuilder<Data,XData>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddSeries(String seriesName, Color color, one.xingyi.optics.IFold<Data, one.xingyi.tuples.Tuple2<XData, Double>> dataFn) FunctionWithException<Data,org.jfree.chart.JFreeChart> build()FunctionWithException<Data,org.jfree.chart.JFreeChart> build(IMakeJFreeChart makeJFreeChart) static <Data> ChartBuilder<Data,org.jfree.data.time.RegularTimePeriod> forDataChart(FunctionWithException<Data, String> title) renderer(BiFunction<List<SeriesDefn<Data, XData>>, org.jfree.data.xy.XYDataset, org.jfree.chart.renderer.xy.XYLineAndShapeRenderer> renderer) seriesStrokeWidth(Float seriesStrokeWidth) showLegend(boolean showLegend) showXLines(boolean showXLines) showYLines(boolean showYLines) subTitle(FunctionWithException<Data, String> subTitle) xAxis(FunctionWithException<Data, org.jfree.chart.axis.ValueAxis> xAxis) yAxis(FunctionWithException<Data, org.jfree.chart.axis.ValueAxis> yAxis)
-
Constructor Details
-
ChartBuilder
public ChartBuilder()
-
-
Method Details
-
forDataChart
public static <Data> ChartBuilder<Data,org.jfree.data.time.RegularTimePeriod> forDataChart(FunctionWithException<Data, String> title) -
subTitle
-
xAxis
public ChartBuilder<Data,XData> xAxis(FunctionWithException<Data, org.jfree.chart.axis.ValueAxis> xAxis) -
yAxis
public ChartBuilder<Data,XData> yAxis(FunctionWithException<Data, org.jfree.chart.axis.ValueAxis> yAxis) -
renderer
public ChartBuilder<Data,XData> renderer(BiFunction<List<SeriesDefn<Data, XData>>, org.jfree.data.xy.XYDataset, org.jfree.chart.renderer.xy.XYLineAndShapeRenderer> renderer) -
showXLines
-
showYLines
-
showLegend
-
seriesStrokeWidth
-
addSeries
-
build
-
buildDefn
-
build
-