public class Arc extends AbstractArc implements Serializable
Modifier and Type | Field and Description |
---|---|
float |
extent
The angular extent of this arc.
|
float |
height
The height of this arc's framing rectangle.
|
float |
start
The starting angle of this arc.
|
float |
width
The width of this arc's framing rectangle.
|
float |
x
The x-coordinate of this arc's framing rectangle.
|
float |
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(float x,
float y,
float width,
float height,
float start,
float 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,
float start,
float 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 |
---|---|
float |
angleExtent()
Returns the angular extent of this arc.
|
float |
angleStart()
Returns the starting angle of this arc.
|
int |
arcType()
Returns the type of this arc:
IArc.OPEN , etc. |
float |
height()
Returns the height of the framing rectangle.
|
void |
setAngleExtent(float extent)
Sets the angular extent of this arc to the specified value.
|
void |
setAngles(float x1,
float y1,
float x2,
float 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(float 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(float x,
float y,
float width,
float height,
float start,
float 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,
float start,
float 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,
float start,
float extent,
int type)
Sets the location, size, angular extents, and closure type of this arc to the specified
values.
|
void |
setArcByCenter(float x,
float y,
float radius,
float start,
float 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,
float 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(float x,
float y,
float width,
float height)
Sets the location and size of the framing rectangle of this shape to the specified values.
|
float |
width()
Returns the width of the framing rectangle.
|
float |
x()
Returns the x-coordinate of the upper-left corner of the framing rectangle.
|
float |
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 float x
public float y
public float width
public float height
public float start
public float extent
public Arc()
public Arc(int type)
public Arc(float x, float y, float width, float height, float start, float extent, int type)
public Arc(IRectangle bounds, float start, float extent, int type)
public int arcType()
IArc
IArc.OPEN
, etc.public float x()
IRectangularShape
x
in interface IRectangularShape
public float y()
IRectangularShape
y
in interface IRectangularShape
public float width()
IRectangularShape
width
in interface IRectangularShape
public float height()
IRectangularShape
height
in interface IRectangularShape
public float angleStart()
IArc
angleStart
in interface IArc
public float angleExtent()
IArc
angleExtent
in interface IArc
public void setArcType(int type)
public void setAngleStart(float start)
public void setAngleExtent(float extent)
public void setArc(float x, float y, float width, float height, float start, float extent, int type)
public void setArc(XY point, IDimension size, float start, float extent, int type)
public void setArc(IRectangle rect, float start, float extent, int type)
public void setArc(IArc arc)
public void setArcByCenter(float x, float y, float radius, float start, float extent, int type)
public void setArcByTangent(XY p1, XY p2, XY p3, float radius)
public void setAngleStart(XY point)
public void setAngles(float x1, float y1, float x2, float y2)
public void setAngles(XY p1, XY p2)
public void setFrame(float x, float y, float width, float height)
RectangularShape
setFrame
in class RectangularShape
Copyright © 2017. All rights reserved.