| Constructor: |
public Float() {
super(OPEN);
}
Constructs a new OPEN arc, initialized to location (0, 0),
size (0, 0), angular extents (start = 0, extent = 0). |
public Float(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 Float(Rectangle2D ellipseBounds,
float start,
float extent,
int type) {
super(type);
this.x = (float) ellipseBounds.getX();
this.y = (float) ellipseBounds.getY();
this.width = (float) ellipseBounds.getWidth();
this.height = (float) 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 Float(float x,
float y,
float w,
float h,
float start,
float 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$Float Detail: |
public double getAngleExtent() {
return (double) extent;
}
|
public double getAngleStart() {
return (double) start;
}
|
public double getHeight() {
return (double) height;
}
{@inheritDoc}
Note that the arc
partially inscribes
the framing rectangle of this {@code RectangularShape}. |
public double getWidth() {
return (double) width;
}
{@inheritDoc}
Note that the arc
partially inscribes
the framing rectangle of this {@code RectangularShape}. |
public double getX() {
return (double) x;
}
{@inheritDoc}
Note that the arc
partially inscribes
the framing rectangle of this {@code RectangularShape}. |
public double getY() {
return (double) 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.Float((float) x, (float) y,
(float) w, (float) h);
}
|
public void setAngleExtent(double angExt) {
this.extent = (float) angExt;
}
|
public void setAngleStart(double angSt) {
this.start = (float) angSt;
}
|
public void setArc(double x,
double y,
double w,
double h,
double angSt,
double angExt,
int closure) {
this.setArcType(closure);
this.x = (float) x;
this.y = (float) y;
this.width = (float) w;
this.height = (float) h;
this.start = (float) angSt;
this.extent = (float) angExt;
}
|