All Packages Class Hierarchy This Package Previous Next Index
Class java.awt.geom.Arc2D.Float
java.lang.Object
|
+----java.awt.geom.RectangularShape
|
+----java.awt.geom.Arc2D
|
+----java.awt.geom.Arc2D.Float
- public static class Arc2D.Float
- extends Arc2D
An arc specified in float precision,
extent- The angular extent of the arc in degrees.
height- The overall height of the full ellipse (not considering the
angular extents).
start- The starting angle of the arc in degrees.
width- The overall width of the full ellipse (not considering the
angular extents).
x- The x coordinate of the upper left corner of the arc.
y- The y coordinate of the upper left corner of the arc.
Arc2D.Float()
- Constructs a new OPEN arc, initialized to location (0, 0),
size (0, 0), angular extents (start = 0, extent = 0).
Arc2D.Float(float, float, float, float, float, float, int)
- Constructs a new arc, initialized to the specified location,
size, angular extents, and closure type.
Arc2D.Float(int)
- Constructs a new arc, initialized to location (0, 0),
size (0, 0), angular extents (start = 0, extent = 0), and
the specified closure type.
Arc2D.Float(Rectangle2D, float, float, int)
- Constructs a new arc, initialized to the specified location,
size, angular extents, and closure type.
getAngleExtent()
- Returns the arc length (angular extent) of the arc (in degrees).
getAngleStart()
- Returns the starting angle of the arc (in degrees).
getHeight()
- Returns the overall height of the arc in double precision.
getWidth()
- Returns the overall width of the arc in double precision.
getX()
- Returns the X coordinate of the upper left corner of the arc
in double precision.
getY()
- Returns the Y coordinate of the upper left corner of the arc
in double precision.
isEmpty()
- Determines whether the rectangular shape is empty.
makeBounds(double, double, double, double)
- Return the high precision bounding box of the shape.
setAngleExtent(double)
- Sets the angular extent of this arc to the specified double
value (in degrees).
setAngleStart(double)
- Sets the starting angle of this arc to the specified double
value (in degrees).
setArc(double, double, double, double, double, double, int)
- Sets the location, size, angular extents, and closure type of
this arc to the specified double values.
x
public float x
- The x coordinate of the upper left corner of the arc.
y
public float y
- The y coordinate of the upper left corner of the arc.
width
public float width
- The overall width of the full ellipse (not considering the
angular extents).
height
public float height
- The overall height of the full ellipse (not considering the
angular extents).
start
public float start
- The starting angle of the arc in degrees.
extent
public float extent
- The angular extent of the arc in degrees.
Arc2D.Float
public Arc2D.Float()
- Constructs a new OPEN arc, initialized to location (0, 0),
size (0, 0), angular extents (start = 0, extent = 0).
Arc2D.Float
public Arc2D.Float(int type)
- Constructs a new arc, initialized to location (0, 0),
size (0, 0), angular extents (start = 0, extent = 0), and
the specified closure type.
Arc2D.Float
public Arc2D.Float(float x,
float y,
float w,
float h,
float start,
float extent,
int type)
- Constructs a new arc, initialized to the specified location,
size, angular extents, and closure type.
Arc2D.Float
public Arc2D.Float(Rectangle2D ellipseBounds,
float start,
float extent,
int type)
- Constructs a new arc, initialized to the specified location,
size, angular extents, and closure type.
getX
public double getX()
- Returns the X coordinate of the upper left corner of the arc
in double precision.
- Overrides:
- getX in class RectangularShape
getY
public double getY()
- Returns the Y coordinate of the upper left corner of the arc
in double precision.
- Overrides:
- getY in class RectangularShape
getWidth
public double getWidth()
- Returns the overall width of the arc in double precision.
- Overrides:
- getWidth in class RectangularShape
getHeight
public double getHeight()
- Returns the overall height of the arc in double precision.
- Overrides:
- getHeight in class RectangularShape
getAngleStart
public double getAngleStart()
- Returns the starting angle of the arc (in degrees).
- Overrides:
- getAngleStart in class Arc2D
getAngleExtent
public double getAngleExtent()
- Returns the arc length (angular extent) of the arc (in degrees).
- Overrides:
- getAngleExtent in class Arc2D
isEmpty
public boolean isEmpty()
- Determines whether the rectangular shape is empty.
- Overrides:
- isEmpty in class RectangularShape
setArc
public void setArc(double x,
double y,
double w,
double h,
double angSt,
double angExt,
int closure)
- Sets the location, size, angular extents, and closure type of
this arc to the specified double values.
- Overrides:
- setArc in class Arc2D
setAngleStart
public void setAngleStart(double angSt)
- Sets the starting angle of this arc to the specified double
value (in degrees).
- Overrides:
- setAngleStart in class Arc2D
setAngleExtent
public void setAngleExtent(double angExt)
- Sets the angular extent of this arc to the specified double
value (in degrees).
- Overrides:
- setAngleExtent in class Arc2D
makeBounds
public Rectangle2D makeBounds(double x,
double y,
double w,
double h)
- Return the high precision bounding box of the shape.
- Overrides:
- makeBounds in class Arc2D
All Packages Class Hierarchy This Package Previous Next Index
Submit a bug or feature