public abstract class SingleValueDataPoint extends DataPoint
DataPoint
that has a single value property, used by numerical axes.desiredSize, isEmpty, isPositive
PROPERTY_CHANGED_MESSAGE, PROPERTY_CHANGING_MESSAGE, trackPropertyChanged, trackPropertyChanging
Constructor and Description |
---|
SingleValueDataPoint()
Creates a new instance of the
SingleValueDataPoint class. |
Modifier and Type | Method and Description |
---|---|
Object[] |
getTooltipTokens()
Gets the Object that may be displayed for this data point by the widget tooltip.
|
double |
getValue()
Gets the core value associated with the point.
|
Object |
getValueForAxis(AxisModel axis)
Gets value corresponding to the given axis which varies among the different types of axes
and chart implementations.
|
void |
setValue(double value)
Sets the core value associated with the point.
|
getCenter, getCenterX, getCenterY, getDataItem, getIsSelected, getLabel, setDataItem, setIsSelected, setLabel, setValueFromAxis
applyLayoutRounding, arrange, arrange, chartArea, clearValue, collectionIndex, getLayoutSlot, getNodeState, getParent, getPresenter, index, invalidate, isTreeLoaded, isVisible, load, setIsVisible, setParent, setValue
getTypedValue, getValue, isLocalValue
public SingleValueDataPoint()
SingleValueDataPoint
class.public double getValue()
public void setValue(double value)
value
- the new value.public Object getValueForAxis(AxisModel axis)
DataPoint
getValueForAxis
in class DataPoint
axis
- the axis to which the value is associated.public Object[] getTooltipTokens()
DataPoint
getTooltipTokens
in class DataPoint