Class MeasurementShapeMovable

java.lang.Object
com.flir.thermalsdk.image.measurements.MeasurementShape
com.flir.thermalsdk.image.measurements.MeasurementShapeMovable
Direct Known Subclasses:
MeasurementCircle, MeasurementLine, MeasurementRectangle, MeasurementSpot

public abstract class MeasurementShapeMovable extends MeasurementShape
A base class for all movable measurement shape tools.
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract void
    moveTo(Point point)
    Moves the shape to the desired position.
    abstract void
    offset(int offsetX, int offsetY)
    Moves the shape by offsetX on X axis and by offsetY on Y axis.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • offset

      public abstract void offset(int offsetX, int offsetY) throws MeasurementException, IllegalArgumentException
      Moves the shape by offsetX on X axis and by offsetY on Y axis.
      Parameters:
      offsetX - an X axis offset by which the shape will be moved
      offsetY - an Y axis offset by which the shape will be moved
      Throws:
      MeasurementException - when the shape is invalid (i.e. removed from measurements collection)
      IllegalArgumentException - when moving to given position causes the shape to be out of image bound (i.e. moving to negative coordinates)
    • moveTo

      public abstract void moveTo(Point point) throws MeasurementException, IllegalArgumentException
      Moves the shape to the desired position.
      Parameters:
      point - A point where the shape should be moved to. If not stated otherwise, the point corresponds to top left corner of the shape.
      Throws:
      MeasurementException - when the shape is invalid (i.e. removed from measurements collection)
      IllegalArgumentException - when moving to given point causes the shape to be out of image bound (i.e. moving to negative coordinates)