org.jppf.ui.monitoring.charts.config
Class ChartConfiguration

java.lang.Object
  extended by 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 Summary
 Object chart
          The JFreeChart object.
 JPanel chartPanel
          The chartPanel enclosing the chart.
 Object dataset
          The dataset associated witht the chart.
 Fields[] fields
          The list of fields charted in this chart.
 String name
          Name of this configuration.
 int position
          Position of the chart in its containing panel.
 int precision
          Precision of the number to display in items and tooltip labels.
 ChartType type
          Determines the type of the chart, ie bar chart, plot chart, pie, etc.
 String unit
          Unit to display on item labels or in the legend or title.
 
Constructor Summary
ChartConfiguration()
          Default constructor.
ChartConfiguration(ChartConfiguration cfg)
          Create a configuration from another configuration (copy constructor).
ChartConfiguration(String name, ChartType type, String unit, int precision, Fields[] fields)
          Create a configuration with the specified parameters.
 
Method Summary
 String toString()
          Get a string representation of this chart configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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 witht 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.

Constructor Detail

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 Detail

toString

public String toString()
Get a string representation of this chart configuration.

Overrides:
toString in class Object
Returns:
a string containg this configuration's name.
See Also:
Object.toString()


Copyright © 2005-2010 JPPF Team.