private void buildSegments(Border border, Jig jig, AffineTransform at) { segments = new ArrayList<PathSegment>(); double[] coords = new double[6]; PathIterator topIterator = jig.getTopLine().getPathIterator(at); topIterator.currentSegment(coords); MovePathSegment start = new MovePathSegment(coords); segments.add(start); topIterator.next(); topIterator.currentSegment(coords); segments.add(new LinePathSegment(coords)); if (border.topRightRadius > 0) addArc(at, segments, coords, jig.getTopRightArc()); addLine(at, segments, coords, jig.getRightLine()); if (border.bottomRightRadius > 0) addArc(at, segments, coords, jig.getBottomRightArc()); addLine(at, segments, coords, jig.getBottomLine()); if (border.bottomLeftRadius > 0) addArc(at, segments, coords, jig.getBottomLeftArc()); addLine(at, segments, coords, jig.getLeftLine()); if (border.topLeftRadius > 0) addArc(at, segments, coords, jig.getTopLeftArc()); start.dump(coords); segments.add(new LinePathSegment(coords)); }
public Arc2D getTopLeftArc() { return jig.getTopLeftArc(); }
public Arc2D getBottomRightArc() { return jig.getBottomRightArc(); }
public Arc2D getBottomLeftArc() { return jig.getBottomLeftArc(); }
public Arc2D getTopRightArc() { return jig.getTopRightArc(); }
public Line2D getLeftLine() { return jig.getLeftLine(); }
public Line2D getBottomLine() { return jig.getBottomLine(); }
public Line2D getRightLine() { return jig.getRightLine(); }
public Line2D getTopLine() { return jig.getTopLine(); }