com.xinapse.multisliceimage.roi
Interface StretchableROI

All Known Implementing Classes:
ContourROI, CurvedLineROI, HollowROI, IrregularROI, IrregularROIInProgress, RectangularROI

public interface StretchableROI

Interface that stretchable ROIs implement.


Method Summary
 java.awt.geom.Rectangle2D getDisplayedBounds2D()
          Returns a high-precision rectangle (in screen coordinates) that just bounds this ROI.
 void move(double dx, double dy, double stretchX, double stretchY)
          Moves and stretches an ROI.
 

Method Detail

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 the StretchableROI in the horizontal direction.
dy - the distance (in mm) to move the centre of the StretchableROI in the vertical direction.
stretchX - the stretch in the horizontal direction.
stretchY - the stretch in the vertical direction.

getDisplayedBounds2D

java.awt.geom.Rectangle2D getDisplayedBounds2D()
Returns a high-precision rectangle (in screen coordinates) that just bounds this ROI.

Returns:
a java.awt.geom.Rectangle2D that just bounds this ROI in screen coordinates.


Copyright 2006-2011 Xinapse Systems Limited. All Rights Reserved.