Class Rectangle

java.lang.Object
com.flir.thermalsdk.image.Rectangle

public class Rectangle extends Object
Defines a Rectangle. Default coordinates are 0,0,0,0.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final int
    The height of the Rectangle.
    final int
    The width of the Rectangle.
    final int
    The X coordinate of the left side of the Rectangle.
    final int
    The Y coordinate of the top of the Rectangle.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Rectangle(int x, int y, int width, int height)
    Create a Rectangle.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
     

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • x

      public final int x
      The X coordinate of the left side of the Rectangle.
    • y

      public final int y
      The Y coordinate of the top of the Rectangle.
    • width

      public final int width
      The width of the Rectangle.
    • height

      public final int height
      The height of the Rectangle.
  • Constructor Details

    • Rectangle

      public Rectangle(int x, int y, int width, int height)
      Create a Rectangle.
      Parameters:
      x - The X coordinate of the left side of the Rectangle
      y - The Y coordinate of the top of the Rectangle
      width - The width of the Rectangle
      height - The height of the Rectangle
      Throws:
      IllegalArgumentException - if any of the values would create an invalid rectangle, i.e. negative width/height
  • Method Details