public class PathGeometry extends Object implements Geometry
PathGeometry provides sites for the vertices of the path, and for the control point for those segments that are quadratic or cubic curves.
Modifier and Type | Class and Description |
---|---|
class |
PathGeometry.CloseSegment
CloseSegment is a special type of Vertex, that closes a sub-path.
|
class |
PathGeometry.Vertex
Vertex is the site that represents vertexes of the path.
|
Constructor and Description |
---|
PathGeometry(Figure figure,
Shape shape)
Create a new geometry object on the given figure and with the
given initial shape.
|
Modifier and Type | Method and Description |
---|---|
Figure |
getFigure()
Get the figure to which this geometry object is attached.
|
Shape |
getShape()
Get the shape that defines this geometry object.
|
Site |
getVertex(int number)
Get the site on the given vertex.
|
int |
getVertexCount()
Get the number of vertices of this shape.
|
void |
setShape(Shape shape)
Set the shape that defines this geometry object.
|
void |
translate(double x,
double y)
Translate the geometry object
|
Iterator |
vertices()
Return an iteration over the vertices in this geometry object.
|
public Figure getFigure()
public Shape getShape()
public Site getVertex(int number)
public int getVertexCount()
public void setShape(Shape shape)
public void translate(double x, double y)
public Iterator vertices()
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.