Class ScreenRectangleInfo

java.lang.Object
com.iizigo.term.prop.ScreenRectangleInfo

public class ScreenRectangleInfo extends Object
Screen rectangle info about positions, handles, etc on screen in pixels.
Author:
Christopher Mindus
  • Field Details

    • rectangles

      public Rectangle[] rectangles
      The rectangles.
    • handles

      public final Point[] handles
      Handle positions, handles 0 and 5 are unused. Unallocated handles are null.
  • Constructor Details

    • ScreenRectangleInfo

      public ScreenRectangleInfo()
  • Method Details

    • saveHandle

      public void saveHandle(int handle, int x, int y)
      Saves a handle.
      Parameters:
      handle - The handle index.
      x - X pixel position.
      y - Y pixel position.
    • getHandle

      public int getHandle(int x, int y)
      Gets the handle where the cursor is located for a mouse event.
      Parameters:
      x - X pixel position.
      y - Y pixel position.
      Returns:
      1 to 9 where 5 is inside but not on a handle, 0 (zero) for not inside.