home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2007 June / SAN CD 6-2007 CD-ROM 25.iso / pc / Software / AstroGrav_Win / Java / jre1.6.0 / lib / rt.jar / java / awt / BasicStroke$FillAdapter.class (.txt) < prev    next >
Encoding:
Java Class File  |  2006-11-29  |  1.4 KB  |  74 lines

  1. package java.awt;
  2.  
  3. import java.awt.geom.Path2D;
  4. import sun.dc.path.FastPathProducer;
  5. import sun.dc.path.PathConsumer;
  6. import sun.dc.path.PathException;
  7.  
  8. class BasicStroke$FillAdapter implements PathConsumer {
  9.    boolean closed;
  10.    Path2D.Float path;
  11.    // $FF: synthetic field
  12.    final BasicStroke this$0;
  13.  
  14.    public BasicStroke$FillAdapter(BasicStroke var1) {
  15.       this.this$0 = var1;
  16.       this.path = new Path2D.Float(1);
  17.    }
  18.  
  19.    public Shape getShape() {
  20.       return this.path;
  21.    }
  22.  
  23.    public void dispose() {
  24.    }
  25.  
  26.    public PathConsumer getConsumer() {
  27.       return null;
  28.    }
  29.  
  30.    public void beginPath() {
  31.    }
  32.  
  33.    public void beginSubpath(float var1, float var2) {
  34.       if (this.closed) {
  35.          this.path.closePath();
  36.          this.closed = false;
  37.       }
  38.  
  39.       this.path.moveTo(var1, var2);
  40.    }
  41.  
  42.    public void appendLine(float var1, float var2) {
  43.       this.path.lineTo(var1, var2);
  44.    }
  45.  
  46.    public void appendQuadratic(float var1, float var2, float var3, float var4) {
  47.       this.path.quadTo(var1, var2, var3, var4);
  48.    }
  49.  
  50.    public void appendCubic(float var1, float var2, float var3, float var4, float var5, float var6) {
  51.       this.path.curveTo(var1, var2, var3, var4, var5, var6);
  52.    }
  53.  
  54.    public void closedSubpath() {
  55.       this.closed = true;
  56.    }
  57.  
  58.    public void endPath() {
  59.       if (this.closed) {
  60.          this.path.closePath();
  61.          this.closed = false;
  62.       }
  63.  
  64.    }
  65.  
  66.    public void useProxy(FastPathProducer var1) throws PathException {
  67.       var1.sendTo(this);
  68.    }
  69.  
  70.    public long getCPathConsumer() {
  71.       return 0L;
  72.    }
  73. }
  74.