public class DashArray
extends Object
The stroke-dasharray attribute takes as an argument a series of
comma-separated numbers. Note: unlike paths, these numbers must be
comma-separated. You can insert whitespace, too, if you want, but the numbers
must have commas in between them. The first number specifies a distance for
the filled area, and the second a distance for the unfilled area. So in the
example stroke-dasharray="5,5", the second path fills 5 pixel units, with 5
blank units until the next dash of 5 units. You can specify more numbers if
you would like a more complicated dash pattern. The example
stroke-dasharray="5,10,5" specifies three numbers, in which case the renderer
loops the numbers twice to create an even pattern. So the first path renders
5 filled, 10 empty, 5 filled, and then loops back to create 5 empty, 10
filled, 5 empty. The pattern then loops again.
- Author:
- Paul Sitarz