Class Plot2DBarFX

  • All Implemented Interfaces:
    Plot

    public class Plot2DBarFX
    extends java.lang.Object
    implements Plot
    Small convenient wrapper for Java FX line plot.
    Author:
    Christian Fries
    • Constructor Detail

      • Plot2DBarFX

        public Plot2DBarFX​(java.util.List<PlotableCategories> plotables,
                           java.lang.String title,
                           java.lang.String xAxisLabel,
                           java.lang.String yAxisLabel,
                           java.text.NumberFormat yAxisNumberFormat,
                           java.lang.Double yAxisLowerBound,
                           java.lang.Double yAxisUpperBound,
                           java.lang.Double yAxisTick,
                           java.lang.Boolean isLegendVisible)
      • Plot2DBarFX

        public Plot2DBarFX()
    • Method Detail

      • of

        public static Plot2DBarFX of​(java.lang.String[] labels,
                                     double[] values,
                                     java.lang.String title,
                                     java.lang.String xAxisLabel,
                                     java.lang.String yAxisLabel,
                                     java.text.NumberFormat yAxisNumberFormat,
                                     boolean isLegendVisible)
      • get

        public javafx.scene.chart.Chart get()
      • show

        public void show()
        Specified by:
        show in interface Plot
      • saveAsJPG

        public void saveAsJPG​(java.io.File file,
                              int width,
                              int height)
                       throws java.io.IOException
        Specified by:
        saveAsJPG in interface Plot
        Throws:
        java.io.IOException
      • saveAsPNG

        public void saveAsPNG​(java.io.File file,
                              int width,
                              int height)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • saveAsPDF

        public void saveAsPDF​(java.io.File file,
                              int width,
                              int height)
                       throws java.io.IOException
        Specified by:
        saveAsPDF in interface Plot
        Throws:
        java.io.IOException
      • saveAsSVG

        public void saveAsSVG​(java.io.File file,
                              int width,
                              int height)
                       throws java.io.IOException
        Specified by:
        saveAsSVG in interface Plot
        Throws:
        java.io.IOException
      • setYAxisRange

        public Plot2DBarFX setYAxisRange​(java.lang.Double min,
                                         java.lang.Double max)
      • setZAxisLabel

        public Plot setZAxisLabel​(java.lang.String zAxisLabel)
        Specified by:
        setZAxisLabel in interface Plot
      • setIsLegendVisible

        public Plot setIsLegendVisible​(java.lang.Boolean isLegendVisible)
        Specified by:
        setIsLegendVisible in interface Plot
        Parameters:
        isLegendVisible - the isLegendVisible to set
      • setIsSeriesStacked

        public void setIsSeriesStacked​(java.lang.Boolean isSeriesStacked)