Class ChartConfiguration
java.lang.Object
org.jppf.ui.monitoring.charts.config.ChartConfiguration
Instances of this class represent the configuration elements used to create and update a chart definition.
- Author:
- Laurent Cohen
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe JFreeChart object.The chartPanel enclosing the chart.The dataset associated with the chart.Fields[]The list of fields charted in this chart.Name of this configuration.Holds non persisted parameters for quick access.intPosition of the chart in its containing panel.intPrecision of the number to display in items and tooltip labels.Determines the type of the chart, ie bar chart, plot chart, pie, etc.Unit to display on item labels or in the legend or title. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.ChartConfiguration(String name, ChartType type, String unit, int precision, Fields[] fields) Create a configuration with the specified parameters.Create a configuration from another configuration (copy constructor). -
Method Summary
Modifier and TypeMethodDescriptionGet a string representation of this chart configuration.toString()
-
Field Details
-
name
Name of this configuration. Must be unique. -
type
Determines the type of the chart, ie bar chart, plot chart, pie, etc. -
unit
Unit to display on item labels or in the legend or title. -
precision
public int precisionPrecision of the number to display in items and tooltip labels. -
fields
The list of fields charted in this chart. -
dataset
The dataset associated with the chart. -
chart
The JFreeChart object. -
chartPanel
The chartPanel enclosing the chart. -
position
public int positionPosition of the chart in its containing panel. -
params
Holds non persisted parameters for quick access.
-
-
Constructor Details
-
ChartConfiguration
public ChartConfiguration()Default constructor. -
ChartConfiguration
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
Create a configuration from another configuration (copy constructor).- Parameters:
cfg- the configuration to copy from.
-
-
Method Details
-
toString
-
toDebugString
Get a string representation of this chart configuration.- Returns:
- a string containing this configuration's name.
- See Also:
-