Interface ScreenSpacePainterAdapter

All Superinterfaces:
ScreenSpacePainter

public interface ScreenSpacePainterAdapter extends ScreenSpacePainter
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Painter is no longer needed.
    default void
    onHeatmapActivePixelsWidth(int heatmapActivePixelsWidth)
    Width of the heatmap area corresponding to data (in pixels) changed.
    default void
    onHeatmapActiveTimeWidth(long heatmapActiveTimeWidth)
    Width of the heatmap area corresponding to data (in nanoseconds) changed.
    default void
    onHeatmapFullPixelsWidth(int heatmapFullPixelsWidth)
    Width of the heatmap area (including the part containing no data, in pixels) changed.
    default void
    onHeatmapFullTimeWidth(long heatmapFullTimeWidth)
    Width of the heatmap area (including the part containing no data, in nanoseconds) changed.
    default void
    onHeatmapPixelsBottom(int heatmapPixelsBottom)
    Position of bottom edge of heatmap on inside the window changed.
    default void
    onHeatmapPixelsHeight(int heatmapPixelsHeight)
    Height of the area representing the heatmap (in pixels) changed
    default void
    onHeatmapPixelsLeft(int heatmapPixelsLeft)
    Position of left edge of heatmap on inside the window changed.
    default void
    onHeatmapPriceBottom(long heatmapPriceBottom)
    Lowest price displayed on heatmap changed
    default void
    onHeatmapPriceHeight(long heatmapPriceHeight)
    Number of levels displayed on heatmap changed
    default void
    onHeatmapTimeLeft(long heatmapTimeLeft)
    Time corresponding to left edge of heatmap changed
    default void
    Called after transmitting actual changes, allows batch processing of changes.
    default void
    Called after view was moved before transmitting actual changes, allows batch processing of changes
    default void
    onRightOfTimelineLeft(int rightOfTimelineLeft)
    X coordinate of the timeline has changed (in pixels).
    default void
    onRightOfTimelineWidth(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: ScreenSpacePainter
      Called after view was moved before transmitting actual changes, allows batch processing of changes
      Specified by:
      onMoveStart in interface ScreenSpacePainter
    • onMoveEnd

      default void onMoveEnd()
      Description copied from interface: ScreenSpacePainter
      Called after transmitting actual changes, allows batch processing of changes.
      Specified by:
      onMoveEnd in interface ScreenSpacePainter
    • onHeatmapTimeLeft

      default void onHeatmapTimeLeft(long heatmapTimeLeft)
      Description copied from interface: ScreenSpacePainter
      Time corresponding to left edge of heatmap changed
      Specified by:
      onHeatmapTimeLeft in interface ScreenSpacePainter
      Parameters:
      heatmapTimeLeft - new time in nanoseconds
    • onHeatmapActiveTimeWidth

      default void onHeatmapActiveTimeWidth(long heatmapActiveTimeWidth)
      Description copied from interface: ScreenSpacePainter
      Width of the heatmap area corresponding to data (in nanoseconds) changed.
      Specified by:
      onHeatmapActiveTimeWidth in interface ScreenSpacePainter
      Parameters:
      heatmapActiveTimeWidth - new width in nanoseconds
    • onHeatmapFullTimeWidth

      default void onHeatmapFullTimeWidth(long heatmapFullTimeWidth)
      Description copied from interface: ScreenSpacePainter
      Width of the heatmap area (including the part containing no data, in nanoseconds) changed.
      Specified by:
      onHeatmapFullTimeWidth in interface ScreenSpacePainter
      Parameters:
      heatmapFullTimeWidth - new width in nanoseconds
    • onHeatmapPriceBottom

      default void onHeatmapPriceBottom(long heatmapPriceBottom)
      Description copied from interface: ScreenSpacePainter
      Lowest price displayed on heatmap changed
      Specified by:
      onHeatmapPriceBottom in interface ScreenSpacePainter
      Parameters:
      heatmapPriceBottom - new lowest price as a number of level (multiply by InstrumentInfo.pips to get human-readable price).
    • onHeatmapPriceHeight

      default void onHeatmapPriceHeight(long heatmapPriceHeight)
      Description copied from interface: ScreenSpacePainter
      Number of levels displayed on heatmap changed
      Specified by:
      onHeatmapPriceHeight in interface ScreenSpacePainter
      Parameters:
      heatmapPriceHeight - new number of levels
    • onHeatmapPixelsLeft

      default void onHeatmapPixelsLeft(int heatmapPixelsLeft)
      Description copied from interface: ScreenSpacePainter
      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.

      Specified by:
      onHeatmapPixelsLeft in interface ScreenSpacePainter
      Parameters:
      heatmapPixelsLeft - new x coordinate in pixels
    • onHeatmapActivePixelsWidth

      default void onHeatmapActivePixelsWidth(int heatmapActivePixelsWidth)
      Description copied from interface: ScreenSpacePainter
      Width of the heatmap area corresponding to data (in pixels) changed.
      Specified by:
      onHeatmapActivePixelsWidth in interface ScreenSpacePainter
    • onHeatmapFullPixelsWidth

      default void onHeatmapFullPixelsWidth(int heatmapFullPixelsWidth)
      Description copied from interface: ScreenSpacePainter
      Width of the heatmap area (including the part containing no data, in pixels) changed.
      Specified by:
      onHeatmapFullPixelsWidth in interface ScreenSpacePainter
      Parameters:
      heatmapFullPixelsWidth - new width in pixels
    • onHeatmapPixelsBottom

      default void onHeatmapPixelsBottom(int heatmapPixelsBottom)
      Description copied from interface: ScreenSpacePainter
      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.

      Specified by:
      onHeatmapPixelsBottom in interface ScreenSpacePainter
      Parameters:
      heatmapPixelsBottom - new y coordinate in pixels.
    • onHeatmapPixelsHeight

      default void onHeatmapPixelsHeight(int heatmapPixelsHeight)
      Description copied from interface: ScreenSpacePainter
      Height of the area representing the heatmap (in pixels) changed
      Specified by:
      onHeatmapPixelsHeight in interface ScreenSpacePainter
      Parameters:
      heatmapPixelsHeight - new heatmap height in pixels
    • onRightOfTimelineLeft

      default void onRightOfTimelineLeft(int rightOfTimelineLeft)
      Description copied from interface: ScreenSpacePainter
      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.
      Specified by:
      onRightOfTimelineLeft in interface ScreenSpacePainter
      Parameters:
      rightOfTimelineLeft - new x coordinate of timeline in pixels
    • onRightOfTimelineWidth

      default void onRightOfTimelineWidth(int rightOfTimelineWidth)
      Description copied from interface: ScreenSpacePainter
      Width of the area to the right of timeline (in pixels) has changed.
      Specified by:
      onRightOfTimelineWidth in interface ScreenSpacePainter
      Parameters:
      rightOfTimelineWidth - new width of the area to the right of timeline
    • dispose

      default void dispose()
      Description copied from interface: ScreenSpacePainter
      Painter is no longer needed. When this method is called all resources should be disposed (including created ScreenSpaceCanvas).
      Specified by:
      dispose in interface ScreenSpacePainter