| java.lang.Object com.sun.pisces.LineSink
All known Subclasses: com.sun.pisces.RendererBase, com.sun.pisces.Dasher, com.sun.pisces.Stroker, com.sun.pisces.PathSink,
LineSink | abstract public class LineSink (Code) | | The LineSink interface accepts a series of line
drawing commands: moveTo , lineTo ,
close (equivalent to a lineTo command
with an argument equal to the argument of the last
moveTo command), and end .
A Flattener may be used to connect a general path
source to a LineSink .
The Renderer class implements the
LineSink interface.
|
Method Summary | |
abstract public void | close() Closes the current path by drawing a line from the current
drawing position to the point specified by the moset recent
moveTo command. | abstract public void | end() Ends the current path. | abstract public void | lineJoin() Provides a hint that the current segment should be joined to
the following segment using an explicit miter or round join if
required. | abstract public void | lineTo(int x1, int y1) Draws a line from the current drawing position to the point
(x1, y1) and sets the current drawing position to
(x1, y1) . | abstract public void | moveTo(int x0, int y0) Moves the current drawing position to the point (x0,
y0) . |
close | abstract public void close()(Code) | | Closes the current path by drawing a line from the current
drawing position to the point specified by the moset recent
moveTo command.
|
end | abstract public void end()(Code) | | Ends the current path. It may be necessary to end a path in
order to allow end caps to be drawn.
|
lineJoin | abstract public void lineJoin()(Code) | | 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.
|
lineTo | abstract public void lineTo(int x1, int y1)(Code) | | Draws a line from the current drawing position to the point
(x1, y1) and sets the current drawing position to
(x1, y1) .
Parameters: x1 - the X coordinate in S15.16 format Parameters: y1 - the Y coordinate in S15.16 format |
moveTo | abstract public void moveTo(int x0, int y0)(Code) | | Moves the current drawing position to the point (x0,
y0) .
Parameters: x0 - the X coordinate in S15.16 format Parameters: y0 - the Y coordinate in S15.16 format |
|
|