Class

StrokeStyle

Extends:

A class that represents a style with which lines will be drawn.

Constants
DEFAULT
LINE_CAPS
LINE_JOINS
SOLID_LINE
Public Attributes
cap The type of cap to put on the line.
dash Controls the pattern of dashes and gaps used to stroke paths. This value must either be nil, or a hash with the following values:
join How two lines join together.
miter_limit When two line segments meet and :miter joins have been specified, the miter may extend far beyond the thickness of the line stroking the path. #miter_limit imposes a maximum ratio miter length to line width at which point the join will be converted from a miter to a bevel. Adobe points out that the ratio is directly related to the angle between the segments in user space. With [p] representing the angle at which the segments meet:
width The thickness of the line in PDF units.
Public Methods
cap=
join=
new
render
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.