Class IndicatorLineStyle

java.lang.Object
velox.api.layer1.messages.indicators.IndicatorLineStyle

public class IndicatorLineStyle
extends java.lang.Object

This class allows you to specify how the indicator line will look.

There are two parts: mainLine (3 fields) and rightLine (3 fields). Main line is the part to the left of timeline and rightLine is part to the right.

Each part is described by 3 parts,

  • mask - single short int (2 bytes) where each bit can be 1 (line is present) or 0 (line is not present). e.g. 0xF0F0 (binary 1111000011110000) will make line look like repeated "----    ----    " segments
  • multiplier - scales the mask describing how many pixels each bit represents
  • lineWidth - just a width of the line in pixels