Lines Matching defs:spacing
689 * the relative spacing between dash lines are equal to {@code 1}.
703 * relative {@code length}, and relative {@code spacing}.
711 * @param spacing the relative spacing between dash lines
715 * if the specified {@code spacing} is less than {@code 0}
718 public static Border createDashedBorder(Paint paint, float length, float spacing) {
719 return createDashedBorder(paint, 1.0f, length, spacing, false);
724 * line shape, relative {@code length}, and relative {@code spacing}.
731 * @param spacing the relative spacing between dash lines
737 * if the specified {@code spacing} is less than {@code 0}
740 public static Border createDashedBorder(Paint paint, float thickness, float length, float spacing, boolean rounded) {
741 boolean shared = !rounded && (paint == null) && (thickness == 1.0f) && (length == 1.0f) && (spacing == 1.0f);
751 if (spacing < 0.0f) {
752 throw new IllegalArgumentException("spacing is less than 0");
756 float[] array = { thickness * (length - 1.0f), thickness * (spacing + 1.0f) };