public interface IOhlcChartObject extends IWidgetChartObject
Modifier and Type | Interface and Description |
---|---|
static class |
IOhlcChartObject.CandleInfoParams |
static class |
IOhlcChartObject.OhlcAlignment |
static class |
IOhlcChartObject.PriceAgregatedInfoParams |
static class |
IOhlcChartObject.TickInfoParams |
IChartObject.ATTR_BOOLEAN, IChartObject.ATTR_COLOR, IChartObject.ATTR_DOUBLE, IChartObject.ATTR_INT, IChartObject.ATTR_LONG, IChartObject.ATTR_TEXT
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROPERTY_OHLC_ALIGNMENT
String constant to be used in PropertyChangeListener
|
static java.lang.String |
PROPERTY_OHLC_PARAM_VISIBILITY
String constant to be used in PropertyChangeListener
|
static java.lang.String |
PROPERTY_OHLC_POSX
String constant to be used in PropertyChangeListener
|
static java.lang.String |
PROPERTY_OHLC_POSY
String constant to be used in PropertyChangeListener
|
static java.lang.String |
PROPERTY_OHLC_SHOW_INDICATOR_INFO
String constant to be used in PropertyChangeListener
|
PROPERTY_WIDGET_POSX, PROPERTY_WIDGET_POSY
PROPERTY_BACKGROUND_COLOR, PROPERTY_BACKGROUND_OPACITY
PROPERTY_FONT, PROPERTY_FOREGROUND_ALPHA, PROPERTY_FOREGROUND_COLOR, PROPERTY_POINT_PRICE, PROPERTY_POINT_TIME, PROPERTY_STICKY, PROPERTY_STROKE
Modifier and Type | Method and Description |
---|---|
void |
addUserMessage(java.lang.String message,
java.awt.Color color,
int textAlignment,
boolean bold)
Adds user message.
|
void |
addUserMessage(java.lang.String label,
java.lang.String value,
java.awt.Color color)
Adds user message.
|
void |
clearUserMessages()
Clears all user's custom messages.
|
IOhlcChartObject.OhlcAlignment |
getAlignment()
Returns current alignment mode.
|
java.lang.Enum<?>[] |
getAllInfoParamsByDataType(DataType dataType)
Returns all InfoParams values for specified DataType.
|
<E extends java.lang.Enum<E>> |
getParamVisibility(java.lang.Enum<E> param)
Returns whether parameter is displaying in current OHLC Informer or not.
|
boolean |
getShowIndicatorInfo()
Returns whether indicator values are displaying or not.
|
boolean |
getShowIndicatorNames()
Returns whether indicator names are displaying or not.
|
void |
setAlignment(IOhlcChartObject.OhlcAlignment alignment)
Sets
OhlcAlignment mode for this OHLC Informer. |
<E extends java.lang.Enum<E>> |
setParamVisibility(java.lang.Enum<E> param,
boolean visible)
Setup visibility property for specified parameter.
|
void |
setShowIndicatorInfo(boolean showIndicatorInfo)
Sets property allowing to show indicator values.
|
void |
setShowIndicatorNames(boolean showIndicatorNames)
Sets property allowing to show indicator names.
|
getFont, getPosX, getPosY, getSize, isHeaderVisible, setFont, setHeaderVisible, setPosX, setPosY, setPreferredSize
getFillColor, getFillOpacity, setFillColor, setFillOpacity
isStickToCandlePriceEnabled, isStickToCandleTimeEnabled, move, setPrice, setStickToCandlePriceEnabled, setStickToCandleTimeEnabled, setTime
addPropertyChangeListener, clone, getAttrBoolean, getAttrColor, getAttrDouble, getAttrInt, getAttrLong, getAttrText, getColor, getFinancialInstrument, getInstrument, getKey, getLineStyle, getLineWidth, getOpacity, getPointsCount, getPrice, getPropertyChangeListeners, getStroke, getText, getTextTruncation, getTime, getType, isLabelEnabled, isLabelShown, isLocked, isMenuEnabled, isSticky, isVisibleInWorkspaceTree, removePropertyChangeListener, setAttrBoolean, setAttrColor, setAttrDouble, setAttrInt, setAttrLong, setAttrText, setChartObjectListener, setColor, setFinancialInstrument, setInstrument, setLineStyle, setLineWidth, setLocked, setMenuEnabled, setOpacity, setShowLabel, setSticky, setStroke, setText, setText, setText, setText, setTextTruncation, setTooltip, setVisibleInWorkspaceTree
static final java.lang.String PROPERTY_OHLC_ALIGNMENT
static final java.lang.String PROPERTY_OHLC_PARAM_VISIBILITY
static final java.lang.String PROPERTY_OHLC_POSX
static final java.lang.String PROPERTY_OHLC_POSY
static final java.lang.String PROPERTY_OHLC_SHOW_INDICATOR_INFO
java.lang.Enum<?>[] getAllInfoParamsByDataType(DataType dataType)
dataType
- one of DataType
valuesEnum<?>[]
IOhlcChartObject.OhlcAlignment getAlignment()
OhlcAlignment
value.void setAlignment(IOhlcChartObject.OhlcAlignment alignment)
OhlcAlignment
mode for this OHLC Informer.
Use OhlcAlignment.AUTO
to determine alignment automatically.alignment
- OhlcAlignment
value.<E extends java.lang.Enum<E>> boolean getParamVisibility(java.lang.Enum<E> param)
E
- type of parameterparam
- one of IOhlcChartObject.CandleInfoParams
, IOhlcChartObject.TickInfoParams
or IOhlcChartObject.PriceAgregatedInfoParams
true
if parameter is visible, false
otherwisejava.lang.NullPointerException
- in case of unsupported parameter type<E extends java.lang.Enum<E>> void setParamVisibility(java.lang.Enum<E> param, boolean visible)
E
- type of parameterparam
- one of IOhlcChartObject.CandleInfoParams
, IOhlcChartObject.TickInfoParams
or IOhlcChartObject.PriceAgregatedInfoParams
visible
- true
if parameter should be visible, false
otherwisejava.lang.NullPointerException
- in case of unsupported parameter typeboolean getShowIndicatorInfo()
true
if indicator values are visible, false
otherwisevoid setShowIndicatorInfo(boolean showIndicatorInfo)
showIndicatorInfo
- true
if indicator values should be visible, false
otherwiseboolean getShowIndicatorNames()
true
if indicator names are visible, false
otherwisevoid setShowIndicatorNames(boolean showIndicatorNames)
showIndicatorNames
- true
if indicator names should be visible, false
otherwisevoid clearUserMessages()
void addUserMessage(java.lang.String label, java.lang.String value, java.awt.Color color)
label
- displaying at the leftvalue
- displaying at the rightcolor
- text colorvoid addUserMessage(java.lang.String message, java.awt.Color color, int textAlignment, boolean bold)
message
- message textcolor
- text colortextAlignment
- One of SwingConstants.CENTER, SwingConstants.LEFT or SwingConstants.RIGHT
. Any other value will be replaced with SwingConstants.LEFT by default.bold
- true
if text should be displayed in bold, false
otherwiseCopyright © 2024. All rights reserved.