551552553554555556557558559560561
GeneralPath gp = new GeneralPath(); gp.moveTo(x, y); gp.lineTo(x + wx, y + wy); gp.lineTo(x + wx + hx, y + wy + hy); gp.lineTo(x + hx, y + hy); gp.closePath(); result = new DelegatingShape(gp); lbcache[ix] = result; }
106107108109110111112113114115116
} for (int i = 1; i < nPoints; i++) { gp.lineTo(xPoints[i], yPoints[i]); } if (close) { gp.closePath(); } return gp; } public void drawPolyline(SunGraphics2D sg,
17541755175617571758175917601761176217631764
result.moveTo((float)path[0], (float)path[1]); for (int i = 2; i < path.length; i += 2) { result.lineTo((float)path[i], (float)path[i+1]); } if (close) { result.closePath(); } if (lp != null) { result = (GeneralPath)lp.mapShape(result); }
19831984198519861987198819891990199119921993
for (int i = start; i != limit; i += increment) { result.lineTo((float)path1[i], (float)path1[i+1]); } result.closePath(); return result; } // A utility to convert a pair of carets into a bounding path