public class CategoricalDataPoint extends CategoricalDataPointBase
DataPoint
that has a single value property, used by numerical axes.Modifier and Type | Field and Description |
---|---|
static int |
VALUE_PROPERTY_KEY |
categoricalPlot, numericalPlot
desiredSize, isEmpty, isPositive
PROPERTY_CHANGED_MESSAGE, PROPERTY_CHANGING_MESSAGE, trackPropertyChanged, trackPropertyChanging
Constructor and Description |
---|
CategoricalDataPoint()
Initializes a new instance of the
CategoricalDataPoint class. |
Modifier and Type | Method and Description |
---|---|
double |
getCenterX()
Gets the center along the x axis.
|
double |
getCenterY()
Gets the center along the y axis.
|
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 data 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 data point.
|
void |
setValueFromAxis(AxisModel axis,
Object value)
Sets a value by converting it to a plot instance corresponding to the current chart type
and assigns it accordingly to the type of the given axis.
|
getCategory, setCategory
getCenter, getDataItem, getIsSelected, getLabel, setDataItem, setIsSelected, setLabel
applyLayoutRounding, arrange, arrange, chartArea, clearValue, collectionIndex, getLayoutSlot, getNodeState, getParent, getPresenter, index, invalidate, isTreeLoaded, isVisible, load, setIsVisible, setParent, setValue
getTypedValue, getValue, isLocalValue
public CategoricalDataPoint()
CategoricalDataPoint
class.public double getValue()
public void setValue(double value)
value
- the new value for the data point.public void setValueFromAxis(AxisModel axis, Object value)
DataPoint
setValueFromAxis
in class DataPoint
axis
- the axis providing the type of assignment that will occur.value
- the value from which to generate the plot info.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
public double getCenterX()
DataPoint
getCenterX
in class DataPoint
public double getCenterY()
DataPoint
getCenterY
in class DataPoint