| java.lang.Object com.sun.pisces.LineSink com.sun.pisces.Stroker
Constructor Summary | |
public | Stroker() Empty constructor. | public | Stroker(LineSink output, int lineWidth, int capStyle, int joinStyle, int miterLimit, Transform4 transform) Constructs a Stroker .
Parameters: output - an output LineSink . Parameters: lineWidth - the desired line width in pixels, in S15.16format. Parameters: capStyle - the desired end cap style, one ofCAP_BUTT , CAP_ROUND orCAP_SQUARE . Parameters: joinStyle - the desired line join style, one ofJOIN_MITER , JOIN_ROUND orJOIN_BEVEL . Parameters: miterLimit - the desired miter limit, in S15.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() | long | lineLength(long ldx, long ldy) | 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
Stroker . | public void | setParameters(int lineWidth, int capStyle, int joinStyle, int miterLimit, Transform4 transform) Sets the parameters of this Stroker .
Parameters: lineWidth - the desired line width in pixels, in S15.16format. Parameters: capStyle - the desired end cap style, one ofCAP_BUTT , CAP_ROUND orCAP_SQUARE . Parameters: joinStyle - the desired line join style, one ofJOIN_MITER , JOIN_ROUND orJOIN_BEVEL . Parameters: miterLimit - the desired miter limit, in S15.16 format. Parameters: transform - a Transform4 object indicatingthe transform that has been previously applied to all incomingcoordinates. |
CAP_BUTT | final public static int CAP_BUTT(Code) | | Constant value for end cap style.
|
CAP_ROUND | final public static int CAP_ROUND(Code) | | Constant value for end cap style.
|
CAP_SQUARE | final public static int CAP_SQUARE(Code) | | Constant value for end cap style.
|
JOIN_BEVEL | final public static int JOIN_BEVEL(Code) | | Constant value for join style.
|
JOIN_MITER | final public static int JOIN_MITER(Code) | | Constant value for join style.
|
JOIN_ROUND | final public static int JOIN_ROUND(Code) | | Constant value for join style.
|
joinSegment | boolean joinSegment(Code) | | |
joinToOrigin | boolean joinToOrigin(Code) | | |
lineToOrigin | boolean lineToOrigin(Code) | | |
lineWidth2 | int lineWidth2(Code) | | |
lx0ly0lx1ly1lx0ply0ppx0py0 | int lx0ly0lx1ly1lx0ply0ppx0py0(Code) | | |
m00_2_m01_2 | double m00_2_m01_2(Code) | | |
m00_m10_m01_m11 | double m00_m10_m01_m11(Code) | | |
m10_2_m11_2 | double m10_2_m11_2(Code) | | |
miterLimit | int miterLimit(Code) | | |
miterLimitSq | long miterLimitSq(Code) | | |
mx0my0mx1my1omxomy | int mx0my0mx1my1omxomy(Code) | | |
numPenSegments | int numPenSegments(Code) | | |
penIncluded | boolean[] penIncluded(Code) | | |
scaledLineWidth2 | long scaledLineWidth2(Code) | | |
sx0sy0sx1sy1x0y0x1y1 | int sx0sy0sx1sy1x0y0x1y1(Code) | | |
Stroker | public Stroker()(Code) | | Empty constructor. setOutput and
setParameters must be called prior to calling any
other methods.
|
Stroker | public Stroker(LineSink output, int lineWidth, int capStyle, int joinStyle, int miterLimit, Transform4 transform)(Code) | | Constructs a Stroker .
Parameters: output - an output LineSink . Parameters: lineWidth - the desired line width in pixels, in S15.16format. Parameters: capStyle - the desired end cap style, one ofCAP_BUTT , CAP_ROUND orCAP_SQUARE . Parameters: joinStyle - the desired line join style, one ofJOIN_MITER , JOIN_ROUND orJOIN_BEVEL . Parameters: miterLimit - the desired miter limit, in S15.16 format. Parameters: transform - a Transform4 object indicatingthe transform that has been previously applied to all incomingcoordinates. This is required in order to produce consistentlyshaped end caps and joins. |
close | public void close()(Code) | | |
lineJoin | public void lineJoin()(Code) | | |
lineLength | long lineLength(long ldx, long ldy)(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
Stroker .
Parameters: output - an output LineSink . |
setParameters | public void setParameters(int lineWidth, int capStyle, int joinStyle, int miterLimit, Transform4 transform)(Code) | | Sets the parameters of this Stroker .
Parameters: lineWidth - the desired line width in pixels, in S15.16format. Parameters: capStyle - the desired end cap style, one ofCAP_BUTT , CAP_ROUND orCAP_SQUARE . Parameters: joinStyle - the desired line join style, one ofJOIN_MITER , JOIN_ROUND orJOIN_BEVEL . Parameters: miterLimit - the desired miter limit, in S15.16 format. Parameters: transform - a Transform4 object indicatingthe transform that has been previously applied to all incomingcoordinates. This is required in order to produce consistentlyshaped end caps and joins. |
|
|