public class RectangleROI extends AbstractROIShape implements AreaEnabledROI
RectangleROI is a 4-corner, 4-edge region of interest, having an
area.| Modifier and Type | Field and Description |
|---|---|
private double |
area
The 2D surface area of this shape.
|
private static long |
serialVersionUID
The UID for serialization.
|
SEG_CLOSE, SEG_CUBICTO, SEG_LINETO, SEG_MOVETO, SEG_QUADTO, WIND_EVEN_ODD, WIND_NON_ZERO| Constructor and Description |
|---|
RectangleROI(Area a)
A public constructor using an
Area object. |
RectangleROI(Shape s)
A public constructor using a
Shape object. |
| Modifier and Type | Method and Description |
|---|---|
double |
calculateArea()
Calculates the area of this rectangular shape.
|
double |
getArea()
Gets the current area of this rectangular shape.
|
void |
setArea(double area)
Sets the current area of this rectangular shape.
|
String |
toString() |
getBoundaryCenter, getEndPoint, getPathIterator, getStartPoint, isClosed, segmentCodeToString, windingRuleToStringadd, contains, contains, contains, contains, contains, contains, contains, contains, exclusiveOr, getAsBitmask, getAsImage, getAsRectangleList, getAsRectangleList, getAsShape, getBounds, getBounds2D, intersect, intersects, intersects, intersects, intersects, subtract, transformgetThreshold, mergeRunLengthList, performImageOp, performImageOp, setThreshold, transformclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBoundsprivate static final long serialVersionUID
private double area
public RectangleROI(Shape s)
Shape object.s - public double getArea()
getArea in interface AreaEnabledROIpublic void setArea(double area)
setArea in interface AreaEnabledROIarea - public double calculateArea()
calculateArea in interface AreaEnabledROICopyright © 2009–2017 Helmut Ahammer, Philipp Kainz. All rights reserved.