public Shape createStrokedShape (Shape shape) { GeneralPath result = new GeneralPath(); PathIterator it = new FlatteningPathIterator(shape.getPathIterator(null), FLATNESS); float points[] = new float[6]; float moveX = 0, moveY = 0;
public Shape createStrokedShape (Shape shape) { GeneralPath result = new GeneralPath(); PathIterator it = new FlatteningPathIterator(shape.getPathIterator(null), FLATNESS); float points[] = new float[6]; float moveX = 0, moveY = 0;
public float measurePathLength(Shape shape) { PathIterator it = new FlatteningPathIterator(shape.getPathIterator(null), FLATNESS); float points[] = new float[6]; float moveX = 0, moveY = 0;
public Shape createStrokedShape(Shape shape) { GeneralPath result = new GeneralPath(); PathIterator it = new FlatteningPathIterator(shape.getPathIterator(null), FLATNESS); float points[] = new float[6]; float moveX = 0, moveY = 0;
public Shape createStrokedShape (Shape shape) { GeneralPath result = new GeneralPath(); shape = new BasicStroke(getWidth(), BasicStroke.CAP_SQUARE, getJoin()).createStrokedShape(shape); PathIterator it = new FlatteningPathIterator(shape.getPathIterator(null), FLATNESS); float points[] = new float[6]; float moveX = 0, moveY = 0;
public Shape createStrokedShape (Shape shape) { GeneralPath result = new GeneralPath(); shape = new BasicStroke(getWidth(), BasicStroke.CAP_SQUARE, getJoin()).createStrokedShape(shape); PathIterator it = new FlatteningPathIterator(shape.getPathIterator(null), FLATNESS); float points[] = new float[6]; float moveX = 0, moveY = 0;
PathIterator it = new FlatteningPathIterator(shape.getPathIterator(null), FLATNESS); float points[] = new float[6]; float moveX = 0, moveY = 0;
public Shape createStrokedShape(Shape shape) { GeneralPath result = new GeneralPath(); PathIterator it = new FlatteningPathIterator(shape.getPathIterator(null), FLATNESS); float points[] = new float[6]; float moveX = 0, moveY = 0;
@Override public final PathIterator getPathIterator(AffineTransform at, double flatness) { return new FlatteningPathIterator(this.path.getPathIterator(at), flatness); }
@Override public final PathIterator getPathIterator(AffineTransform at, double flatness) { return new FlatteningPathIterator(this.path.getPathIterator(at), flatness); }
/** * {@inheritDoc} */ @Override public PathIterator getPathIterator(AffineTransform at, double flatness) { return new FlatteningPathIterator(getPathIterator(at), flatness); }
/** * {@inheritDoc} */ @Override public PathIterator getPathIterator(AffineTransform at, double flatness) { return new FlatteningPathIterator(getPathIterator(at), flatness); }
/** * {@inheritDoc} */ @Override public PathIterator getPathIterator(AffineTransform at, double flatness) { return new FlatteningPathIterator(getPathIterator(at), flatness); }
/** * {@inheritDoc} */ public PathIterator getPathIterator(AffineTransform at, double flatness) { return new FlatteningPathIterator(getPathIterator(at), flatness); }
public PathIterator getPathIterator(AffineTransform at, double flatness) { return new FlatteningPathIterator(getPathIterator(at), flatness); } }
/** * {@inheritDoc} * <p> * The iterator for this class is not multi-threaded safe, * which means that this {@code Path2D} class does not * guarantee that modifications to the geometry of this * {@code Path2D} object do not affect any iterations of * that geometry that are already in process. * * @since 1.6 */ public final PathIterator getPathIterator(AffineTransform at, double flatness) { return new FlatteningPathIterator(getPathIterator(at), flatness); }
@Override public PathIterator getPathIterator(AffineTransform at, double flatness) { return new FlatteningPathIterator(new GrappaPathIterator(this, at), flatness); }
@Override public PathIterator getPathIterator(AffineTransform at, double flatness) { return new FlatteningPathIterator(new BezierPathIterator(this, at), flatness); }
@Override public Shape createStrokedShape( Shape shape ) { GeneralPath result = new GeneralPath(); PathIterator it = new FlatteningPathIterator( shape.getPathIterator( null ), FLATNESS ); // a little sub optimal to actually go through twice double totalLength = 0; if ( positionPercentage >= 0 ) { totalLength = calculatePathLength( it ); it = new FlatteningPathIterator( shape.getPathIterator( null ), FLATNESS ); } float next = 0; float minLength = (float) initialGap; if ( positionPercentage >= 0 ) { minLength = (float) ( totalLength * ( positionPercentage / 100 ) ); next = minLength; } float points[] = new float[6]; int currentShape = 0; int length = shapes.length; createStrokedShape( result, it, next, minLength, points, currentShape, length ); return result; }
/** * Returns an iterator object that iterates along the shape boundary and provides * access to a flattened view of the shape outline geometry. */ @Override public PathIterator getPathIterator(final AffineTransform at, final double flatness) { final MathTransform2D concatenated = concatenate(at); if (concatenated.isIdentity()) { return shape.getPathIterator(at, flatness); } return new FlatteningPathIterator(new ProjectedPathIterator(shape.getPathIterator(null), concatenated), flatness); }