The GeneralPath class represents a geometric path constructed from straight lines, and quadratic and cubic (Bezier) curves. It can contain multiple subpaths.
i got that, and i created a shape using :
GeneralPath piece = new GeneralPath ();
piece.moveTo(0,0);
piece.curveTo(12,34,45,56,67,78);
.
.
.
piece.closePath();
now each time i draw it using my paint method it’ll start drawing at coordinates 0,0
Without redrawing the piece, how can i move the whole GeneralPath ??
my issue is that if i change the 1st moveTo coordinate, i’ll have to change every following GeneralPath’s instruction coordinate(moveTo (x+ changeInx, y +changeInY))
Is there a way around this ??