Class DefaultMeterDataset

java.lang.Object
org.jfree.data.AbstractDataset
org.jfree.data.DefaultMeterDataset
All Implemented Interfaces:
ObjectInputValidation, Serializable, Cloneable, Dataset, MeterDataset, Value, ValueDataset

public class DefaultMeterDataset
extends AbstractDataset
implements MeterDataset, Serializable
Deprecated.
Use ValueDataset instead, this interface mixes data and presentation items.
A default implementation of the MeterDataset interface.
See Also:
Serialized Form
  • Constructor Details

    • DefaultMeterDataset

      public DefaultMeterDataset()
      Deprecated.
      Default constructor.
    • DefaultMeterDataset

      public DefaultMeterDataset​(Number min, Number max, Number value, String units)
      Deprecated.
      Creates a new dataset.
      Parameters:
      min - the minimum value.
      max - the maximum value.
      value - the current value.
      units - the unit description.
    • DefaultMeterDataset

      public DefaultMeterDataset​(Number min, Number max, Number value, String units, Number minCritical, Number maxCritical, Number minWarning, Number maxWarning, Number minNormal, Number maxNormal, int borderType)
      Deprecated.
      Creates a new dataset.
      Parameters:
      min - the lower bound for the overall range.
      max - the upper bound for the overall range.
      value - the current value.
      units - the unit description.
      minCritical - the minimum critical value.
      maxCritical - the maximum critical value.
      minWarning - the minimum warning value.
      maxWarning - the maximum warning value.
      minNormal - the minimum normal value.
      maxNormal - the maximum normal value.
      borderType - the border type.
  • Method Details

    • isValueValid

      public boolean isValueValid()
      Deprecated.
      Returns true if the value is valid, and false otherwise.
      Specified by:
      isValueValid in interface MeterDataset
      Returns:
      A boolean.
    • getValue

      public Number getValue()
      Deprecated.
      Returns the value.
      Specified by:
      getValue in interface Value
      Returns:
      The value.
    • setValue

      public void setValue​(double value)
      Deprecated.
      Sets the value.
      Parameters:
      value - the new value.
    • setValue

      public void setValue​(Number value)
      Deprecated.
      Sets the value for the dataset.
      Parameters:
      value - the new value.
    • getMinimumValue

      public Number getMinimumValue()
      Deprecated.
      Returns the minimum value.
      Specified by:
      getMinimumValue in interface MeterDataset
      Returns:
      The minimum value.
    • getMaximumValue

      public Number getMaximumValue()
      Deprecated.
      Returns the maximum value.
      Specified by:
      getMaximumValue in interface MeterDataset
      Returns:
      The maximum value.
    • getMinimumNormalValue

      public Number getMinimumNormalValue()
      Deprecated.
      Returns the minimum normal value.
      Specified by:
      getMinimumNormalValue in interface MeterDataset
      Returns:
      The minimum normal value.
    • getMaximumNormalValue

      public Number getMaximumNormalValue()
      Deprecated.
      Returns the maximum normal value.
      Specified by:
      getMaximumNormalValue in interface MeterDataset
      Returns:
      The maximum normal value.
    • getMinimumWarningValue

      public Number getMinimumWarningValue()
      Deprecated.
      Returns the minimum warning value.
      Specified by:
      getMinimumWarningValue in interface MeterDataset
      Returns:
      The minimum warning value.
    • getMaximumWarningValue

      public Number getMaximumWarningValue()
      Deprecated.
      Returns the maximum warning value.
      Specified by:
      getMaximumWarningValue in interface MeterDataset
      Returns:
      The maximum warning value.
    • getMinimumCriticalValue

      public Number getMinimumCriticalValue()
      Deprecated.
      Returns the minimum critical value.
      Specified by:
      getMinimumCriticalValue in interface MeterDataset
      Returns:
      The minimum critical value.
    • getMaximumCriticalValue

      public Number getMaximumCriticalValue()
      Deprecated.
      Returns the maximum critical value.
      Specified by:
      getMaximumCriticalValue in interface MeterDataset
      Returns:
      The maximum critical value.
    • setRange

      public void setRange​(Number min, Number max)
      Deprecated.
      Sets the range for the dataset. Registered listeners are notified of the change.
      Parameters:
      min - the new minimum.
      max - the new maximum.
    • setNormalRange

      public void setNormalRange​(Number minNormal, Number maxNormal)
      Deprecated.
      Sets the normal range for the dataset. Registered listeners are notified of the change.
      Parameters:
      minNormal - the new minimum.
      maxNormal - the new maximum.
    • setWarningRange

      public void setWarningRange​(Number minWarning, Number maxWarning)
      Deprecated.
      Sets the warning range for the dataset. Registered listeners are notified of the change.
      Parameters:
      minWarning - the new minimum.
      maxWarning - the new maximum.
    • setCriticalRange

      public void setCriticalRange​(Number minCritical, Number maxCritical)
      Deprecated.
      Sets the critical range for the dataset. Registered listeners are notified of the change.
      Parameters:
      minCritical - the new minimum.
      maxCritical - the new maximum.
    • getUnits

      public String getUnits()
      Deprecated.
      Returns the measurement units for the data.
      Specified by:
      getUnits in interface MeterDataset
      Returns:
      The measurement units.
    • setUnits

      public void setUnits​(String units)
      Deprecated.
      Sets the measurement unit description.
      Parameters:
      units - the new description.
    • getBorderType

      public int getBorderType()
      Deprecated.
      Returns the border type.
      Specified by:
      getBorderType in interface MeterDataset
      Returns:
      The border type.
    • setBorderType

      public void setBorderType​(int borderType)
      Deprecated.
      Sets the border type.
      Parameters:
      borderType - the new border type.