Class BuilderUtils

java.lang.Object
com.jfcbuilder.builders.BuilderUtils

public abstract class BuilderUtils extends Object
Utility methods for common logic within the framework.
  • Constructor Details

    • BuilderUtils

      public BuilderUtils()
  • Method Details

    • getDefaultNumberFormat

      public static NumberFormat getDefaultNumberFormat()
      Factory method for getting new instances of the default axis number format.
      Returns:
      New instance of the default NumberFormat that can be used throughout the application
    • createYAxis

      public static org.jfree.chart.axis.NumberAxis createYAxis(XYTimeSeriesPlotBuilderElements elements)
      Helper method for creating and initializing a y-axis object.
      Parameters:
      elements - Various settings used to initialize the y-axis object
      Returns:
      The new y-axis instance
    • createPlot

      public static org.jfree.chart.plot.XYPlot createPlot(org.jfree.chart.axis.ValueAxis xAxis, org.jfree.chart.axis.NumberAxis yAxis, org.jfree.data.xy.XYDataset dataset, org.jfree.chart.renderer.xy.XYItemRenderer renderer, XYTimeSeriesPlotBuilderElements elements)
      Helper method to create and initialize an XYPlot.
      Parameters:
      xAxis - The x-axis to be used with the plot
      yAxis - The y-axis to be used with the plot
      dataset - An XYDataset to be plotted
      renderer - The renderer used to plot the dataset
      elements - Various settings used to initialize the plot object
      Returns:
      The new XYPlot instance