ScreenSpacePainterAdapter
source_file: ScreenSpacePainterAdapter.html package: velox.api.layer1.layers.strategies.interfaces classes: ScreenSpacePainterAdapter methods: onMoveStart, onMoveEnd, onHeatmapTimeLeft, onHeatmapActiveTimeWidth, onHeatmapFullTimeWidth, onHeatmapPriceBottom, onHeatmapPriceHeight, onHeatmapPixelsLeft, onHeatmapActivePixelsWidth, onHeatmapFullPixelsWidth, onHeatmapPixelsBottom, onHeatmapPixelsHeight, onRightOfTimelineLeft, onRightOfTimelineWidth, dispose extends: ** ScreenSpacePainter​
ScreenSpacePainterAdapter
Package: velox.api.layer1.layers.strategies.interfaces
Type: Interface
All Superinterfaces: ScreenSpacePainter
Methods​
onMoveStart​
default void onMoveStart()
Called after view was moved before transmitting actual changes, allows batch processing of changes
onMoveEnd​
default void onMoveEnd()
Called after transmitting actual changes, allows batch processing of changes.
onHeatmapTimeLeft​
default void onHeatmapTimeLeft(long heatmapTimeLeft)
Time corresponding to left edge of heatmap changed
Parameters:
heatmapTimeLeft- New time in nanoseconds
onHeatmapActiveTimeWidth​
default void onHeatmapActiveTimeWidth(long heatmapActiveTimeWidth)
Width of the heatmap area corresponding to data (in nanoseconds) changed.
Parameters:
heatmapActiveTimeWidth- New width in nanoseconds
onHeatmapFullTimeWidth​
default void onHeatmapFullTimeWidth(long heatmapFullTimeWidth)
Width of the heatmap area (including the part containing no data, in nanoseconds) changed.
Parameters:
heatmapFullTimeWidth- New width in nanoseconds
onHeatmapPriceBottom​
default void onHeatmapPriceBottom(long heatmapPriceBottom)
Lowest price displayed on heatmap changed
Parameters:
heatmapPriceBottom- New lowest price as a number of level (multiply byInstrumentInfo.pipsto get human-readable price).
onHeatmapPriceHeight​
default void onHeatmapPriceHeight(long heatmapPriceHeight)
Number of levels displayed on heatmap changed
Parameters:
heatmapPriceHeight- New number of levels
onHeatmapPixelsLeft​
default void onHeatmapPixelsLeft(int heatmapPixelsLeft)
Position of left edge of heatmap on inside the window changed.
In the current version of Screen Space Painter API this method is useless for 3-rd party addons.
Parameters:
heatmapPixelsLeft- New x coordinate in pixels
onHeatmapActivePixelsWidth​
default void onHeatmapActivePixelsWidth(int heatmapActivePixelsWidth)
Width of the heatmap area corresponding to data (in pixels) changed.
Parameters:
heatmapActivePixelsWidth-
onHeatmapFullPixelsWidth​
default void onHeatmapFullPixelsWidth(int heatmapFullPixelsWidth)
Width of the heatmap area (including the part containing no data, in pixels) changed.
Parameters:
heatmapFullPixelsWidth- New width in pixels
onHeatmapPixelsBottom​
default void onHeatmapPixelsBottom(int heatmapPixelsBottom)
Position of bottom edge of heatmap on inside the window changed. Y coordinate increases when going up (same direction as price increase).
In the current version of Screen Space Painter API this method is useless for 3-d party addons.
Parameters:
heatmapPixelsBottom- New y coordinate in pixels.
onHeatmapPixelsHeight​
default void onHeatmapPixelsHeight(int heatmapPixelsHeight)
Height of the area representing the heatmap (in pixels) changed
Parameters:
heatmapPixelsHeight- New heatmap height in pixels
onRightOfTimelineLeft​
default void onRightOfTimelineLeft(int rightOfTimelineLeft)
X coordinate of the timeline has changed (in pixels). Note, that in drag mode when timeline is not visible it's considered to be in the leftmost pixel of heatmap.
Parameters:
rightOfTimelineLeft- New x coordinate of timeline in pixels
onRightOfTimelineWidth​
default void onRightOfTimelineWidth(int rightOfTimelineWidth)
Width of the area to the right of timeline (in pixels) has changed.
Parameters:
rightOfTimelineWidth- New width of the area to the right of timeline
dispose​
default void dispose()
Painter is no longer needed. When this method is called all resources should be disposed (including created ScreenSpaceCanvas).