public class EllipseROI extends AbstractROIShape implements AreaEnabledROI
EllipseROI represents an elliptic (or circular) shape 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 |
|---|
EllipseROI(Area a)
A public constructor using an
Area object. |
EllipseROI(Shape s)
A public constructor using a
Shape object. |
| Modifier and Type | Method and Description |
|---|---|
double |
calculateArea()
Calculates the area of this elliptic shape.
|
double |
getArea()
Gets the current area of this elliptic shape.
|
double |
getMajorAxis() |
double |
getMinorAxis() |
double |
getSemiMajorAxis() |
double |
getSemiMinorAxis() |
void |
setArea(double area)
Sets the current area of this elliptic 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 double getArea()
getArea in interface AreaEnabledROIpublic void setArea(double area)
setArea in interface AreaEnabledROIarea - public double calculateArea()
calculateArea in interface AreaEnabledROIpublic double getSemiMajorAxis()
public double getSemiMinorAxis()
public double getMajorAxis()
public double getMinorAxis()
Copyright © 2009–2017 Helmut Ahammer, Philipp Kainz. All rights reserved.