public abstract class DataPoint extends ChartNode
ChartPlotAreaModel
.Modifier and Type | Field and Description |
---|---|
RadSize |
desiredSize
The actual size of the data point.
|
boolean |
isEmpty
States whether the current data point is empty.
|
boolean |
isPositive
States whether the current data point is positive.
|
PROPERTY_CHANGED_MESSAGE, PROPERTY_CHANGING_MESSAGE, trackPropertyChanged, trackPropertyChanging
Modifier and Type | Method and Description |
---|---|
Point |
getCenter()
Gets the center of the data point.
|
double |
getCenterX()
Gets the center along the x axis.
|
double |
getCenterY()
Gets the center along the y axis.
|
Object |
getDataItem()
Gets the Object instance that represents the data associated with this point.
Valid when the owning ChartSeries is data-bound.
|
boolean |
getIsSelected()
Gets a value indicating whether the data point is currently in a "Selected" state.
|
Object |
getLabel()
Gets the label associated with this point.
|
Object[] |
getTooltipTokens()
Gets the Object that may be displayed for this data point by the widget tooltip.
|
Object |
getValueForAxis(AxisModel axis)
Gets value corresponding to the given axis which varies among the different types of axes
and chart implementations.
|
void |
setDataItem(Object value)
Gets the Object instance that represents the data associated with this point.
Valid when the owning ChartSeries is data-bound.
|
void |
setIsSelected(boolean value)
Sets a value indicating whether the data point is currently in a "Selected" state.
|
void |
setLabel(Object value)
Sets the label associated with this 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.
|
applyLayoutRounding, arrange, arrange, chartArea, clearValue, collectionIndex, getLayoutSlot, getNodeState, getParent, getPresenter, index, invalidate, isTreeLoaded, isVisible, load, setIsVisible, setParent, setValue
getTypedValue, getValue, isLocalValue
public boolean isPositive
public boolean isEmpty
public RadSize desiredSize
public Object getLabel()
public void setLabel(Object value)
value
- the new label.public Object getDataItem()
public void setDataItem(Object value)
value
- the new data item.public boolean getIsSelected()
public void setIsSelected(boolean value)
value
- the new state of the point.public Object[] getTooltipTokens()
public Object getValueForAxis(AxisModel axis)
axis
- the axis to which the value is associated.public void setValueFromAxis(AxisModel axis, Object value)
axis
- the axis providing the type of assignment that will occur.value
- the value from which to generate the plot info.public double getCenterX()
public double getCenterY()
public Point getCenter()