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 | |
| public double[] | |
| public void | curveTo(final double x1, final double y1, final double x2, final double y2, final double x3, final double y3)
Implements com.
|
| pack-priv void | |
| private void | |
| private void | |
| private void | |
| private void | |
| public 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 | |
| public void | quadTo(final double x1, final double y1, final double x2, final double y2)
Implements com.
|
| public void | |
| public void | setStartFlag(boolean first)
Implements com.
|
| 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 com.
| |
| copyDashArray | back to summary |
|---|---|
| public 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 com.
| |
| 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) | |
| 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 |
|---|---|
| public 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 com.
| |
| moveTo | back to summary |
|---|---|
| public void moveTo(final double x0, final double y0) Implements com.
| |
| pathDone | back to summary |
|---|---|
| public void pathDone() Implements com.
| |
| quadTo | back to summary |
|---|---|
| public void quadTo(final double x1, final double y1, final double x2, final double y2) Implements com.
| |
| setMonotonizerStartFlag | back to summary |
|---|---|
| public void setMonotonizerStartFlag(boolean first) | |
| setStartFlag | back to summary |
|---|---|
| public void setStartFlag(boolean first) Implements com.
| |
| 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() | |