Class: java.awt.geom.Arc2D.Double
- public static class Arc2D.Double
- extends Arc2D
- implements Serializable
This class defines an arc specified in double precision.
Inheritance
Superclass tree:- java.lang.Object
- java.awt.geom.RectangularShape
- java.awt.geom.Arc2D
- java.awt.geom.Arc2D.Double
Methods
-
Arc2D.Doubletop
public Arc2D.Double()Constructs a new OPEN arc, initialized to location (0, 0), size (0, 0), angular extents (start = 0, extent = 0). -
Arc2D.Doubletop
public Arc2D.Double(double x, double y, double w, double h, double start, double extent, int type)Constructs a new arc, initialized to the specified location, size, angular extents, and closure type. -
Arc2D.Doubletop
public Arc2D.Double(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.Doubletop
public Arc2D.Double(Rectangle2D ellipseBounds, double start, double extent, int type)Constructs a new arc, initialized to the specified location, size, angular extents, and closure type. -
getAngleExtenttop
public double getAngleExtent()Returns the angular extent of the arc.- Override hierarchy:
- getAngleExtent from Arc2D
-
getAngleStarttop
public double getAngleStart()Returns the starting angle of the arc.- Override hierarchy:
- getAngleStart from Arc2D
-
getHeighttop
public double getHeight()Returns the height of the framing rectangle indoubleprecision. Note that the arc partially inscribes the framing rectangle of this RectangularShape.- Override hierarchy:
- getHeight from RectangularShape
-
getWidthtop
public double getWidth()Returns the width of the framing rectangle indoubleprecision. Note that the arc partially inscribes the framing rectangle of this RectangularShape.- Override hierarchy:
- getWidth from RectangularShape
-
getXtop
public double getX()Returns the X coordinate of the upper-left corner of the framing rectangle indoubleprecision. Note that the arc partially inscribes the framing rectangle of this RectangularShape.- Override hierarchy:
- getX from RectangularShape
-
getYtop
public double getY()Returns the Y coordinate of the upper-left corner of the framing rectangle indoubleprecision. Note that the arc partially inscribes the framing rectangle of this RectangularShape.- Override hierarchy:
- getY from RectangularShape
-
isEmptytop
public boolean isEmpty()Determines whether theRectangularShapeis empty. When theRectangularShapeis empty, it encloses no area.- Override hierarchy:
- isEmpty from RectangularShape
-
makeBoundstop
protected Rectangle2D makeBounds(double x, double y, double w, double h)Constructs aRectangle2Dof the appropriate precision to hold the parameters calculated to be the framing rectangle of this arc.- Override hierarchy:
- makeBounds from Arc2D
-
readObjecttop
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOExceptionReads the default serializable fields from theObjectInputStreamfollowed by a byte indicating the arc type of thisArc2Dinstance. -
setAngleExtenttop
public void setAngleExtent(double angExt)Sets the angular extent of this arc to the specified double value.- Override hierarchy:
- setAngleExtent from Arc2D
-
setAngleStarttop
public void setAngleStart(double angSt)Sets the starting angle of this arc to the specified double value.- Override hierarchy:
- setAngleStart from Arc2D
-
setArctop
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. -
writeObjecttop
private void writeObject(ObjectOutputStream s) throws IOExceptionWrites the default serializable fields to theObjectOutputStreamfollowed by a byte indicating the arc type of thisArc2Dinstance.
Fields
-
extent
public double extentThe angular extent of the arc in degrees. -
height
public double heightThe overall height of the full ellipse of which this arc is a partial section (not considering the angular extents). -
serialVersionUID
static final private long serialVersionUID = 728264085846882001 -
start
public double startThe starting angle of the arc in degrees. -
width
public double widthThe overall width of the full ellipse of which this arc is a partial section (not considering the angular extents). -
x
public double xThe X coordinate of the upper-left corner of the framing rectangle of the arc. -
y
public double yThe Y coordinate of the upper-left corner of the framing rectangle of the arc.
