public class OhlcDataPoint extends CategoricalDataPointBase
categoricalPlot
desiredSize, isEmpty, isPositive
PROPERTY_CHANGED_MESSAGE, PROPERTY_CHANGING_MESSAGE, trackPropertyChanged, trackPropertyChanging
Constructor and Description |
---|
OhlcDataPoint()
Initializes a new instance of the
OhlcDataPoint class. |
Modifier and Type | Method and Description |
---|---|
double |
getClose()
Gets the close associated with the point.
|
double |
getHigh()
Gets the high associated with the point.
|
double |
getLow()
Gets the low associated with the point.
|
NumericalAxisOhlcPlotInfo |
getNumericalPlot() |
double |
getOpen()
Gets the open associated with the 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.
|
boolean |
isFalling()
Gets a value indicating whether this instance is falling (Bearish).
|
boolean |
isRising()
Gets a value indicating whether this instance is rising (Bullish).
|
void |
setClose(double value)
Sets the close associated with the point.
|
void |
setHigh(double value)
Sets the high associated with the point.
|
void |
setLow(double value)
Sets the low associated with the point.
|
void |
setOpen(double value)
Sets the open associated with the 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, getCenterX, getCenterY, 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 OhlcDataPoint()
OhlcDataPoint
class.public boolean isRising()
public boolean isFalling()
public double getHigh()
public void setHigh(double value)
value
- the new high.public double getLow()
public void setLow(double value)
value
- the new low.public double getOpen()
public void setOpen(double value)
value
- the new open.public double getClose()
public void setClose(double value)
value
- the new close.public NumericalAxisOhlcPlotInfo getNumericalPlot()
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 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.