Class Charts

java.lang.Object
com.amalgamasimulation.charts.swt.Charts

public abstract class Charts extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static BarChart
    bar(org.eclipse.swt.widgets.Composite parent)
    Constructs a Bar Chart with a set of default parameters: no title, stack BarsLayout, etc.
    static BarChart
    bar(org.eclipse.swt.widgets.Composite parent, BarsLayout barsLayout)
    Constructs a Bar Chart with a set of default parameters: no title, stack BarsLayout, etc.
    gantt(org.eclipse.swt.widgets.Composite parent)
    Constructs a Gantt Chart with a set of default parameters: no title, dailytime units, begin displayed range is equals to 7 days, bar height fraction is equal to 1.
    gantt(org.eclipse.swt.widgets.Composite parent, ChronoUnit timeUnit)
    Constructs a Gantt Chart with given chrono unit and a set of default parameters:no title, begin displayed range is equals to 7 days, bar height fraction is equal to 1.
    heatmap(org.eclipse.swt.widgets.Composite parent)
    Constructs a Heatmap Chart with no title.
    histogram(org.eclipse.swt.widgets.Composite parent)
    Constructs a Histogram Chart with a set of default parameters: no title, stack BarsLayout, etc.
    line(org.eclipse.swt.widgets.Composite parent)
    Constructs a Line Chart with given time units and a set of default parameters: no title, begin displayed range is equals to 7 days.
    line(org.eclipse.swt.widgets.Composite parent, ChronoUnit timeUnit)
    Constructs a Line Chart with given title and time units.
    lineNumeric(org.eclipse.swt.widgets.Composite parent)
    Constructs a Line Chart with a set of default parameters: no title, default begin displayed range size etc.
    static void
    syncCharts(Chart<?,?> chart, com.amalgamasimulation.desktop.utils.MessageManager messageManager, BooleanSupplier syncSupplier, BiConsumer<Double,Double> onPeriodChangeHandler, String adjustSimulationPlotsMessage, String setVerticalGuideMessage, String hideVerticalGuideMessage)
     
    static void
    syncCharts(Chart<?,?> chart, com.amalgamasimulation.desktop.utils.MessageManager messageManager, Supplier<Boolean> syncSupplier, BiConsumer<Double,Double> onPeriodChangeHandler, String adjustSimulationPlotsMessage, String setVerticalGuideMessage, String hideVerticalGuideMessage)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Charts

      public Charts()
  • Method Details

    • gantt

      public static TimeGanttChart gantt(org.eclipse.swt.widgets.Composite parent)
      Constructs a Gantt Chart with a set of default parameters: no title, dailytime units, begin displayed range is equals to 7 days, bar height fraction is equal to 1.

      Parameters:
      parent - the Composite on which the chart is placed
      Returns:
      a new Gantt Chart with a set of default parameters
    • heatmap

      public static HeatmapChart heatmap(org.eclipse.swt.widgets.Composite parent)
      Constructs a Heatmap Chart with no title.

      Parameters:
      parent - the Composite on which the chart is placed
      Returns:
      a new Heatmap Chart with no title
    • gantt

      public static TimeGanttChart gantt(org.eclipse.swt.widgets.Composite parent, ChronoUnit timeUnit)
      Constructs a Gantt Chart with given chrono unit and a set of default parameters:no title, begin displayed range is equals to 7 days, bar height fraction is equal to 1.

      Parameters:
      parent - the Composite on which the chart is placed
      timeUnit - chart horizontal axis time units
      Returns:
      a new Gantt Chart with given chrono unit and a set of default parameters
    • line

      public static TimeLineChart line(org.eclipse.swt.widgets.Composite parent, ChronoUnit timeUnit)
      Constructs a Line Chart with given title and time units. Begin displayed range is equals to 7 days and title is not set.

      Parameters:
      parent - the Composite on which the chart is placed
      timeUnit - chart horizontal axis time units
      Returns:
      a new Line Chart with given title and time units
    • line

      public static TimeLineChart line(org.eclipse.swt.widgets.Composite parent)
      Constructs a Line Chart with given time units and a set of default parameters: no title, begin displayed range is equals to 7 days.

      Parameters:
      parent - the Composite on which the chart is placed
      Returns:
      a new Line Chart with given time units and a set of default parameters
    • lineNumeric

      public static NumericLineChart lineNumeric(org.eclipse.swt.widgets.Composite parent)
      Constructs a Line Chart with a set of default parameters: no title, default begin displayed range size etc.

      Parameters:
      parent - the Composite on which the chart is placed
      Returns:
      a new Line Chart with a set of default parameters
    • bar

      public static BarChart bar(org.eclipse.swt.widgets.Composite parent)
      Constructs a Bar Chart with a set of default parameters: no title, stack BarsLayout, etc.

      Parameters:
      parent - the Composite on which the chart is placed
      Returns:
      a new Bar Chart with a set of default parameters
    • bar

      public static BarChart bar(org.eclipse.swt.widgets.Composite parent, BarsLayout barsLayout)
      Constructs a Bar Chart with a set of default parameters: no title, stack BarsLayout, etc.

      Parameters:
      parent - the Composite on which the chart is placed
      barsLayout - a type of arranging different categories within different Bar Chart data-elements
      Returns:
      a new Bar Chart with a set of default parameters
    • histogram

      public static HistogramChart histogram(org.eclipse.swt.widgets.Composite parent)
      Constructs a Histogram Chart with a set of default parameters: no title, stack BarsLayout, etc.

      Parameters:
      parent - the Composite on which the chart is placed
      Returns:
      a Histogram Chart with a set of default parameters
    • syncCharts

      public static void syncCharts(Chart<?,?> chart, com.amalgamasimulation.desktop.utils.MessageManager messageManager, Supplier<Boolean> syncSupplier, BiConsumer<Double,Double> onPeriodChangeHandler, String adjustSimulationPlotsMessage, String setVerticalGuideMessage, String hideVerticalGuideMessage)
    • syncCharts

      public static void syncCharts(Chart<?,?> chart, com.amalgamasimulation.desktop.utils.MessageManager messageManager, BooleanSupplier syncSupplier, BiConsumer<Double,Double> onPeriodChangeHandler, String adjustSimulationPlotsMessage, String setVerticalGuideMessage, String hideVerticalGuideMessage)