Class OnlineCalculatable.Marker
java.lang.Object
velox.api.layer1.layers.strategies.interfaces.OnlineCalculatable.Marker
- Enclosing interface:
- OnlineCalculatable
public static class OnlineCalculatable.Marker
extends java.lang.Object
If passed as value it will cause marker to be drawn at that place (currently works only for
Layer1ApiUserMessageModifyIndicator.GraphType.PRIMARY
).-
Field Summary
Fields Modifier and Type Field Description java.awt.image.BufferedImage
icon
Image used as markerint
iconOffsetX
X component of icon offset.int
iconOffsetY
Y component of icon offset.double
markerY
Vertical position of marker (price / pips) -
Constructor Summary
Constructors Constructor Description Marker(double markerY, int iconOffsetX, int iconOffsetY, java.awt.image.BufferedImage icon)
Creates new marker -
Method Summary
Modifier and Type Method Description java.lang.String
toString()
-
Field Details
-
markerY
public final double markerYVertical position of marker (price / pips) -
iconOffsetX
public final int iconOffsetXX component of icon offset. This allows you to position marker accordingly to it's content (e.g. right arrow will probably have this field equal to icon width -
iconOffsetY
public final int iconOffsetYY component of icon offset. This allows you to position marker accordingly to it's content (e.g. down arrow will probably have this field equal to icon height -
icon
public final java.awt.image.BufferedImage iconImage used as marker
-
-
Constructor Details
-
Marker
public Marker(double markerY, int iconOffsetX, int iconOffsetY, java.awt.image.BufferedImage icon)Creates new marker- Parameters:
markerY
- value formarkerY
iconOffsetX
- value foriconOffsetX
iconOffsetY
- value foriconOffsetY
icon
- value foricon
. Icon will be cloned.
-
-
Method Details
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-