::
|
struct StrokeAttributes |
|
|
Elements' Summary |
strokeWidth |
Defines the width of the stroke, measured in the user
coordinate space.
|
miterLimit |
Determines the maximal length of the diagonal in mitered
corners. This attribute is only used when joinType is set to
miter. Should the length of a corner's diagonal exceed this
limit, a bevelled join is used instead.
|
dashArray |
Array of on and off lengths, measured in the user coordinate
space. The first element specifies the length of the first
'on' segment of the dashing, the second element the length of
the first 'off' segment, and so forth. Give zero elements here
for solid strokes. This array always have an even number of
elements, zero counting as even here.
|
lineArray |
Array of line widths and spacings for multiple-line
strokes. The entries here are relative to the strokeWidth
attribute above, i.e. the total width of all lines and
spacings will always equal strokeWidth. The first element
specifies the width of the rightmost line, when travelling
from the start point of the path to the end point. The second
element specifies the space between the first line and the
second line, and so forth. If the array ends with a spacing,
this spacing is included in the total width of the
multiple-line stroke. That is, the stroke gets asymmetric.
|
startType |
The start shape of the stroke. The start point is the first
point in the first polygon of the path polyPolygon.
|
endType |
The end shape of the stroke. The end point is the last
point in the last polygon of the path polyPolygon.
|
joinType |
The join shape of the stroke. After every sub-stroke,
i.e. after every line or curve segment within a single path
polygon, a shape of this type is inserted into the stroke to
glue the segments together. Please note that distinct polygons
within the path polyPolygon are not connected, and therefore
also not joined via the shape specified here.
|
Elements' Details |
strokeWidth
double strokeWidth;
- Description
- Defines the width of the stroke, measured in the user
coordinate space.
|
|
miterLimit
double miterLimit;
- Description
- Determines the maximal length of the diagonal in mitered
corners. This attribute is only used when joinType is set to
miter. Should the length of a corner's diagonal exceed this
limit, a bevelled join is used instead.
|
|
dashArray
sequence< double > dashArray;
- Description
- Array of on and off lengths, measured in the user coordinate
space. The first element specifies the length of the first
'on' segment of the dashing, the second element the length of
the first 'off' segment, and so forth. Give zero elements here
for solid strokes. This array always have an even number of
elements, zero counting as even here.
|
|
lineArray
sequence< double > lineArray;
- Description
- Array of line widths and spacings for multiple-line
strokes. The entries here are relative to the strokeWidth
attribute above, i.e. the total width of all lines and
spacings will always equal strokeWidth. The first element
specifies the width of the rightmost line, when travelling
from the start point of the path to the end point. The second
element specifies the space between the first line and the
second line, and so forth. If the array ends with a spacing,
this spacing is included in the total width of the
multiple-line stroke. That is, the stroke gets asymmetric.
|
|
startType
PathCapType startType;
- Description
- The start shape of the stroke. The start point is the first
point in the first polygon of the path polyPolygon.
|
|
endType
PathCapType endType;
- Description
- The end shape of the stroke. The end point is the last
point in the last polygon of the path polyPolygon.
|
|
joinType
PathJoinType joinType;
- Description
- The join shape of the stroke. After every sub-stroke,
i.e. after every line or curve segment within a single path
polygon, a shape of this type is inserted into the stroke to
glue the segments together. Please note that distinct polygons
within the path polyPolygon are not connected, and therefore
also not joined via the shape specified here.
|
|
Top of Page
Copyright © 2003 Sun Microsystems, Inc.