home *** CD-ROM | disk | FTP | other *** search
- package java.awt;
-
- import java.awt.geom.GeneralPath;
- import sun.dc.path.FastPathProducer;
- import sun.dc.path.PathConsumer;
- import sun.dc.path.PathException;
-
- class BasicStroke$FillAdapter implements PathConsumer {
- boolean closed;
- GeneralPath path;
- // $FF: synthetic field
- private final BasicStroke this$0;
-
- public BasicStroke$FillAdapter(BasicStroke var1) {
- this.this$0 = var1;
- this.path = new GeneralPath(1);
- }
-
- public Shape getShape() {
- return this.path;
- }
-
- public void beginPath() {
- }
-
- public void beginSubpath(float var1, float var2) {
- if (this.closed) {
- this.path.closePath();
- this.closed = false;
- }
-
- this.path.moveTo(var1, var2);
- }
-
- public void appendLine(float var1, float var2) {
- this.path.lineTo(var1, var2);
- }
-
- public void appendQuadratic(float var1, float var2, float var3, float var4) {
- this.path.quadTo(var1, var2, var3, var4);
- }
-
- public void appendCubic(float var1, float var2, float var3, float var4, float var5, float var6) {
- this.path.curveTo(var1, var2, var3, var4, var5, var6);
- }
-
- public void closedSubpath() {
- this.closed = true;
- }
-
- public void endPath() {
- if (this.closed) {
- this.path.closePath();
- this.closed = false;
- }
-
- }
-
- public void useProxy(FastPathProducer var1) throws PathException {
- var1.sendTo(this);
- }
-
- public long getCPathConsumer() {
- return 0L;
- }
- }
-