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 String |
PROPERTY_OHLC_ALIGNMENT
String constant to be used in PropertyChangeListener
|
static String |
PROPERTY_OHLC_PARAM_VISIBILITY
String constant to be used in PropertyChangeListener
|
static String |
PROPERTY_OHLC_POSX
String constant to be used in PropertyChangeListener
|
static String |
PROPERTY_OHLC_POSY
String constant to be used in PropertyChangeListener
|
static 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(String message,
Color color,
int textAlignment,
boolean bold)
Adds user message.
|
void |
addUserMessage(String label,
String value,
Color color)
Adds user message.
|
void |
clearUserMessages()
Clears all user's custom messages.
|
IOhlcChartObject.OhlcAlignment |
getAlignment()
Returns current alignment mode.
|
Enum<?>[] |
getAllInfoParamsByDataType(DataType dataType)
Returns all InfoParams values for specified DataType
|
<E extends Enum<E>> |
getParamVisibility(Enum<E> param)
Returns whether parameter is displaying in current OHLC Informer or not.
|
boolean |
getShowIndicatorInfo()
Returns whether indicator values are displaying or not.
|
void |
setAlignment(IOhlcChartObject.OhlcAlignment alignment)
Sets
OhlcAlignment mode for this OHLC Informer. |
<E extends Enum<E>> |
setParamVisibility(Enum<E> param,
boolean visible)
Setup visibility property for specified parameter.
|
void |
setShowIndicatorInfo(boolean showIndicatorInfo)
Sets property allowing to show indicator values.
|
getFont, getPosX, getPosY, getSize, isHeaderVisible, setFont, setHeaderVisible, setPosX, setPosY, setPreferredSize
getFillColor, getFillOpacity, setFillColor, setFillOpacity
isStickToCandleTimeEnabled, move, setPrice, setStickToCandleTimeEnabled, setTime
addPropertyChangeListener, clone, getAttrBoolean, getAttrColor, getAttrDouble, getAttrInt, getAttrLong, getAttrText, getColor, getInstrument, getKey, getLineStyle, getLineWidth, getOpacity, getPointsCount, getPrice, getPropertyChangeListeners, getStroke, getText, getTextTruncation, getTime, getType, isLabelEnabled, isLocked, isMenuEnabled, isSticky, isVisibleInWorkspaceTree, removePropertyChangeListener, setAttrBoolean, setAttrColor, setAttrDouble, setAttrInt, setAttrLong, setAttrText, setChartObjectListener, setColor, setInstrument, setLineStyle, setLineWidth, setLocked, setMenuEnabled, setOpacity, setSticky, setStroke, setText, setText, setText, setText, setTextTruncation, setTooltip, setVisibleInWorkspaceTree
static final String PROPERTY_OHLC_ALIGNMENT
static final String PROPERTY_OHLC_PARAM_VISIBILITY
static final String PROPERTY_OHLC_POSX
static final String PROPERTY_OHLC_POSY
static final String PROPERTY_OHLC_SHOW_INDICATOR_INFO
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 Enum<E>> boolean getParamVisibility(Enum<E> param)
param
- one of IOhlcChartObject.CandleInfoParams
, IOhlcChartObject.TickInfoParams
or IOhlcChartObject.PriceAgregatedInfoParams
NullPointerException
- in case of unsupported parameter type.<E extends Enum<E>> void setParamVisibility(Enum<E> param, boolean visible)
param
- one of IOhlcChartObject.CandleInfoParams
, IOhlcChartObject.TickInfoParams
or IOhlcChartObject.PriceAgregatedInfoParams
NullPointerException
- in case of unsupported parameter type.boolean getShowIndicatorInfo()
void setShowIndicatorInfo(boolean showIndicatorInfo)
showIndicatorInfo
- void clearUserMessages()
void addUserMessage(String label, String value, Color color)
label
- displaying at the leftvalue
- displaying at the rightcolor
- text colorvoid addUserMessage(String message, Color color, int textAlignment, boolean bold)
message
- color
- text colortextAlignment
- One of SwingConstants.CENTER, SwingConstants.LEFT or SwingConstants.RIGHT
. Any other value will be replaced with SwingConstants.LEFT by default.bold
- Copyright © 2016. All rights reserved.