Package org.pepstock.charba.client.items
Class ScaleValueItem
- java.lang.Object
-
- org.pepstock.charba.client.items.ScaleValueItem
-
public final class ScaleValueItem extends Object
This object is wrapping the value retrieved by the scale.
The value could be a double, string or a date.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScaleDataType
getDataType()
Returns the data type of value.String
getLabel()
Returns the label of the value used on the scale.double
getValue()
Returns the value for the scale if it is orUndefined.DOUBLE
.Date
getValueAsDate()
Returns the value for the scale asFloatingData
if it is ornull
.String
getValueAsString()
Returns the value for the scale as string if it is orUndefined.STRING
.
-
-
-
Method Detail
-
getDataType
public ScaleDataType getDataType()
Returns the data type of value.- Returns:
- the data type of value
-
getValue
public double getValue()
Returns the value for the scale if it is orUndefined.DOUBLE
.- Returns:
- the value for the scale if it is or
Undefined.DOUBLE
-
getValueAsDate
public Date getValueAsDate()
Returns the value for the scale asFloatingData
if it is ornull
.- Returns:
- the value for the scale as
FloatingData
if it is ornull
-
getValueAsString
public String getValueAsString()
Returns the value for the scale as string if it is orUndefined.STRING
.- Returns:
- the value for the scale as string if it is or
Undefined.STRING
.
-
getLabel
public String getLabel()
Returns the label of the value used on the scale.- Returns:
- the label of the value used on the scale
-
-