public void dispose() {
g.dispose();
}
public void drawPath( Path path ) {
PathData pathData = path.getPathData();
float[] points = pathData.points;
GeneralPath p = new GeneralPath();
p.moveTo(points[0], points[1]);
for( int i = 2; i < points.length; i = i + 2 ) {
p.lineTo(points[i], points[i + 1]);