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.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private double[] | |
| private int | |
| private final double[] | |
| pack-priv static final double | |
| private final TransformingPathConsumer2D. | |
| private double | |
| private double | |
| private double | |
| private double[] | |
| pack-priv final ArrayCacheDouble. | |
| private int | |
| private boolean | |
| pack-priv static final double | |
| private int | |
| private double[] | |
| pack-priv final ArrayCacheDouble. | |
| private int | |
| private final Dasher. | |
| pack-priv static final double | |
| pack-priv static final double | |
| private boolean | |
| private DPathConsumer2D | |
| private boolean | |
| private double | |
| pack-priv final RendererContext | |
| pack-priv static final int | |
| pack-priv boolean | |
| private boolean | |
| private int | |
| private boolean | |
| private double | |
| private boolean | |
| private double | |
| private double | |
| private double |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | _curveTo(final double x1, final double y1, final double x2, final double y2, final double x3, final double y3)
|
| private void | |
| private void | |
| public void | |
| pack-priv double[] | |
| public void | curveTo(final double x1, final double y1, final double x2, final double y2, final double x3, final double y3)
Implements sun.
|
| pack-priv void | |
| private void | |
| private void | |
| public long | getNativeConsumer()
Implements sun. If a given PathConsumer performs all or most of its work natively then it can return a (non-zero) pointer to a native function vector that defines C functions for all of the above methods. |
| private void | |
| private void | |
| pack-priv Dasher | Returns: this instancean output out, final double[] DPathConsumer2D.an array of dash, final int doubles containing the dash patternlength of the given dash array dashLen, double a phase, final boolean double containing the dash phasetrue to indicate to recycle the given dash array recycleDashes)Initialize the |
| public void | |
| public void | |
| public void | pathDone()
Implements sun. Called after the last segment of the last subpath when the iteration of the path segments is completely done. |
| public void | quadTo(final double x1, final double y1, final double x2, final double y2)
Implements sun.
|
| public void | |
| public void | setStartFlag(boolean first)
Implements sun.
|
| private void | skipCurveTo(final double x1, final double y1, final double x2, final double y2, final double x3, final double y3)
|
| public void | |
| private void | |
| private void | |
| private void | |
| private void |
| clipRect | back to summary |
|---|---|
| private double[] clipRect | |
| cOutCode | back to summary |
|---|---|
| private int cOutCode | |
| curCurvepts | back to summary |
|---|---|
| private final double[] curCurvepts | |
| CURVE_LEN_ERR | back to summary |
|---|---|
| pack-priv static final double CURVE_LEN_ERR | |
| curveSplitter | back to summary |
|---|---|
| private final TransformingPathConsumer2D. | |
| cx0 | back to summary |
|---|---|
| private double cx0 | |
| cy0 | back to summary |
|---|---|
| private double cy0 | |
| cycleLen | back to summary |
|---|---|
| private double cycleLen | |
| dash | back to summary |
|---|---|
| private double[] dash | |
| dashes_ref | back to summary |
|---|---|
| pack-priv final ArrayCacheDouble. | |
| dashLen | back to summary |
|---|---|
| private int dashLen | |
| dashOn | back to summary |
|---|---|
| private boolean dashOn | |
| EPS | back to summary |
|---|---|
| pack-priv static final double EPS | |
| firstSegidx | back to summary |
|---|---|
| private int firstSegidx | |
| firstSegmentsBuffer | back to summary |
|---|---|
| private double[] firstSegmentsBuffer | |
| firstSegmentsBuffer_ref | back to summary |
|---|---|
| pack-priv final ArrayCacheDouble. | |
| idx | back to summary |
|---|---|
| private int idx | |
| li | back to summary |
|---|---|
| private final Dasher. | |
| MAX_CYCLES | back to summary |
|---|---|
| pack-priv static final double MAX_CYCLES | |
| MIN_T_INC | back to summary |
|---|---|
| pack-priv static final double MIN_T_INC | |
| needsMoveTo | back to summary |
|---|---|
| private boolean needsMoveTo | |
| out | back to summary |
|---|---|
| private DPathConsumer2D out | |
| outside | back to summary |
|---|---|
| private boolean outside | |
| phase | back to summary |
|---|---|
| private double phase | |
| rdrCtx | back to summary |
|---|---|
| pack-priv final RendererContext rdrCtx | |
| REC_LIMIT | back to summary |
|---|---|
| pack-priv static final int REC_LIMIT | |
| recycleDashes | back to summary |
|---|---|
| pack-priv boolean recycleDashes | |
| startDashOn | back to summary |
|---|---|
| private boolean startDashOn | |
| startIdx | back to summary |
|---|---|
| private int startIdx | |
| starting | back to summary |
|---|---|
| private boolean starting | |
| startPhase | back to summary |
|---|---|
| private double startPhase | |
| subdivide | back to summary |
|---|---|
| private boolean subdivide | |
| sx0 | back to summary |
|---|---|
| private double sx0 | |
| sy0 | back to summary |
|---|---|
| private double sy0 | |
| totalSkipLen | back to summary |
|---|---|
| private double totalSkipLen | |
| Dasher | back to summary |
|---|---|
| pack-priv Dasher(final RendererContext rdrCtx) Constructs a
| |
| _curveTo | back to summary |
|---|---|
| private void _curveTo(final double x1, final double y1, final double x2, final double y2, final double x3, final double y3) | |
| _lineTo | back to summary |
|---|---|
| private void _lineTo(final double x1, final double y1) | |
| _quadTo | back to summary |
|---|---|
| private void _quadTo(final double x1, final double y1, final double x2, final double y2) | |
| closePath | back to summary |
|---|---|
| public void closePath() Implements sun.
| |
| copyDashArray | back to summary |
|---|---|
| pack-priv double[] copyDashArray(final float[] dashes) | |
| curveTo | back to summary |
|---|---|
| public void curveTo(final double x1, final double y1, final double x2, final double y2, final double x3, final double y3) Implements sun.
| |
| dispose | back to summary |
|---|---|
| pack-priv void dispose() Disposes this dasher: clean up before reusing this instance | |
| emitFirstSegments | back to summary |
|---|---|
| private void emitFirstSegments() | |
| emitSeg | back to summary |
|---|---|
| private void emitSeg(double[] buf, int off, int type) | |
| getNativeConsumer | back to summary |
|---|---|
| public long getNativeConsumer() Implements sun. Doc from sun. If a given PathConsumer performs all or most of its work natively then it can return a (non-zero) pointer to a native function vector that defines C functions for all of the above methods. The specific pointer it returns is a pointer to a PathConsumerVec structure as defined in the include file src/share/native/sun/java2d/pipe/PathConsumer2D.h
| |
| goTo | back to summary |
|---|---|
| private void goTo(final double[] pts, final int off, final int type, final boolean on) | |
| goTo_starting | back to summary |
|---|---|
| private void goTo_starting(final double[] pts, final int off, final int type) | |
| init | back to summary |
|---|---|
| pack-priv Dasher init(final DPathConsumer2D out, final double[] dash, final int dashLen, double phase, final boolean recycleDashes) Initialize the
| |
| lineTo | back to summary |
|---|---|
| public void lineTo(final double x1, final double y1) Implements sun.
| |
| moveTo | back to summary |
|---|---|
| public void moveTo(final double x0, final double y0) Implements sun.
| |
| pathDone | back to summary |
|---|---|
| public void pathDone() Implements sun. Doc from sun. Called after the last segment of the last subpath when the
iteration of the path segments is completely done. This
method serves to trigger the end of path processing in the
consumer that would normally be triggered when a
| |
| quadTo | back to summary |
|---|---|
| public void quadTo(final double x1, final double y1, final double x2, final double y2) Implements sun.
| |
| setMonotonizerStartFlag | back to summary |
|---|---|
| public void setMonotonizerStartFlag(boolean first) | |
| setStartFlag | back to summary |
|---|---|
| public void setStartFlag(boolean first) Implements sun.
| |
| skipCurveTo | back to summary |
|---|---|
| private void skipCurveTo(final double x1, final double y1, final double x2, final double y2, final double x3, final double y3) | |
| skipLen | back to summary |
|---|---|
| public void skipLen() | |
| skipLineTo | back to summary |
|---|---|
| private void skipLineTo(final double x1, final double y1) | |
| skipQuadTo | back to summary |
|---|---|
| private void skipQuadTo(final double x1, final double y1, final double x2, final double y2) | |
| skipSomethingTo | back to summary |
|---|---|
| private void skipSomethingTo(final int type) | |
| somethingTo | back to summary |
|---|---|
| private void somethingTo(final int type) | |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private final double[] | |
| private int | |
| private boolean | |
| private final double[] | |
| private double | |
| private double | |
| private double | |
| private double | |
| private double | |
| private final double[] | |
| private double | |
| private final double[][] | |
| private int | |
| private final boolean[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| private boolean | |
| pack-priv void | |
| pack-priv double | |
| pack-priv double | |
| private double | |
| pack-priv void | |
| pack-priv double |
| cachedHaveLowAcceleration | back to summary |
|---|---|
| private int cachedHaveLowAcceleration | |
| curLeafCtrlPolyLengths | back to summary |
|---|---|
| private final double[] curLeafCtrlPolyLengths | |
| curveType | back to summary |
|---|---|
| private int curveType | |
| done | back to summary |
|---|---|
| private boolean done | |
| flatLeafCoefCache | back to summary |
|---|---|
| private final double[] flatLeafCoefCache | |
| lastSegLen | back to summary |
|---|---|
| private double lastSegLen | |
| lastT | back to summary |
|---|---|
| private double lastT | |
| lenAtLastSplit | back to summary |
|---|---|
| private double lenAtLastSplit | |
| lenAtLastT | back to summary |
|---|---|
| private double lenAtLastT | |
| lenAtNextT | back to summary |
|---|---|
| private double lenAtNextT | |
| nextRoots | back to summary |
|---|---|
| private final double[] nextRoots | |
| nextT | back to summary |
|---|---|
| private double nextT | |
| recCurveStack | back to summary |
|---|---|
| private final double[][] recCurveStack | |
| recLevel | back to summary |
|---|---|
| private int recLevel | |
| sidesRight | back to summary |
|---|---|
| private final boolean[] sidesRight | |
| LengthIterator | back to summary |
|---|---|
| pack-priv LengthIterator() | |
| goLeft | back to summary |
|---|---|
| private void goLeft() | |
| goToNextLeaf | back to summary |
|---|---|
| private void goToNextLeaf() | |
| haveLowAcceleration | back to summary |
|---|---|
| private boolean haveLowAcceleration(final double err) | |
| initializeIterationOnCurve | back to summary |
|---|---|
| pack-priv void initializeIterationOnCurve(final double[] pts, final int type) | |
| lastSegLen | back to summary |
|---|---|
| pack-priv double lastSegLen() | |
| next | back to summary |
|---|---|
| pack-priv double next(final double len) | |
| onLeaf | back to summary |
|---|---|
| private double onLeaf() | |
| reset | back to summary |
|---|---|
| pack-priv void reset() Reset this LengthIterator. | |
| totalLength | back to summary |
|---|---|
| pack-priv double totalLength() | |