Class: java.awt.geom.Arc2D.Double

This class defines an arc specified in double precision.
Since:
@since 1.2

Inheritance

Superclass tree: Implements:

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).
    Since:
    @since 1.2
    Google Code Search
    Stack Overflow
  • 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.
    Parameters:
    @param x The X coordinate of the upper-left corner of the arc's framing rectangle.
    @param y The Y coordinate of the upper-left corner of the arc's framing rectangle.
    @param w The overall width of the full ellipse of which this arc is a partial section.
    @param h The overall height of the full ellipse of which this arc is a partial section.
    @param start The starting angle of the arc in degrees.
    @param extent The angular extent of the arc in degrees.
    @param type The closure type for the arc: java.awt.geom.Arc2D.OPEN , java.awt.geom.Arc2D.CHORD , or java.awt.geom.Arc2D.PIE .
    Since:
    @since 1.2
    Google Code Search
    Stack Overflow
  • 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.
    Parameters:
    @param type The closure type for the arc: java.awt.geom.Arc2D.OPEN , java.awt.geom.Arc2D.CHORD , or java.awt.geom.Arc2D.PIE .
    Since:
    @since 1.2
    Google Code Search
    Stack Overflow
  • 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.
    Parameters:
    @param ellipseBounds The framing rectangle that defines the outer boundary of the full ellipse of which this arc is a partial section.
    @param start The starting angle of the arc in degrees.
    @param extent The angular extent of the arc in degrees.
    @param type The closure type for the arc: java.awt.geom.Arc2D.OPEN , java.awt.geom.Arc2D.CHORD , or java.awt.geom.Arc2D.PIE .
    Since:
    @since 1.2
    Google Code Search
    Stack Overflow
  • getAngleExtenttop

    public double getAngleExtent()
    Returns the angular extent of the arc.
    Return:
    @return A double value that represents the angular extent of the arc in degrees.
    Since:
    @since 1.2
    Override hierarchy:
    getAngleExtent from Arc2D
    Google Code Search
    Stack Overflow
  • getAngleStarttop

    public double getAngleStart()
    Returns the starting angle of the arc.
    Return:
    @return A double value that represents the starting angle of the arc in degrees.
    Since:
    @since 1.2
    Override hierarchy:
    getAngleStart from Arc2D
    Google Code Search
    Stack Overflow
  • getHeighttop

    public double getHeight()
    Returns the height of the framing rectangle in double precision. Note that the arc partially inscribes the framing rectangle of this RectangularShape.
    Return:
    @return the height of the framing rectangle.
    Since:
    @since 1.2
    Override hierarchy:
    getHeight from RectangularShape
    Google Code Search
    Stack Overflow
  • getWidthtop

    public double getWidth()
    Returns the width of the framing rectangle in double precision. Note that the arc partially inscribes the framing rectangle of this RectangularShape.
    Return:
    @return the width of the framing rectangle.
    Since:
    @since 1.2
    Override hierarchy:
    getWidth from RectangularShape
    Google Code Search
    Stack Overflow
  • getXtop

    public double getX()
    Returns the X coordinate of the upper-left corner of the framing rectangle in double precision. Note that the arc partially inscribes the framing rectangle of this RectangularShape.
    Return:
    @return the X coordinate of the upper-left corner of the framing rectangle.
    Since:
    @since 1.2
    Override hierarchy:
    getX from RectangularShape
    Google Code Search
    Stack Overflow
  • getYtop

    public double getY()
    Returns the Y coordinate of the upper-left corner of the framing rectangle in double precision. Note that the arc partially inscribes the framing rectangle of this RectangularShape.
    Return:
    @return the Y coordinate of the upper-left corner of the framing rectangle.
    Since:
    @since 1.2
    Override hierarchy:
    getY from RectangularShape
    Google Code Search
    Stack Overflow
  • isEmptytop

    public boolean isEmpty()
    Determines whether the RectangularShape is empty. When the RectangularShape is empty, it encloses no area.
    Return:
    @return true if the RectangularShape is empty; false otherwise.
    Since:
    @since 1.2
    Override hierarchy:
    isEmpty from RectangularShape
    Google Code Search
    Stack Overflow
  • makeBoundstop

    protected Rectangle2D makeBounds(double x, double y, double w, double h)
    Constructs a Rectangle2D of the appropriate precision to hold the parameters calculated to be the framing rectangle of this arc.
    Parameters:
    @param x The X coordinate of the upper-left corner of the framing rectangle.
    @param y The Y coordinate of the upper-left corner of the framing rectangle.
    @param w The width of the framing rectangle.
    @param h The height of the framing rectangle.
    Return:
    @return a Rectangle2D that is the framing rectangle of this arc.
    Since:
    @since 1.2
    Override hierarchy:
    makeBounds from Arc2D
    Google Code Search
    Stack Overflow
  • readObjecttop

    private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
    Reads the default serializable fields from the ObjectInputStream followed by a byte indicating the arc type of this Arc2D instance.
    Misc:
    @serialData
    1. The default serializable fields.
    2. followed by a byte indicating the arc type java.awt.geom.Arc2D.OPEN , java.awt.geom.Arc2D.CHORD , or java.awt.geom.Arc2D.PIE .
    Google Code Search
    Stack Overflow
  • setAngleExtenttop

    public void setAngleExtent(double angExt)
    Sets the angular extent of this arc to the specified double value.
    Parameters:
    @param angExt The angular extent of the arc in degrees.
    Since:
    @since 1.2
    Override hierarchy:
    setAngleExtent from Arc2D
    Google Code Search
    Stack Overflow
  • setAngleStarttop

    public void setAngleStart(double angSt)
    Sets the starting angle of this arc to the specified double value.
    Parameters:
    @param angSt The starting angle of the arc in degrees.
    Since:
    @since 1.2
    Override hierarchy:
    setAngleStart from Arc2D
    Google Code Search
    Stack Overflow
  • 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.
    Parameters:
    @param x The X coordinate of the upper-left corner of the arc.
    @param y The Y coordinate of the upper-left corner of the arc.
    @param w The overall width of the full ellipse of which this arc is a partial section.
    @param h The overall height of the full ellipse of which this arc is a partial section.
    @param angSt The starting angle of the arc in degrees.
    @param angExt The angular extent of the arc in degrees.
    @param closure The closure type for the arc: java.awt.geom.Arc2D.OPEN , java.awt.geom.Arc2D.CHORD , or java.awt.geom.Arc2D.PIE .
    Since:
    @since 1.2
    Override hierarchy:
    setArc from Arc2D
    Google Code Search
    Stack Overflow
  • writeObjecttop

    private void writeObject(ObjectOutputStream s) throws IOException
    Writes the default serializable fields to the ObjectOutputStream followed by a byte indicating the arc type of this Arc2D instance.
    Misc:
    @serialData
    1. The default serializable fields.
    2. followed by a byte indicating the arc type java.awt.geom.Arc2D.OPEN , java.awt.geom.Arc2D.CHORD , or java.awt.geom.Arc2D.PIE .
    Google Code Search
    Stack Overflow

Fields

  • extent

    public double extent
    The angular extent of the arc in degrees.
  • height

    public double height
    The 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 start
    The starting angle of the arc in degrees.
  • width

    public double width
    The overall width of the full ellipse of which this arc is a partial section (not considering the angular extents).
  • x

    public double x
    The X coordinate of the upper-left corner of the framing rectangle of the arc.
  • y

    public double y
    The Y coordinate of the upper-left corner of the framing rectangle of the arc.