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 intgetBorderType()Deprecated.Returns the border type.NumbergetMaximumCriticalValue()Deprecated.Returns the maximum critical value.NumbergetMaximumNormalValue()Deprecated.Returns the maximum normal value.NumbergetMaximumValue()Deprecated.Returns the maximum value.NumbergetMaximumWarningValue()Deprecated.Returns the maximum warning value.NumbergetMinimumCriticalValue()Deprecated.Returns the minimum critical value.NumbergetMinimumNormalValue()Deprecated.Returns the minimum normal value.NumbergetMinimumValue()Deprecated.Returns the minimum value.NumbergetMinimumWarningValue()Deprecated.Returns the minimum warning value.StringgetUnits()Deprecated.Returns the measurement units for the data.NumbergetValue()Deprecated.Returns the value.booleanisValueValid()Deprecated.Returnstrueif the value is valid, andfalseotherwise.voidsetBorderType(int borderType)Deprecated.Sets the border type.voidsetCriticalRange(Number minCritical, Number maxCritical)Deprecated.Sets the critical range for the dataset.voidsetNormalRange(Number minNormal, Number maxNormal)Deprecated.Sets the normal range for the dataset.voidsetRange(Number min, Number max)Deprecated.Sets the range for the dataset.voidsetUnits(String units)Deprecated.Sets the measurement unit description.voidsetValue(double value)Deprecated.Sets the value.voidsetValue(Number value)Deprecated.Sets the value for the dataset.voidsetWarningRange(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, validateObjectMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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.Returnstrueif the value is valid, andfalseotherwise.- Specified by:
isValueValidin 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:
getMinimumValuein interfaceMeterDataset- Returns:
- The minimum value.
-
getMaximumValue
Deprecated.Returns the maximum value.- Specified by:
getMaximumValuein interfaceMeterDataset- Returns:
- The maximum value.
-
getMinimumNormalValue
Deprecated.Returns the minimum normal value.- Specified by:
getMinimumNormalValuein interfaceMeterDataset- Returns:
- The minimum normal value.
-
getMaximumNormalValue
Deprecated.Returns the maximum normal value.- Specified by:
getMaximumNormalValuein interfaceMeterDataset- Returns:
- The maximum normal value.
-
getMinimumWarningValue
Deprecated.Returns the minimum warning value.- Specified by:
getMinimumWarningValuein interfaceMeterDataset- Returns:
- The minimum warning value.
-
getMaximumWarningValue
Deprecated.Returns the maximum warning value.- Specified by:
getMaximumWarningValuein interfaceMeterDataset- Returns:
- The maximum warning value.
-
getMinimumCriticalValue
Deprecated.Returns the minimum critical value.- Specified by:
getMinimumCriticalValuein interfaceMeterDataset- Returns:
- The minimum critical value.
-
getMaximumCriticalValue
Deprecated.Returns the maximum critical value.- Specified by:
getMaximumCriticalValuein 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:
getUnitsin 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:
getBorderTypein interfaceMeterDataset- Returns:
- The border type.
-
setBorderType
public void setBorderType(int borderType)Deprecated.Sets the border type.- Parameters:
borderType- the new border type.
-