Class MeasurementShapeMovable
java.lang.Object
com.flir.thermalsdk.image.measurements.MeasurementShape
com.flir.thermalsdk.image.measurements.MeasurementShapeMovable
- Direct Known Subclasses:
MeasurementCircle,MeasurementLine,MeasurementRectangle,MeasurementSpot
A base class for all movable measurement shape tools.
-
Method Summary
-
Method Details
-
offset
public abstract void offset(int offsetX, int offsetY) throws MeasurementException, IllegalArgumentException Moves the shape byoffsetXon X axis and byoffsetYon Y axis.- Parameters:
offsetX- an X axis offset by which the shape will be movedoffsetY- 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
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)
-