Package velox.api.layer1.simplified
Interface Indicator
- All Known Subinterfaces:
IndicatorModifiable
public interface Indicator
Indicator representing a line.
-
Method Summary
Modifier and Type Method Description voidaddIcon(double value, java.awt.image.BufferedImage icon, int iconCenterX, int iconCenterY)Add icon rendered in a point corresponding to specified valuevoidaddPoint(double value)Set new line Y coordinate in indicator coordinates space.voidsetAxisRules(AxisRules axisRules)Set rules for selecting indicator range.voidsetColor(java.awt.Color color)Set new line color.voidsetLineStyle(LineStyle lineStyle)Set new line style.voidsetRenderPriority(int renderPriority)Essentially controls Z (depth) coordinate of the line.voidsetWidgetRules(WidgetRules widgetRules)voidsetWidth(int width)Set new line width.
-
Method Details
-
addPoint
void addPoint(double value)Set new line Y coordinate in indicator coordinates space.Double.NaNto stop drawing (can be imagined as switching to invisible color)- Parameters:
value- new value
-
addIcon
void addIcon(double value, java.awt.image.BufferedImage icon, int iconCenterX, int iconCenterY)Add icon rendered in a point corresponding to specified value- Parameters:
value- value defining vertical position of an iconicon- the icon itselficonCenterX- x coordinate on the image that will be matched to event timeiconCenterY- y coordinate on the image that will be matched to event price
-
setColor
void setColor(java.awt.Color color)Set new line color. Applied immediately.- Parameters:
color- new line color
-
setWidth
void setWidth(int width)Set new line width. Applied immediately.- Parameters:
width- width in pixels
-
setLineStyle
Set new line style. Applied immediately.- Parameters:
lineStyle- new line style
-
setRenderPriority
void setRenderPriority(int renderPriority)Essentially controls Z (depth) coordinate of the line. Lines with higher values will be "closer" to the screen (on top of the ones with lower values). SeeLayer1ApiUserMessageModifyIndicator.LayerRenderPriorityfor reference values. You should normally specify the position relative to one of the values specified in it.- Parameters:
renderPriority- requested render priority of the layer
-
setAxisRules
Set rules for selecting indicator range. Please keep in mind, that when part ofAxisGroupthis method should not be called directly, instead call correspondingAxisGroup.setAxisRules(AxisRules)- Parameters:
axisRules- object describing the rules
-
setWidgetRules
-