Class ROIArea
java.lang.Object
java.awt.geom.Area
com.xinapse.multisliceimage.roi.ROIArea
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDefault method getBounds2D() is over-ridden because it is not guaranteed to return the minimum bounding rectangle when Areas have been intersected with other areas.doubleReturns the area of the region bounded by this ROIArea.toString()Methods inherited from class Area
add, clone, contains, contains, contains, contains, createTransformedArea, equals, exclusiveOr, getBounds, getPathIterator, getPathIterator, intersect, intersects, intersects, isEmpty, isPolygonal, isRectangular, isSingular, reset, subtract, transform
-
Constructor Details
-
ROIArea
public ROIArea()Creates a new emptyROIArea -
ROIArea
-
-
Method Details
-
getSquareArea
Returns the area of the region bounded by this ROIArea.- Returns:
- the area of the region bounded by this ROIArea.
- Throws:
ROIException- if the ROIArea is invalid.
-
getBounds2D
Default method getBounds2D() is over-ridden because it is not guaranteed to return the minimum bounding rectangle when Areas have been intersected with other areas. For example is a Rectangle2D is intersected with another shape, getBounds2D() always returns the bounds of the original rectangle.- Specified by:
getBounds2Din interfaceShape- Overrides:
getBounds2Din classArea
-
toString
-