java.lang.Object
net.finmath.plots.Plot2DBarFX
- All Implemented Interfaces:
Plot
Small convenient wrapper for Java FX line plot.
- Author:
- Christian Fries
-
Constructor Summary
ConstructorsConstructorDescriptionPlot2DBarFX(List<PlotableCategories> plotables)
Plot2DBarFX(List<PlotableCategories> plotables, String title, String xAxisLabel, String yAxisLabel, NumberFormat yAxisNumberFormat, Double yAxisLowerBound, Double yAxisUpperBound, Double yAxisTick, Boolean isLegendVisible)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
javafx.scene.chart.Chart
get()
static Plot2DBarFX
of(String[] labels, double[] values, String title, String xAxisLabel, String yAxisLabel, NumberFormat yAxisNumberFormat, boolean isLegendVisible)
static Plot2DBarFX
of(String name, String[] labels, double[] values, String title, String xAxisLabel, String yAxisLabel, NumberFormat yAxisNumberFormat, boolean isLegendVisible)
setIsLegendVisible(Boolean isLegendVisible)
void
setIsSeriesStacked(Boolean isSeriesStacked)
setXAxisLabel(String xAxisLabel)
setYAxisLabel(String yAxisLabel)
setYAxisRange(Double min, Double max)
setZAxisLabel(String zAxisLabel)
void
show()
update(List<PlotableCategories> plotables)
-
Constructor Details
-
Plot2DBarFX
public Plot2DBarFX(List<PlotableCategories> plotables, String title, String xAxisLabel, String yAxisLabel, NumberFormat yAxisNumberFormat, Double yAxisLowerBound, Double yAxisUpperBound, Double yAxisTick, Boolean isLegendVisible) -
Plot2DBarFX
-
Plot2DBarFX
public Plot2DBarFX()
-
-
Method Details
-
of
public static Plot2DBarFX of(String name, String[] labels, double[] values, String title, String xAxisLabel, String yAxisLabel, NumberFormat yAxisNumberFormat, boolean isLegendVisible) -
of
public static Plot2DBarFX of(String[] labels, double[] values, String title, String xAxisLabel, String yAxisLabel, NumberFormat yAxisNumberFormat, boolean isLegendVisible) -
get
public javafx.scene.chart.Chart get() -
show
public void show() -
close
public void close() -
saveAsJPG
- Specified by:
saveAsJPG
in interfacePlot
- Throws:
IOException
-
saveAsPNG
- Throws:
IOException
-
saveAsPDF
- Specified by:
saveAsPDF
in interfacePlot
- Throws:
IOException
-
saveAsSVG
- Specified by:
saveAsSVG
in interfacePlot
- Throws:
IOException
-
update
-
setTitle
-
setXAxisLabel
- Specified by:
setXAxisLabel
in interfacePlot
-
setYAxisLabel
- Specified by:
setYAxisLabel
in interfacePlot
-
setYAxisRange
-
setZAxisLabel
- Specified by:
setZAxisLabel
in interfacePlot
-
setIsLegendVisible
- Specified by:
setIsLegendVisible
in interfacePlot
- Parameters:
isLegendVisible
- the isLegendVisible to set
-
setIsSeriesStacked
-