public abstract class AbstractArc extends RectangularShape implements IArc
IArc
, obtaining only the frame and other metrics
from the derived class.Constructor and Description |
---|
AbstractArc() |
Modifier and Type | Method and Description |
---|---|
Rectangle |
bounds(Rectangle target)
Initializes the supplied rectangle with this shape's bounding rectangle.
|
Arc |
clone()
Returns a mutable copy of this arc.
|
boolean |
contains(double px,
double py)
Returns true if this shape contains the specified point.
|
boolean |
contains(double rx,
double ry,
double rw,
double rh)
Returns true if this shape completely contains the specified rectangle.
|
boolean |
containsAngle(double angle)
Returns whether the specified angle is within the angular extents of this arc.
|
Point |
endPoint()
Returns the intersection of the ray from the center (defined by the starting angle plus the
angular extent of the arc) and the elliptical boundary of the arc.
|
Point |
endPoint(Point target)
Writes the intersection of the ray from the center (defined by the starting angle plus the
angular extent of the arc) and the elliptical boundary of the arc into
target . |
boolean |
intersects(double rx,
double ry,
double rw,
double rh)
Returns true if this shape intersects the specified rectangle.
|
boolean |
isEmpty()
Returns true if this shape encloses no area.
|
PathIterator |
pathIterator(Transform at)
Returns an iterator over the path described by this shape.
|
Point |
startPoint()
Returns the intersection of the ray from the center (defined by the starting angle) and the
elliptical boundary of the arc.
|
Point |
startPoint(Point target)
Writes the intersection of the ray from the center (defined by the starting angle) and the
elliptical boundary of the arc into
target . |
bounds, center, centerX, centerY, contains, contains, frame, frame, intersects, max, maxX, maxY, min, minX, minY, pathIterator, setFrame, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
angleExtent, angleStart, arcType
center, centerX, centerY, frame, frame, height, max, maxX, maxY, min, minX, minY, width, x, y
bounds, contains, contains, intersects, pathIterator
public Point startPoint()
IArc
startPoint
in interface IArc
public Point startPoint(Point target)
IArc
target
.startPoint
in interface IArc
public Point endPoint()
IArc
public Point endPoint(Point target)
IArc
target
.public boolean containsAngle(double angle)
IArc
containsAngle
in interface IArc
public Arc clone()
IArc
public boolean isEmpty()
IShape
isEmpty
in interface IShape
isEmpty
in class RectangularShape
public boolean contains(double px, double py)
IShape
public boolean contains(double rx, double ry, double rw, double rh)
IShape
public boolean intersects(double rx, double ry, double rw, double rh)
IShape
intersects
in interface IShape
public Rectangle bounds(Rectangle target)
IShape
bounds
in interface IShape
bounds
in class RectangularShape
public PathIterator pathIterator(Transform at)
IShape
pathIterator
in interface IShape
at
- if supplied, the points in the path are transformed using this.Copyright © 2017. All rights reserved.