Interface ScreenSpacePainterAdapter
- All Superinterfaces:
ScreenSpacePainter
-
Method Summary
Modifier and TypeMethodDescriptiondefault voiddispose()Painter is no longer needed.default voidonHeatmapActivePixelsWidth(int heatmapActivePixelsWidth) Width of the heatmap area corresponding to data (in pixels) changed.default voidonHeatmapActiveTimeWidth(long heatmapActiveTimeWidth) Width of the heatmap area corresponding to data (in nanoseconds) changed.default voidonHeatmapFullPixelsWidth(int heatmapFullPixelsWidth) Width of the heatmap area (including the part containing no data, in pixels) changed.default voidonHeatmapFullTimeWidth(long heatmapFullTimeWidth) Width of the heatmap area (including the part containing no data, in nanoseconds) changed.default voidonHeatmapPixelsBottom(int heatmapPixelsBottom) Position of bottom edge of heatmap on inside the window changed.default voidonHeatmapPixelsHeight(int heatmapPixelsHeight) Height of the area representing the heatmap (in pixels) changeddefault voidonHeatmapPixelsLeft(int heatmapPixelsLeft) Position of left edge of heatmap on inside the window changed.default voidonHeatmapPriceBottom(long heatmapPriceBottom) Lowest price displayed on heatmap changeddefault voidonHeatmapPriceHeight(long heatmapPriceHeight) Number of levels displayed on heatmap changeddefault voidonHeatmapTimeLeft(long heatmapTimeLeft) Time corresponding to left edge of heatmap changeddefault voidCalled after transmitting actual changes, allows batch processing of changes.default voidCalled after view was moved before transmitting actual changes, allows batch processing of changesdefault voidonRightOfTimelineLeft(int rightOfTimelineLeft) X coordinate of the timeline has changed (in pixels).default voidonRightOfTimelineWidth(int rightOfTimelineWidth) Width of the area to the right of timeline (in pixels) has changed.
-
Method Details
-
onMoveStart
default void onMoveStart()Description copied from interface:ScreenSpacePainterCalled after view was moved before transmitting actual changes, allows batch processing of changes- Specified by:
onMoveStartin interfaceScreenSpacePainter
-
onMoveEnd
default void onMoveEnd()Description copied from interface:ScreenSpacePainterCalled after transmitting actual changes, allows batch processing of changes.- Specified by:
onMoveEndin interfaceScreenSpacePainter
-
onHeatmapTimeLeft
default void onHeatmapTimeLeft(long heatmapTimeLeft) Description copied from interface:ScreenSpacePainterTime corresponding to left edge of heatmap changed- Specified by:
onHeatmapTimeLeftin interfaceScreenSpacePainter- Parameters:
heatmapTimeLeft- new time in nanoseconds
-
onHeatmapActiveTimeWidth
default void onHeatmapActiveTimeWidth(long heatmapActiveTimeWidth) Description copied from interface:ScreenSpacePainterWidth of the heatmap area corresponding to data (in nanoseconds) changed.- Specified by:
onHeatmapActiveTimeWidthin interfaceScreenSpacePainter- Parameters:
heatmapActiveTimeWidth- new width in nanoseconds
-
onHeatmapFullTimeWidth
default void onHeatmapFullTimeWidth(long heatmapFullTimeWidth) Description copied from interface:ScreenSpacePainterWidth of the heatmap area (including the part containing no data, in nanoseconds) changed.- Specified by:
onHeatmapFullTimeWidthin interfaceScreenSpacePainter- Parameters:
heatmapFullTimeWidth- new width in nanoseconds
-
onHeatmapPriceBottom
default void onHeatmapPriceBottom(long heatmapPriceBottom) Description copied from interface:ScreenSpacePainterLowest price displayed on heatmap changed- Specified by:
onHeatmapPriceBottomin interfaceScreenSpacePainter- Parameters:
heatmapPriceBottom- new lowest price as a number of level (multiply byInstrumentInfo.pipsto get human-readable price).
-
onHeatmapPriceHeight
default void onHeatmapPriceHeight(long heatmapPriceHeight) Description copied from interface:ScreenSpacePainterNumber of levels displayed on heatmap changed- Specified by:
onHeatmapPriceHeightin interfaceScreenSpacePainter- Parameters:
heatmapPriceHeight- new number of levels
-
onHeatmapPixelsLeft
default void onHeatmapPixelsLeft(int heatmapPixelsLeft) Description copied from interface:ScreenSpacePainterPosition 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.
- Specified by:
onHeatmapPixelsLeftin interfaceScreenSpacePainter- Parameters:
heatmapPixelsLeft- new x coordinate in pixels
-
onHeatmapActivePixelsWidth
default void onHeatmapActivePixelsWidth(int heatmapActivePixelsWidth) Description copied from interface:ScreenSpacePainterWidth of the heatmap area corresponding to data (in pixels) changed.- Specified by:
onHeatmapActivePixelsWidthin interfaceScreenSpacePainter
-
onHeatmapFullPixelsWidth
default void onHeatmapFullPixelsWidth(int heatmapFullPixelsWidth) Description copied from interface:ScreenSpacePainterWidth of the heatmap area (including the part containing no data, in pixels) changed.- Specified by:
onHeatmapFullPixelsWidthin interfaceScreenSpacePainter- Parameters:
heatmapFullPixelsWidth- new width in pixels
-
onHeatmapPixelsBottom
default void onHeatmapPixelsBottom(int heatmapPixelsBottom) Description copied from interface:ScreenSpacePainterPosition 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.
- Specified by:
onHeatmapPixelsBottomin interfaceScreenSpacePainter- Parameters:
heatmapPixelsBottom- new y coordinate in pixels.
-
onHeatmapPixelsHeight
default void onHeatmapPixelsHeight(int heatmapPixelsHeight) Description copied from interface:ScreenSpacePainterHeight of the area representing the heatmap (in pixels) changed- Specified by:
onHeatmapPixelsHeightin interfaceScreenSpacePainter- Parameters:
heatmapPixelsHeight- new heatmap height in pixels
-
onRightOfTimelineLeft
default void onRightOfTimelineLeft(int rightOfTimelineLeft) Description copied from interface:ScreenSpacePainterX 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.- Specified by:
onRightOfTimelineLeftin interfaceScreenSpacePainter- Parameters:
rightOfTimelineLeft- new x coordinate of timeline in pixels
-
onRightOfTimelineWidth
default void onRightOfTimelineWidth(int rightOfTimelineWidth) Description copied from interface:ScreenSpacePainterWidth of the area to the right of timeline (in pixels) has changed.- Specified by:
onRightOfTimelineWidthin interfaceScreenSpacePainter- Parameters:
rightOfTimelineWidth- new width of the area to the right of timeline
-
dispose
default void dispose()Description copied from interface:ScreenSpacePainterPainter is no longer needed. When this method is called all resources should be disposed (including createdScreenSpaceCanvas).- Specified by:
disposein interfaceScreenSpacePainter
-