| Constructor: |
public Double() {
super(OPEN);
}
Constructs a new OPEN arc, initialized to location (0, 0),
size (0, 0), angular extents (start = 0, extent = 0). |
public Double(int type) {
super(type);
}
Constructs a new arc, initialized to location (0, 0),
size (0, 0), angular extents (start = 0, extent = 0), and
the specified closure type. Parameters:
type - The closure type for the arc:
#OPEN , #CHORD , or #PIE .
- since:
1.2 -
|
public Double(Rectangle2D ellipseBounds,
double start,
double extent,
int type) {
super(type);
this.x = ellipseBounds.getX();
this.y = ellipseBounds.getY();
this.width = ellipseBounds.getWidth();
this.height = ellipseBounds.getHeight();
this.start = start;
this.extent = extent;
}
Constructs a new arc, initialized to the specified location,
size, angular extents, and closure type. Parameters:
ellipseBounds - The framing rectangle that defines the
outer boundary of the full ellipse of which this arc is a
partial section.
start - The starting angle of the arc in degrees.
extent - The angular extent of the arc in degrees.
type - The closure type for the arc:
#OPEN , #CHORD , or #PIE .
- since:
1.2 -
|
public Double(double x,
double y,
double w,
double h,
double start,
double extent,
int type) {
super(type);
this.x = x;
this.y = y;
this.width = w;
this.height = h;
this.start = start;
this.extent = extent;
}
Constructs a new arc, initialized to the specified location,
size, angular extents, and closure type. Parameters:
x - The X coordinate of the upper-left corner
of the arc's framing rectangle.
y - The Y coordinate of the upper-left corner
of the arc's framing rectangle.
w - The overall width of the full ellipse of which this
arc is a partial section.
h - The overall height of the full ellipse of which this
arc is a partial section.
start - The starting angle of the arc in degrees.
extent - The angular extent of the arc in degrees.
type - The closure type for the arc:
#OPEN , #CHORD , or #PIE .
- since:
1.2 -
|
| Method from java.awt.geom.Arc2D$Double Detail: |
public double getAngleExtent() {
return extent;
}
|
public double getAngleStart() {
return start;
}
|
public double getHeight() {
return height;
}
{@inheritDoc}
Note that the arc
partially inscribes
the framing rectangle of this {@code RectangularShape}. |
public double getWidth() {
return width;
}
{@inheritDoc}
Note that the arc
partially inscribes
the framing rectangle of this {@code RectangularShape}. |
public double getX() {
return x;
}
{@inheritDoc}
Note that the arc
partially inscribes
the framing rectangle of this {@code RectangularShape}. |
public double getY() {
return y;
}
{@inheritDoc}
Note that the arc
partially inscribes
the framing rectangle of this {@code RectangularShape}. |
public boolean isEmpty() {
return (width < = 0.0 || height < = 0.0);
}
|
protected Rectangle2D makeBounds(double x,
double y,
double w,
double h) {
return new Rectangle2D.Double(x, y, w, h);
}
|
public void setAngleExtent(double angExt) {
this.extent = angExt;
}
|
public void setAngleStart(double angSt) {
this.start = angSt;
}
|
public void setArc(double x,
double y,
double w,
double h,
double angSt,
double angExt,
int closure) {
this.setArcType(closure);
this.x = x;
this.y = y;
this.width = w;
this.height = h;
this.start = angSt;
this.extent = angExt;
}
|