public static final class Layer1ApiUserMessageModifyIndicator.Builder
extends java.lang.Object
Layer1ApiUserMessageModifyIndicator
.Modifier | Constructor and Description |
---|---|
private |
Builder(java.lang.Class<?> strategyClass,
java.lang.String userName) |
|
Builder(Layer1ApiUserMessageModifyIndicator message) |
private java.lang.String ownerClassName
private java.lang.String ownerUserName
private java.lang.String fullName
private java.lang.String userName
private boolean isAdd
private IndicatorColorScheme indicatorColorScheme
private Layer1IndicatorColorInterface colorInterface
private IndicatorLineStyle indicatorLineStyle
private java.awt.Color defaultTooltipBackgrondColor
private java.awt.Color defaultTooltipTextColor
private IndicatorDisplayLogic indicatorDisplayLogic
private java.lang.Double indicatorMinMarginPriceOut
private java.lang.Double indicatorMaxMarginPriceOut
private java.lang.Double minLimitsRange
private BoundsInfo boundsInfo
private Layer1ApiUserMessageModifyIndicator.GraphType graphType
private boolean isSupportWidget
private boolean isShowColorSettings
private boolean isEnableSettingsFromConfigPopup
private OnlineCalculatable onlineCalculatable
private AliasFilter aliasFilter
private WidgetDisplayInfo widgetDisplayInfo
private boolean isWidgetEnabledByDefault
private IndicatorContextMenuInformation indicatorContextMenuInformation
private HorizontalValueLinesInfo horizontalValueLinesInfo
private int graphLayerRenderPriority
private int iconLayerRanderPriotity
public Builder(Layer1ApiUserMessageModifyIndicator message)
private Builder(java.lang.Class<?> strategyClass, java.lang.String userName)
public Layer1ApiUserMessageModifyIndicator.Builder setIsAdd(boolean isAdd)
isAdd
- true if message is adding indicator, false if it's removing indicatorpublic Layer1ApiUserMessageModifyIndicator.Builder setIndicatorColorScheme(IndicatorColorScheme indicatorColorScheme)
indicatorColorScheme
- if not null, indicator colors will be assign according to given color schemepublic Layer1ApiUserMessageModifyIndicator.Builder setColorInterface(Layer1IndicatorColorInterface colorInterface)
colorInterface
- this will be used to set / get colors described by indicatorColorScheme
public Layer1ApiUserMessageModifyIndicator.Builder setIndicatorLineStyle(IndicatorLineStyle indicatorLineStyle)
indicatorLineStyle
- indicator line style, if null default line style will be usedpublic Layer1ApiUserMessageModifyIndicator.Builder setDefaultTooltipBackgrondColor(java.awt.Color defaultTooltipBackgrondColor)
defaultTooltipTextColor
- if user has no settings for this indicator color, this color will be used as default
for drawing text in graph tooltip(background will be of defaultGraphColor)public Layer1ApiUserMessageModifyIndicator.Builder setDefaultTooltipTextColor(java.awt.Color defaultTooltipTextColor)
defaultTooltipTextColor
- if user has no settings for this indicator color, this color will be used as default
for drawing text in graph tooltip(background will be of defaultGraphColor)public Layer1ApiUserMessageModifyIndicator.Builder setIndicatorDisplayLogic(IndicatorDisplayLogic indicatorDisplayLogic)
indicatorDisplayLogic
- can be null, default logic will be applied. If provided logic violates provided
indicatorMinMarginPriceOut
, indicatorMaxMarginPriceOut
or ,
limits will be modified to fit into provided argumentspublic Layer1ApiUserMessageModifyIndicator.Builder setIndicatorMinMarginPriceOut(java.lang.Double indicatorMinMarginPriceOut)
indicatorMinMarginPriceOut
- if not null, indicator's limits will be recalculated when there is
less then that amount of indicator range empty space by either borderpublic Layer1ApiUserMessageModifyIndicator.Builder setIndicatorMaxMarginPriceOut(java.lang.Double indicatorMaxMarginPriceOut)
indicatorMaxMarginPriceOut
- if not null, indicator's limits will be recalculated when there is
more then that amount of indicator range empty space by either borderpublic Layer1ApiUserMessageModifyIndicator.Builder setMinLimitsRange(java.lang.Double minLimitsRange)
minLimitsRange
- if not null, indicator's limits range (max - min value) can't be less then minLimitsRangepublic Layer1ApiUserMessageModifyIndicator.Builder setBoundsInfo(BoundsInfo boundsInfo)
boundsInfo
- minimum and maximum values of widget, or null if they should be determined on fly
can be null to indicate no predetermined boundspublic Layer1ApiUserMessageModifyIndicator.Builder setGraphType(Layer1ApiUserMessageModifyIndicator.GraphType graphType)
graphType
- position of a graph (or NONE). Null will default to NONEpublic Layer1ApiUserMessageModifyIndicator.Builder setIsSupportWidget(boolean isSupportWidget)
isSupportWidget
- true if widget is supported, false if widget is not supportedpublic Layer1ApiUserMessageModifyIndicator.Builder setIsShowColorSettings(boolean isShowColorSettings)
isShowColorSettings
- If true, indicator popup menu (if one exists) will have 'Setting' entry that will open indicator settings dialogLayer1ApiUserMessageModifyIndicator.GraphType.BOTTOM
, settings button will be enabled based on this propertypublic Layer1ApiUserMessageModifyIndicator.Builder setIsEnableSettingsFromConfigPopup(boolean isEnableSettingsFromConfigPopup)
isEnableSettingsFromConfigPopup
- if true, config popup settings icon will open corresponding strategies dialog tabpublic Layer1ApiUserMessageModifyIndicator.Builder setOnlineCalculatable(OnlineCalculatable onlineCalculatable)
onlineCalculatable
- if not null, indicator will be calculated for chart onlinepublic Layer1ApiUserMessageModifyIndicator.Builder setAliasFiler(AliasFilter aliasFiler)
aliasFilter
- if null, indicator will be displayed for all aliases, otherwise only for ones defined by filterpublic Layer1ApiUserMessageModifyIndicator.Builder setWidgetDisplayInfo(WidgetDisplayInfo widgetDisplayInfo)
widgetDisplayInfo
- information about how widget should display valuespublic Layer1ApiUserMessageModifyIndicator.Builder setIsWidgetEnabledByDefault(boolean isWidgetEnabledByDefault)
isWidgetEnabledByDefault
- true if widget should be shown by default when strategy is first added, false otherwisepublic Layer1ApiUserMessageModifyIndicator.Builder setIndicatorContextMenuInformation(IndicatorContextMenuInformation indicatorContextMenuInformation)
indicatorContextMenuInformation
- information about custom context menus entriespublic Layer1ApiUserMessageModifyIndicator.Builder setHorizontalValueLinesInfo(HorizontalValueLinesInfo horizontalValueLinesInfo)
horizontalValueLinesInfo
- information about horizontal linespublic Layer1ApiUserMessageModifyIndicator build()
public Layer1ApiUserMessageModifyIndicator.Builder extendFullName(java.lang.String suffix)
suffix
- suffix to add to full namepublic Layer1ApiUserMessageModifyIndicator.Builder setGraphLayerRenderPriority(int graphLayerRenderPriority)
Layer1ApiUserMessageModifyIndicator.LayerRenderPriority
valuesLayer1ApiUserMessageModifyIndicator.LayerRenderPriority.ABOVE_BBO
graphLayerRenderPriority
- graph layer render prioritypublic Layer1ApiUserMessageModifyIndicator.Builder setGraphLayerRenderPriority(Layer1ApiUserMessageModifyIndicator.LayerRenderPriority graphLayerRenderPriority)
Layer1ApiUserMessageModifyIndicator.LayerRenderPriority
valuesLayer1ApiUserMessageModifyIndicator.LayerRenderPriority.ABOVE_BBO
graphLayerRenderPriority
- graph layer render prioritypublic Layer1ApiUserMessageModifyIndicator.Builder setIconLayerRanderPriotity(int iconLayerRanderPriotity)
Layer1ApiUserMessageModifyIndicator.LayerRenderPriority
valuesLayer1ApiUserMessageModifyIndicator.LayerRenderPriority.TOP
iconLayerRanderPriotity
- icon layer render prioritypublic Layer1ApiUserMessageModifyIndicator.Builder setIconLayerRanderPriotity(Layer1ApiUserMessageModifyIndicator.LayerRenderPriority iconLayerRanderPriotity)
Layer1ApiUserMessageModifyIndicator.LayerRenderPriority
valuesLayer1ApiUserMessageModifyIndicator.LayerRenderPriority.TOP
iconLayerRanderPriotity
- icon layer render priority