Class JRBaseValueDataset

All Implemented Interfaces:
Serializable, Cloneable, JRChartDataset, JRValueDataset, DatasetRunHolder, JRCloneable, JRElementDataset

public class JRBaseValueDataset extends JRBaseChartDataset implements JRValueDataset
An immutable version of a dataset that generates a single value. A value dataset is suitable for using with charts that show a single value against a potential range, such as meter chart or a thermometer chart.
Author:
Barry Klawans (bklawans@users.sourceforge.net)
See Also:
  • Field Details

    • valueExpression

      protected JRExpression valueExpression
      The expression that returns the single value contained in this dataset.
  • Constructor Details

    • JRBaseValueDataset

      public JRBaseValueDataset(JRChartDataset dataset)
      Construct a new dataset that is a copy of an existing one.
      Parameters:
      dataset - the dataset to copy
    • JRBaseValueDataset

      public JRBaseValueDataset(JRValueDataset dataset, ChartsBaseObjectFactory factory)
      Constructs a new dataset that is a copy of an existing one, and register all of the new dataset's expressions with the specified factory.
      Parameters:
      dataset - the datast to copy
      factory - the factory to register the new dataset's expressions with
  • Method Details