Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.awt.geom

Class Arc2D.Double

java.lang.Object
|
+--java.awt.geom.RectangularShape
   |
   +--java.awt.geom.Arc2D
      |
      +--java.awt.geom.Arc2D.Double


public static class Arc2D.Double

extends Arc2D

This class implements an arc in double precision.

Since:Author:

Field Summary

doubleextent

The extent angle of this arc, in degrees.
doubleheight

The height of the box bounding the ellipse of this arc.
doublestart

The start angle of this arc, in degrees.
doublewidth

The width of the box bounding the ellipse of this arc.
doublex

The x coordinate of the box bounding the ellipse of this arc.
doubley

The y coordinate of the box bounding the ellipse of this arc.

Constructor Summary

Double()

Create a new, open arc at (0,0) with 0 extent.
Double(int type)

Create a new arc of the given type at (0,0) with 0 extent.
Double(double x, double y, double w, double h, double start, double extent, int type)

Create a new arc with the given dimensions.
Double(java.awt.geom.Rectangle2D r, double start, double extent, int type)

Create a new arc with the given dimensions.

Method Summary

doublegetAngleExtent()

Return the extent of the arc, in degrees.
doublegetAngleStart()

Return the start angle of the arc, in degrees.
doublegetHeight()

Return the height of the bounding box.
doublegetWidth()

Return the width of the bounding box.
doublegetX()

Return the x coordinate of the bounding box.
doublegetY()

Return the y coordinate of the bounding box.
booleanisEmpty()

Tests if the arc contains points.
java.awt.geom.Rectangle2DmakeBounds(double x, double y, double w, double h)

Creates a tight bounding box given dimensions that more precise than the bounding box of the ellipse.
voidsetAngleExtent(double extent)

Sets the extent angle of the arc.
voidsetAngleStart(double start)

Sets the start angle of the arc.
voidsetArc(double x, double y, double w, double h, double start, double extent, int type)

Sets the arc to the given dimensions.

Field Details

extent

public double extent

The extent angle of this arc, in degrees.


height

public double height

The height of the box bounding the ellipse of this arc.


start

public double start

The start angle of this arc, in degrees.


width

public double width

The width of the box bounding the ellipse of this arc.


x

public double x

The x coordinate of the box bounding the ellipse of this arc.


y

public double y

The y coordinate of the box bounding the ellipse of this arc.


Constructor Details

Double

public Double()

Create a new, open arc at (0,0) with 0 extent.


Double

public Double(double x, double y, double w, double h, double start, double extent, int type)

Create a new arc with the given dimensions.

Parameters:

Throws:


Double

public Double(int type)

Create a new arc of the given type at (0,0) with 0 extent.

Parameters:

Throws:


Double

public Double(java.awt.geom.Rectangle2D r, double start, double extent, int type)

Create a new arc with the given dimensions.

Parameters:

Throws:


Method Details

getAngleExtent

public double getAngleExtent()

Return the extent of the arc, in degrees.

Returns:


getAngleStart

public double getAngleStart()

Return the start angle of the arc, in degrees.

Returns:


getHeight

public double getHeight()

Return the height of the bounding box.

Returns:


getWidth

public double getWidth()

Return the width of the bounding box.

Returns:


getX

public double getX()

Return the x coordinate of the bounding box.

Returns:


getY

public double getY()

Return the y coordinate of the bounding box.

Returns:


isEmpty

public boolean isEmpty()

Tests if the arc contains points.

Returns:


makeBounds

protected Rectangle2D makeBounds(double x, double y, double w, double h)

Creates a tight bounding box given dimensions that more precise than the bounding box of the ellipse.

Parameters:


setAngleExtent

public void setAngleExtent(double extent)

Sets the extent angle of the arc.

Parameters:


setAngleStart

public void setAngleStart(double start)

Sets the start angle of the arc.

Parameters:


setArc

public void setArc(double x, double y, double w, double h, double start, double extent, int type)

Sets the arc to the given dimensions.

Parameters:

Throws: