Interface RectangleUpdater

All Superinterfaces:
Context

public interface RectangleUpdater extends Context

The context allowing to inform the application that some rectangular region of some 2D matrix or image has been updated.

For example, if some algorithm prepares an image for drawing, it is a good idea to request this context and, if it is provided, to notify the application about every new ready region of the image. Then application will be able to pass corresponding context to the algorithm and perform drawing ready portions of the image, not waiting for finishing the algorithm.

Author:
Daniel Alievsky
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    updateRectangle(double left, double top, double width, double height)
    Informs that the given rectangular region of some 2D object is updated.

    Methods inherited from interface net.algart.contexts.Context

    as, is
  • Method Details

    • updateRectangle

      void updateRectangle(double left, double top, double width, double height)
      Informs that the given rectangular region of some 2D object is updated.
      Parameters:
      left - the x-coordinate of the top left vertex of the rectangle.
      top - the y-coordinate of the top left vertex of the rectangle.
      width - the width of the rectangle.
      height - the width of the rectangle.