| |
|
| java.lang.Object java.awt.geom.FlatteningPathIterator
buf | double buf(Code) | | The points buffer
|
bufEmpty | boolean bufEmpty(Code) | | The indicator of empty points buffer
|
bufIndex | int bufIndex(Code) | | The inner cursor position in points buffer
|
bufLimit | int bufLimit(Code) | | The curve subdivision limit
|
bufSize | int bufSize(Code) | | The current points buffer size
|
bufSubdiv | int bufSubdiv(Code) | | The current subdivision count
|
bufType | int bufType(Code) | | The type of current segment to be flat
|
coords | double coords(Code) | | The tamporary buffer for getting points from PathIterator
|
flatness | double flatness(Code) | | The flatness of new path
|
flatness2 | double flatness2(Code) | | The square of flatness
|
px | double px(Code) | | The x coordinate of previous path segment
|
py | double py(Code) | | The y coordinate of previous path segment
|
FlatteningPathIterator | public FlatteningPathIterator(PathIterator path, double flatness)(Code) | | |
FlatteningPathIterator | public FlatteningPathIterator(PathIterator path, double flatness, int limit)(Code) | | |
currentSegment | public int currentSegment(float[] coords)(Code) | | |
currentSegment | public int currentSegment(double[] coords)(Code) | | |
evaluate | void evaluate()(Code) | | Calculates flat path points for current segment of the source shape.
Line segment is flat by itself. Flatness of quad and cubic curves evaluated by getFlatnessSq() method.
Curves subdivided until current flatness is bigger than user defined and subdivision limit isn't exhausted.
Single source segment translated to series of buffer points. The less flatness the bigger serries.
Every currentSegment() call extract one point from the buffer. When series completed evaluate() takes next source shape segment.
|
getFlatness | public double getFlatness()(Code) | | |
getRecursionLimit | public int getRecursionLimit()(Code) | | |
getWindingRule | public int getWindingRule()(Code) | | |
isDone | public boolean isDone()(Code) | | |
|
|
|