Class ChartConfiguration

java.lang.Object
org.jppf.ui.monitoring.charts.config.ChartConfiguration

public class ChartConfiguration extends Object
Instances of this class represent the configuration elements used to create and update a chart definition.
Author:
Laurent Cohen
  • Field Details

    • name

      public String name
      Name of this configuration. Must be unique.
    • type

      public ChartType type
      Determines the type of the chart, ie bar chart, plot chart, pie, etc.
    • unit

      public String unit
      Unit to display on item labels or in the legend or title.
    • precision

      public int precision
      Precision of the number to display in items and tooltip labels.
    • fields

      public Fields[] fields
      The list of fields charted in this chart.
    • dataset

      public Object dataset
      The dataset associated with the chart.
    • chart

      public Object chart
      The JFreeChart object.
    • chartPanel

      public JPanel chartPanel
      The chartPanel enclosing the chart.
    • position

      public int position
      Position of the chart in its containing panel.
    • params

      public final Map<String,Object> params
      Holds non persisted parameters for quick access.
  • Constructor Details

    • ChartConfiguration

      public ChartConfiguration()
      Default constructor.
    • ChartConfiguration

      public ChartConfiguration(String name, ChartType type, String unit, int precision, Fields[] fields)
      Create a configuration with the specified parameters.
      Parameters:
      name - the name of this configuration, must be unique.
      type - determines the type of the chart, ie bar chart, plot chart, pie, etc.
      unit - the unit to display on item labels or in the legend or title.
      precision - the precision of the number to display in items and tooltip labels.
      fields - the list of fields charted in this chart.
    • ChartConfiguration

      public ChartConfiguration(ChartConfiguration cfg)
      Create a configuration from another configuration (copy constructor).
      Parameters:
      cfg - the configuration to copy from.
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toDebugString

      public String toDebugString()
      Get a string representation of this chart configuration.
      Returns:
      a string containing this configuration's name.
      See Also: