643644645646647648649650651652653
/** * Cap the ends of the path (joining the start and end list of segments) */ private void capEnds() { Segment returnPath = end.last; end.reverseAll(); // reverse the path. end = null; capEnd(start, returnPath); start.last = returnPath.last;
659660661662663664665666667668669
/** * Append the Segments in s to the GeneralPath p */ private void convertPath(GeneralPath p, Segment s) { Segment v = s; p.moveTo((float)s.P1.getX(), (float)s.P1.getY()); do { if(v instanceof LineSegment)