Package org.jfree.data
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
-
Field Summary
Fields inherited from interface org.jfree.data.MeterDataset
CRITICAL_DATA, FULL_DATA, NORMAL_DATA, WARNING_DATA
-
Constructor Summary
Constructors Constructor Description DefaultMeterDataset()
Deprecated.Default constructor.DefaultMeterDataset(Number min, Number max, Number value, String units)
Deprecated.Creates a new dataset.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. -
Method Summary
Modifier and Type Method Description int
getBorderType()
Deprecated.Returns the border type.Number
getMaximumCriticalValue()
Deprecated.Returns the maximum critical value.Number
getMaximumNormalValue()
Deprecated.Returns the maximum normal value.Number
getMaximumValue()
Deprecated.Returns the maximum value.Number
getMaximumWarningValue()
Deprecated.Returns the maximum warning value.Number
getMinimumCriticalValue()
Deprecated.Returns the minimum critical value.Number
getMinimumNormalValue()
Deprecated.Returns the minimum normal value.Number
getMinimumValue()
Deprecated.Returns the minimum value.Number
getMinimumWarningValue()
Deprecated.Returns the minimum warning value.String
getUnits()
Deprecated.Returns the measurement units for the data.Number
getValue()
Deprecated.Returns the value.boolean
isValueValid()
Deprecated.Returnstrue
if the value is valid, andfalse
otherwise.void
setBorderType(int borderType)
Deprecated.Sets the border type.void
setCriticalRange(Number minCritical, Number maxCritical)
Deprecated.Sets the critical range for the dataset.void
setNormalRange(Number minNormal, Number maxNormal)
Deprecated.Sets the normal range for the dataset.void
setRange(Number min, Number max)
Deprecated.Sets the range for the dataset.void
setUnits(String units)
Deprecated.Sets the measurement unit description.void
setValue(double value)
Deprecated.Sets the value.void
setValue(Number value)
Deprecated.Sets the value for the dataset.void
setWarningRange(Number minWarning, Number maxWarning)
Deprecated.Sets the warning range for the dataset.Methods inherited from class org.jfree.data.AbstractDataset
addChangeListener, clone, getGroup, removeChangeListener, setGroup, validateObject
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jfree.data.Dataset
addChangeListener, getGroup, removeChangeListener, setGroup
-
Constructor Details
-
DefaultMeterDataset
public DefaultMeterDataset()Deprecated.Default constructor. -
DefaultMeterDataset
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.Returnstrue
if the value is valid, andfalse
otherwise.- Specified by:
isValueValid
in interfaceMeterDataset
- Returns:
- A boolean.
-
getValue
Deprecated.Returns the value. -
setValue
public void setValue(double value)Deprecated.Sets the value.- Parameters:
value
- the new value.
-
setValue
Deprecated.Sets the value for the dataset.- Parameters:
value
- the new value.
-
getMinimumValue
Deprecated.Returns the minimum value.- Specified by:
getMinimumValue
in interfaceMeterDataset
- Returns:
- The minimum value.
-
getMaximumValue
Deprecated.Returns the maximum value.- Specified by:
getMaximumValue
in interfaceMeterDataset
- Returns:
- The maximum value.
-
getMinimumNormalValue
Deprecated.Returns the minimum normal value.- Specified by:
getMinimumNormalValue
in interfaceMeterDataset
- Returns:
- The minimum normal value.
-
getMaximumNormalValue
Deprecated.Returns the maximum normal value.- Specified by:
getMaximumNormalValue
in interfaceMeterDataset
- Returns:
- The maximum normal value.
-
getMinimumWarningValue
Deprecated.Returns the minimum warning value.- Specified by:
getMinimumWarningValue
in interfaceMeterDataset
- Returns:
- The minimum warning value.
-
getMaximumWarningValue
Deprecated.Returns the maximum warning value.- Specified by:
getMaximumWarningValue
in interfaceMeterDataset
- Returns:
- The maximum warning value.
-
getMinimumCriticalValue
Deprecated.Returns the minimum critical value.- Specified by:
getMinimumCriticalValue
in interfaceMeterDataset
- Returns:
- The minimum critical value.
-
getMaximumCriticalValue
Deprecated.Returns the maximum critical value.- Specified by:
getMaximumCriticalValue
in interfaceMeterDataset
- Returns:
- The maximum critical value.
-
setRange
Deprecated.Sets the range for the dataset. Registered listeners are notified of the change.- Parameters:
min
- the new minimum.max
- the new maximum.
-
setNormalRange
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
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
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
Deprecated.Returns the measurement units for the data.- Specified by:
getUnits
in interfaceMeterDataset
- Returns:
- The measurement units.
-
setUnits
Deprecated.Sets the measurement unit description.- Parameters:
units
- the new description.
-
getBorderType
public int getBorderType()Deprecated.Returns the border type.- Specified by:
getBorderType
in interfaceMeterDataset
- Returns:
- The border type.
-
setBorderType
public void setBorderType(int borderType)Deprecated.Sets the border type.- Parameters:
borderType
- the new border type.
-