439440441442443444445446447448449
x = coords[2]; y = coords[3]; break; case PathIterator.SEG_CUBICTO: p = new CubicSegment(x, y, coords[0], coords[1], coords[2], coords[3], coords[4], coords[5]).getDisplacedSegments(width/2.0); if( !pathOpen ) { start = p[0];
768769770771772773774775776777
dy = (2.0/3.0)*width*dy/l; } c1 = new Point2D.Double(p1[0] + dx, p1[1] + dy); c2 = new Point2D.Double(b.P1.getX() + dx, b.P1.getY() + dy); a.add(new CubicSegment(a.last.P2, c1, c2, b.P1)); break; } a.add(b); }
865866867868869870871872873874875
dy = p0[1] - p1[1]; l = Math.sqrt(dx * dx + dy * dy); dx = 0.5*width*dx/l; dy = 0.5*width*dy/l; c2 = new Point2D.Double(p0[0] + dx, p0[1] + dy); a.add(new CubicSegment(a.last.P2, c1, c2, b.P1)); break; case JOIN_BEVEL: a.add(new LineSegment(a.last.P2, b.P1)); break;