Package com.xinapse.multisliceimage.roi
Interface StretchableROI
- All Known Implementing Classes:
ContourROI,CurvedLineROI,HollowROI,IrregularROI,IrregularROIInProgress,OpenSplineROI,RectangularROI,SplineROI
public interface StretchableROI
Interface that stretchable ROIs implement.
-
Method Summary
Modifier and TypeMethodDescriptionReturns a high-precision rectangle (in screen coordinates) that just bounds this ROI.voidmove(double dx, double dy, double stretchX, double stretchY) Moves and stretches an ROI.
-
Method Details
-
move
void move(double dx, double dy, double stretchX, double stretchY) Moves and stretches an ROI. A stretch value is a scaling factor for dimensions in either the horizontal or vertical directions. A stretch of 1.0 means no stretch.- Parameters:
dx- the distance (in mm) to move the centre of theStretchableROIin the horizontal direction.dy- the distance (in mm) to move the centre of theStretchableROIin the vertical direction.stretchX- the stretch in the horizontal direction.stretchY- the stretch in the vertical direction.
-
getDisplayedBounds2D
Rectangle2D getDisplayedBounds2D()Returns a high-precision rectangle (in screen coordinates) that just bounds this ROI.- Returns:
- a
Rectangle2Dthat just bounds this ROI in screen coordinates.
-