Path2D.Float (Java Platform SE 8 ) (original) (raw)
Modifier and Type
Method
Description
void
[append](../../../java/awt/geom/Path2D.Float.html#append-java.awt.geom.PathIterator-boolean-)([PathIterator](../../../java/awt/geom/PathIterator.html "interface in java.awt.geom") pi, boolean connect)
Appends the geometry of the specifiedPathIterator object to the path, possibly connecting the new geometry to the existing path segments with a line segment.
[Object](../../../java/lang/Object.html "class in java.lang")
[clone](../../../java/awt/geom/Path2D.Float.html#clone--)()
Creates a new object of the same class as this object.
void
[curveTo](../../../java/awt/geom/Path2D.Float.html#curveTo-double-double-double-double-double-double-)(double x1, double y1, double x2, double y2, double x3, double y3)
Adds a curved segment, defined by three new points, to the path by drawing a Bézier curve that intersects both the current coordinates and the specified coordinates (x3,y3)
, using the specified points (x1,y1)
and (x2,y2)
as Bézier control points.
void
[curveTo](../../../java/awt/geom/Path2D.Float.html#curveTo-float-float-float-float-float-float-)(float x1, float y1, float x2, float y2, float x3, float y3)
Adds a curved segment, defined by three new points, to the path by drawing a Bézier curve that intersects both the current coordinates and the specified coordinates (x3,y3)
, using the specified points (x1,y1)
and (x2,y2)
as Bézier control points.
[Rectangle2D](../../../java/awt/geom/Rectangle2D.html "class in java.awt.geom")
[getBounds2D](../../../java/awt/geom/Path2D.Float.html#getBounds2D--)()
Returns a high precision and more accurate bounding box of the Shape
than the getBounds
method.
[PathIterator](../../../java/awt/geom/PathIterator.html "interface in java.awt.geom")
[getPathIterator](../../../java/awt/geom/Path2D.Float.html#getPathIterator-java.awt.geom.AffineTransform-)([AffineTransform](../../../java/awt/geom/AffineTransform.html "class in java.awt.geom") at)
Returns an iterator object that iterates along theShape
boundary and provides access to the geometry of theShape
outline.
void
[lineTo](../../../java/awt/geom/Path2D.Float.html#lineTo-double-double-)(double x, double y)
Adds a point to the path by drawing a straight line from the current coordinates to the new specified coordinates specified in double precision.
void
[lineTo](../../../java/awt/geom/Path2D.Float.html#lineTo-float-float-)(float x, float y)
Adds a point to the path by drawing a straight line from the current coordinates to the new specified coordinates specified in float precision.
void
[moveTo](../../../java/awt/geom/Path2D.Float.html#moveTo-double-double-)(double x, double y)
Adds a point to the path by moving to the specified coordinates specified in double precision.
void
[moveTo](../../../java/awt/geom/Path2D.Float.html#moveTo-float-float-)(float x, float y)
Adds a point to the path by moving to the specified coordinates specified in float precision.
void
[quadTo](../../../java/awt/geom/Path2D.Float.html#quadTo-double-double-double-double-)(double x1, double y1, double x2, double y2)
Adds a curved segment, defined by two new points, to the path by drawing a Quadratic curve that intersects both the current coordinates and the specified coordinates (x2,y2)
, using the specified point (x1,y1)
as a quadratic parametric control point.
void
[quadTo](../../../java/awt/geom/Path2D.Float.html#quadTo-float-float-float-float-)(float x1, float y1, float x2, float y2)
Adds a curved segment, defined by two new points, to the path by drawing a Quadratic curve that intersects both the current coordinates and the specified coordinates (x2,y2)
, using the specified point (x1,y1)
as a quadratic parametric control point.
void
[transform](../../../java/awt/geom/Path2D.Float.html#transform-java.awt.geom.AffineTransform-)([AffineTransform](../../../java/awt/geom/AffineTransform.html "class in java.awt.geom") at)
Transforms the geometry of this path using the specifiedAffineTransform.