public class AngleROI extends AbstractROIShape
| Modifier and Type | Field and Description |
|---|---|
private double |
angle
The angle in degree.
|
private double |
complementaryAngle
The complementary angle in degree.
|
private double |
lengthFirstLeg
The length of the first leg.
|
private double |
lengthSecondLeg
The length of the second leg.
|
private static long |
serialVersionUID
The UID for serialization.
|
SEG_CLOSE, SEG_CUBICTO, SEG_LINETO, SEG_MOVETO, SEG_QUADTO, WIND_EVEN_ODD, WIND_NON_ZERO| Modifier | Constructor and Description |
|---|---|
private |
AngleROI(Area a)
Hidden private constructor.
|
|
AngleROI(Shape s)
A public constructor using a
Shape object. |
| Modifier and Type | Method and Description |
|---|---|
void |
calculateProperties()
Computes and sets the properties of this shape.
|
static AngleROI |
create(Point2D start,
Point2D apex,
Point2D end)
Constructs an angle ROI for a triple of
Point2D objects. |
double |
getAngle() |
Point2D |
getApex()
Gets the 2D coordinates of the apex.
|
double |
getComplementaryAngle() |
double |
getLengthFirstLeg() |
double |
getLengthSecondLeg() |
void |
setAngle(double angle) |
void |
setComplementaryAngle(double complementaryAngle) |
void |
setLengthFirstLeg(double lengthFirstLeg) |
void |
setLengthSecondLeg(double lengthSecondLeg) |
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, transformprivate static final long serialVersionUID
private double lengthFirstLeg
private double lengthSecondLeg
private double angle
private double complementaryAngle
private AngleROI(Area a)
a - public static AngleROI create(Point2D start, Point2D apex, Point2D end)
Point2D objects.p1 - start pointp2 - apexp3 - end pointAngleROI with angle and leg length propertiespublic double getLengthFirstLeg()
public void setLengthFirstLeg(double lengthFirstLeg)
lengthFirstLeg - the lengthFirstLeg to setpublic double getLengthSecondLeg()
public void setLengthSecondLeg(double lengthSecondLeg)
lengthSecondLeg - the lengthSecondLeg to setpublic double getAngle()
public void setAngle(double angle)
angle - the angle to setpublic double getComplementaryAngle()
public void setComplementaryAngle(double complementaryAngle)
complementaryAngle - the complementaryAngle to setpublic void calculateProperties()
public Point2D getApex()
Copyright © 2009–2017 Helmut Ahammer, Philipp Kainz. All rights reserved.