Lines Matching defs:stroke
643 * Creates a border of the specified {@code stroke}.
646 * @param stroke the {@link BasicStroke} object used to stroke a shape
649 * @throws NullPointerException if the specified {@code stroke} is {@code null}
653 public static Border createStrokeBorder(BasicStroke stroke) {
654 return new StrokeBorder(stroke);
658 * Creates a border of the specified {@code stroke} and {@code paint}.
662 * @param stroke the {@link BasicStroke} object used to stroke a shape
666 * @throws NullPointerException if the specified {@code stroke} is {@code null}
670 public static Border createStrokeBorder(BasicStroke stroke, Paint paint) {
671 return new StrokeBorder(stroke, paint);