home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &n…he Search for Life DVD 2 / DVD-ROM.iso / install / jre1_3 / lib / rt.jar / java / awt / BasicStroke$FillAdapter.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  1.3 KB  |  67 lines

  1. package java.awt;
  2.  
  3. import java.awt.geom.GeneralPath;
  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.    GeneralPath path;
  11.    // $FF: synthetic field
  12.    private final BasicStroke this$0;
  13.  
  14.    public BasicStroke$FillAdapter(BasicStroke var1) {
  15.       this.this$0 = var1;
  16.       this.path = new GeneralPath(1);
  17.    }
  18.  
  19.    public Shape getShape() {
  20.       return this.path;
  21.    }
  22.  
  23.    public void beginPath() {
  24.    }
  25.  
  26.    public void beginSubpath(float var1, float var2) {
  27.       if (this.closed) {
  28.          this.path.closePath();
  29.          this.closed = false;
  30.       }
  31.  
  32.       this.path.moveTo(var1, var2);
  33.    }
  34.  
  35.    public void appendLine(float var1, float var2) {
  36.       this.path.lineTo(var1, var2);
  37.    }
  38.  
  39.    public void appendQuadratic(float var1, float var2, float var3, float var4) {
  40.       this.path.quadTo(var1, var2, var3, var4);
  41.    }
  42.  
  43.    public void appendCubic(float var1, float var2, float var3, float var4, float var5, float var6) {
  44.       this.path.curveTo(var1, var2, var3, var4, var5, var6);
  45.    }
  46.  
  47.    public void closedSubpath() {
  48.       this.closed = true;
  49.    }
  50.  
  51.    public void endPath() {
  52.       if (this.closed) {
  53.          this.path.closePath();
  54.          this.closed = false;
  55.       }
  56.  
  57.    }
  58.  
  59.    public void useProxy(FastPathProducer var1) throws PathException {
  60.       var1.sendTo(this);
  61.    }
  62.  
  63.    public long getCPathConsumer() {
  64.       return 0L;
  65.    }
  66. }
  67.