| java.lang.Object com.sun.pisces.LineSink com.sun.pisces.Dasher
Dasher | public class Dasher extends LineSink (Code) | | The Dasher class takes a series of linear commands
(moveTo , lineTo , close and
end ) and breaks them into smaller segments according to a
dash pattern array and a starting dash phase.
Issues: in J2Se, a zero length dash segment as drawn as a very
short dash, whereas Pisces does not draw anything. The PostScript
semantics are unclear.
|
Constructor Summary | |
public | Dasher() Empty constructor. | public | Dasher(LineSink output, int[] dash, int phase, Transform4 transform) Constructs a Dasher .
Parameters: output - an output LineSink . Parameters: dash - an array of int s containing the dashpattern in S15.16 format. Parameters: phase - an int containing the dash phase inS15.16 format. Parameters: transform - a Transform4 object indicatingthe transform that has been previously applied to all incomingcoordinates. |
Method Summary | |
public void | close() | public void | end() | public void | lineJoin() | public void | lineTo(int x1, int y1) | public void | moveTo(int x0, int y0) | public void | setOutput(LineSink output) Sets the output LineSink of this
Dasher . | public void | setParameters(int[] dash, int phase, Transform4 transform) Sets the parameters of this Dasher .
Parameters: dash - an array of int s containing the dashpattern in S15.16 format. Parameters: phase - an int containing the dash phase inS15.16 format. Parameters: transform - a Transform4 object indicatingthe transform that has been previously applied to all incomingcoordinates. |
firstDashOn | boolean firstDashOn(Code) | | |
startPhase | int startPhase(Code) | | |
starting | boolean starting(Code) | | |
symmetric | boolean symmetric(Code) | | |
Dasher | public Dasher()(Code) | | Empty constructor. setOutput and
setParameters must be called prior to calling any
other methods.
|
Dasher | public Dasher(LineSink output, int[] dash, int phase, Transform4 transform)(Code) | | Constructs a Dasher .
Parameters: output - an output LineSink . Parameters: dash - an array of int s containing the dashpattern in S15.16 format. Parameters: phase - an int containing the dash phase inS15.16 format. Parameters: transform - a Transform4 object indicatingthe transform that has been previously applied to all incomingcoordinates. This is required in order to compute dash lengthsproperly. |
close | public void close()(Code) | | |
lineJoin | public void lineJoin()(Code) | | |
lineTo | public void lineTo(int x1, int y1)(Code) | | |
moveTo | public void moveTo(int x0, int y0)(Code) | | |
setOutput | public void setOutput(LineSink output)(Code) | | Sets the output LineSink of this
Dasher .
Parameters: output - an output LineSink . |
setParameters | public void setParameters(int[] dash, int phase, Transform4 transform)(Code) | | Sets the parameters of this Dasher .
Parameters: dash - an array of int s containing the dashpattern in S15.16 format. Parameters: phase - an int containing the dash phase inS15.16 format. Parameters: transform - a Transform4 object indicatingthe transform that has been previously applied to all incomingcoordinates. This is required in order to compute dash lengthsproperly. |
|
|