public class Arc extends AbstractArc implements Serializable
Modifier and Type | Field and Description |
---|---|
double |
extent
The angular extent of this arc.
|
double |
height
The height of this arc's framing rectangle.
|
double |
start
The starting angle of this arc.
|
double |
width
The width of this arc's framing rectangle.
|
double |
x
The x-coordinate of this arc's framing rectangle.
|
double |
y
The y-coordinate of this arc's framing rectangle.
|
Constructor and Description |
---|
Arc()
Creates an open arc with frame (0x0+0+0) and zero angles.
|
Arc(double x,
double y,
double width,
double height,
double start,
double extent,
int type)
Creates an arc of the specified type with the specified framing rectangle, starting angle
and angular extent.
|
Arc(int type)
Creates an arc of the specified type with frame (0x0+0+0) and zero angles.
|
Arc(IRectangle bounds,
double start,
double extent,
int type)
Creates an arc of the specified type with the supplied framing rectangle, starting angle and
angular extent.
|
Modifier and Type | Method and Description |
---|---|
double |
angleExtent()
Returns the angular extent of this arc.
|
double |
angleStart()
Returns the starting angle of this arc.
|
int |
arcType()
Returns the type of this arc:
IArc.OPEN , etc. |
double |
height()
Returns the height of the framing rectangle.
|
void |
setAngleExtent(double extent)
Sets the angular extent of this arc to the specified value.
|
void |
setAngles(double x1,
double y1,
double x2,
double y2)
Sets the starting angle and angular extent of this arc using two sets of coordinates.
|
void |
setAngles(XY p1,
XY p2)
Sets the starting angle and angular extent of this arc using two sets of coordinates.
|
void |
setAngleStart(double start)
Sets the starting angle of this arc to the specified value.
|
void |
setAngleStart(XY point)
Sets the starting angle of this arc to the angle defined by the supplied point relative to
the center of this arc.
|
void |
setArc(double x,
double y,
double width,
double height,
double start,
double extent,
int type)
Sets the location, size, angular extents, and closure type of this arc to the specified
values.
|
void |
setArc(IArc arc)
Sets the location, size, angular extents, and closure type of this arc to the same values as
the supplied arc.
|
void |
setArc(IRectangle rect,
double start,
double extent,
int type)
Sets the location, size, angular extents, and closure type of this arc to the specified
values.
|
void |
setArc(XY point,
IDimension size,
double start,
double extent,
int type)
Sets the location, size, angular extents, and closure type of this arc to the specified
values.
|
void |
setArcByCenter(double x,
double y,
double radius,
double start,
double extent,
int type)
Sets the location, size, angular extents, and closure type of this arc based on the
specified values.
|
void |
setArcByTangent(XY p1,
XY p2,
XY p3,
double radius)
Sets the location, size, angular extents, and closure type of this arc based on the
specified values.
|
void |
setArcType(int type)
Sets the type of this arc to the specified value.
|
void |
setFrame(double x,
double y,
double width,
double height)
Sets the location and size of the framing rectangle of this shape to the specified values.
|
double |
width()
Returns the width of the framing rectangle.
|
double |
x()
Returns the x-coordinate of the upper-left corner of the framing rectangle.
|
double |
y()
Returns the y-coordinate of the upper-left corner of the framing rectangle.
|
bounds, clone, contains, contains, containsAngle, endPoint, endPoint, intersects, isEmpty, pathIterator, startPoint, startPoint
bounds, center, centerX, centerY, contains, contains, frame, frame, intersects, max, maxX, maxY, min, minX, minY, pathIterator, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
center, centerX, centerY, frame, frame, max, maxX, maxY, min, minX, minY
bounds, contains, contains, intersects, pathIterator
public double x
public double y
public double width
public double height
public double start
public double extent
public Arc()
public Arc(int type)
public Arc(double x, double y, double width, double height, double start, double extent, int type)
public Arc(IRectangle bounds, double start, double extent, int type)
public int arcType()
IArc
IArc.OPEN
, etc.public double x()
IRectangularShape
x
in interface IRectangularShape
public double y()
IRectangularShape
y
in interface IRectangularShape
public double width()
IRectangularShape
width
in interface IRectangularShape
public double height()
IRectangularShape
height
in interface IRectangularShape
public double angleStart()
IArc
angleStart
in interface IArc
public double angleExtent()
IArc
angleExtent
in interface IArc
public void setArcType(int type)
public void setAngleStart(double start)
public void setAngleExtent(double extent)
public void setArc(double x, double y, double width, double height, double start, double extent, int type)
public void setArc(XY point, IDimension size, double start, double extent, int type)
public void setArc(IRectangle rect, double start, double extent, int type)
public void setArc(IArc arc)
public void setArcByCenter(double x, double y, double radius, double start, double extent, int type)
public void setArcByTangent(XY p1, XY p2, XY p3, double radius)
public void setAngleStart(XY point)
public void setAngles(double x1, double y1, double x2, double y2)
public void setAngles(XY p1, XY p2)
public void setFrame(double x, double y, double width, double height)
RectangularShape
setFrame
in class RectangularShape
Copyright © 2017. All rights reserved.