java.lang.Object | ||
↳ | sun.java2d.pisces.LineSink | |
↳ | sun.java2d.pisces.Stroker |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | CAP_BUTT | Constant value for end cap style. | |||||||||
int | CAP_ROUND | Constant value for end cap style. | |||||||||
int | CAP_SQUARE | Constant value for end cap style. | |||||||||
int | JOIN_BEVEL | Constant value for join style. | |||||||||
int | JOIN_MITER | Constant value for join style. | |||||||||
int | JOIN_ROUND | Constant value for join style. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Empty constructor.
| |||||||||||
Constructs a
Stroker . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Closes the current path by drawing a line from the current
drawing position to the point specified by the moset recent
moveTo command. | |||||||||||
Ends the current path.
| |||||||||||
Provides a hint that the current segment should be joined to
the following segment using an explicit miter or round join if
required.
| |||||||||||
Draws a line from the current drawing position to the point
(x1, y1) and sets the current drawing position to
(x1, y1) . | |||||||||||
Moves the current drawing position to the point
(x0,
y0) . | |||||||||||
Sets the output
LineSink of this
Stroker . | |||||||||||
Sets the parameters of this
Stroker . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Constant value for end cap style.
Constant value for end cap style.
Constant value for end cap style.
Constant value for join style.
Constant value for join style.
Constant value for join style.
Empty constructor. setOutput
and
setParameters
must be called prior to calling any
other methods.
Constructs a Stroker
.
output | an output LineSink . |
---|---|
lineWidth | the desired line width in pixels, in S15.16 format. |
capStyle | the desired end cap style, one of
CAP_BUTT , CAP_ROUND or
CAP_SQUARE . |
joinStyle | the desired line join style, one of
JOIN_MITER , JOIN_ROUND or
JOIN_BEVEL . |
miterLimit | the desired miter limit, in S15.16 format. |
transform | a Transform4 object indicating
the transform that has been previously applied to all incoming
coordinates. This is required in order to produce consistently
shaped end caps and joins.
|
Closes the current path by drawing a line from the current
drawing position to the point specified by the moset recent
moveTo
command.
Ends the current path. It may be necessary to end a path in order to allow end caps to be drawn.
Provides a hint that the current segment should be joined to the following segment using an explicit miter or round join if required.
An application-generated path will generally have no need
to contain calls to this method; they are typically introduced
by a Flattener
to mark segment divisions that
appear in its input, and consumed by a Stroker
that is responsible for emitting the miter or round join
segments.
Other LineSink
classes should simply pass this
hint to their output sink as needed.
Draws a line from the current drawing position to the point
(x1, y1)
and sets the current drawing position to
(x1, y1)
.
x1 | the X coordinate in S15.16 format |
---|---|
y1 | the Y coordinate in S15.16 format |
Moves the current drawing position to the point (x0,
y0)
.
x0 | the X coordinate in S15.16 format |
---|---|
y0 | the Y coordinate in S15.16 format |
Sets the output LineSink
of this
Stroker
.
output | an output LineSink .
|
---|
Sets the parameters of this Stroker
.
lineWidth | the desired line width in pixels, in S15.16 format. |
---|---|
capStyle | the desired end cap style, one of
CAP_BUTT , CAP_ROUND or
CAP_SQUARE . |
joinStyle | the desired line join style, one of
JOIN_MITER , JOIN_ROUND or
JOIN_BEVEL . |
miterLimit | the desired miter limit, in S15.16 format. |
transform | a Transform4 object indicating
the transform that has been previously applied to all incoming
coordinates. This is required in order to produce consistently
shaped end caps and joins.
|