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

Class GeneralPath

java.lang.Object
|
+--java.awt.geom.GeneralPath

All Implemented Interfaces:

Shape, Cloneable


public final class GeneralPath

extends Object

implements Shape, Cloneable

STUBS ONLY XXX Implement and document. Note that Sun's implementation only expects float precision, not double.

Field Summary

static intWIND_EVEN_ODD

STUBS ONLY XXX Implement and document.
static intWIND_NON_ZERO

Constructor Summary

GeneralPath()

GeneralPath(int rule)

GeneralPath(int rule, int capacity)

GeneralPath(java.awt.Shape s)

Method Summary

voidappend(java.awt.Shape s, boolean connect)

voidappend(java.awt.geom.PathIterator i, boolean connect)

java.lang.Objectclone()

Create a new shape of the same run-time type with the same contents as this one.
voidclosePath()

booleancontains(double x, double y)

booleancontains(java.awt.geom.Point2D p)

booleancontains(double x, double y, double w, double h)

booleancontains(java.awt.geom.Rectangle2D r)

java.awt.ShapecreateTransformedShape(java.awt.geom.AffineTransform xform)

voidcurveTo(float x1, float y1, float x2, float y2, float x3, float y3)

java.awt.RectanglegetBounds()

java.awt.geom.Rectangle2DgetBounds2D()

java.awt.geom.Point2DgetCurrentPoint()

java.awt.geom.PathIteratorgetPathIterator(final AffineTransform at)

java.awt.geom.PathIteratorgetPathIterator(java.awt.geom.AffineTransform at, double flatness)

intgetWindingRule()

booleanintersects(double x, double y, double w, double h)

booleanintersects(java.awt.geom.Rectangle2D r)

voidlineTo(float x, float y)

voidmoveTo(float x, float y)

voidquadTo(float x1, float y1, float x2, float y2)

voidreset()

voidsetWindingRule(int rule)

voidtransform(java.awt.geom.AffineTransform xform)

Field Details

WIND_EVEN_ODD

public static final int WIND_EVEN_ODD

STUBS ONLY XXX Implement and document. Note that Sun's implementation only expects float precision, not double.


WIND_NON_ZERO

public static final int WIND_NON_ZERO


Constructor Details

GeneralPath

public GeneralPath()


GeneralPath

public GeneralPath(int rule)

Parameters:


GeneralPath

public GeneralPath(int rule, int capacity)

Parameters:


GeneralPath

public GeneralPath(java.awt.Shape s)

Parameters:


Method Details

append

public void append(java.awt.Shape s, boolean connect)

Parameters:


append

public void append(java.awt.geom.PathIterator i, boolean connect)

Parameters:


clone

public Object clone()

Create a new shape of the same run-time type with the same contents as this one.

Since:Returns:

Throws:


closePath

public void closePath()


contains

public boolean contains(double x, double y)

Parameters:


contains

public boolean contains(double x, double y, double w, double h)

Parameters:


contains

public boolean contains(java.awt.geom.Point2D p)

Parameters:


contains

public boolean contains(java.awt.geom.Rectangle2D r)

Parameters:


createTransformedShape

public Shape createTransformedShape(java.awt.geom.AffineTransform xform)

Parameters:


curveTo

public void curveTo(float x1, float y1, float x2, float y2, float x3, float y3)

Parameters:


getBounds

public Rectangle getBounds()


getBounds2D

public Rectangle2D getBounds2D()


getCurrentPoint

public Point2D getCurrentPoint()


getPathIterator

public PathIterator getPathIterator(final AffineTransform at)

Parameters:


getPathIterator

public PathIterator getPathIterator(java.awt.geom.AffineTransform at, double flatness)

Parameters:


getWindingRule

public int getWindingRule()


intersects

public boolean intersects(double x, double y, double w, double h)

Parameters:


intersects

public boolean intersects(java.awt.geom.Rectangle2D r)

Parameters:


lineTo

public void lineTo(float x, float y)

Parameters:


moveTo

public void moveTo(float x, float y)

Parameters:


quadTo

public void quadTo(float x1, float y1, float x2, float y2)

Parameters:


reset

public void reset()


setWindingRule

public void setWindingRule(int rule)

Parameters:


transform

public void transform(java.awt.geom.AffineTransform xform)

Parameters: