Class IndicatorLineStyle
java.lang.Object
velox.api.layer1.messages.indicators.IndicatorLineStyle
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
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IndicatorLineStyleSimilar to most lines in Bookmapfinal shortMask for the main line style.final shortMultiplier for the main line style.final intMain line width.static final IndicatorLineStyleNo line.final shortMask for the right line style.final shortMultiplier for the right line style.final intRight line width.static final IndicatorLineStyleShort dashes of the same style both to the left and to the right of timelinestatic final IndicatorLineStyleMostly a demo to show how to configure more complex style. -
Constructor Summary
ConstructorsConstructorDescriptionCreates default line style (similar to most lines in Bookmap)IndicatorLineStyle(short mainLineStyleMask, short mainLineStyleMultiplier, int mainLineWidth, short rightLineStyleMask, short rightLineStyleMultiplier, int rightLineWidth) Creates a custom line style. -
Method Summary
-
Field Details
-
DEFAULT
Similar to most lines in Bookmap -
NONE
No line. Use if you want to display icons only -
SHORT_DASHES
Short dashes of the same style both to the left and to the right of timeline -
SHORT_DASHES_WIDE_LEFT_NARROW_RIGHT
Mostly a demo to show how to configure more complex style. -
mainLineStyleMask
public final short mainLineStyleMaskMask for the main line style.see this for more information -
mainLineStyleMultiplier
public final short mainLineStyleMultiplierMultiplier for the main line style.see this for more information -
mainLineWidth
public final int mainLineWidthMain line width.see this for more information -
rightLineStyleMask
public final short rightLineStyleMaskMask for the right line style.see this for more information -
rightLineStyleMultiplier
public final short rightLineStyleMultiplierMultiplier for the right line style.see this for more information -
rightLineWidth
public final int rightLineWidthRight line width.see this for more information
-
-
Constructor Details
-
IndicatorLineStyle
public IndicatorLineStyle()Creates default line style (similar to most lines in Bookmap) -
IndicatorLineStyle
public IndicatorLineStyle(short mainLineStyleMask, short mainLineStyleMultiplier, int mainLineWidth, short rightLineStyleMask, short rightLineStyleMultiplier, int rightLineWidth) Creates a custom line style. See descriptions for individual fieldsand this class documentationfor parameter descriptions.
-