Class Line

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

public class Line extends Object
Represents a line as a coordinate and orientation pair.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Defines a line orientation in 2D environment.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final int
    For horizontal line the coordinate will be Y position, for vertical line the coordinate will be X position.
    The line orientation in 2D environment.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Line(int coordinate, Line.LineOrientation orientation)
    Create a Line.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
     

    Methods inherited from class java.lang.Object

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

    • coordinate

      public final int coordinate
      For horizontal line the coordinate will be Y position, for vertical line the coordinate will be X position.
    • orientation

      public final Line.LineOrientation orientation
      The line orientation in 2D environment.
  • Constructor Details

    • Line

      public Line(int coordinate, Line.LineOrientation orientation)
      Create a Line.
      Parameters:
      coordinate - For horizontal line the coordinate will be Y position, for vertical line the coordinate will be X position.
      orientation - The line orientation in 2D environment.
      Throws:
      IllegalArgumentException - if any of the values would create an invalid line, i.e. negative coordinate
  • Method Details