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 / geom / Ellipse2D$Float.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  894 b   |  56 lines

  1. package java.awt.geom;
  2.  
  3. public class Ellipse2D$Float extends Ellipse2D {
  4.    // $FF: renamed from: x float
  5.    public float field_0;
  6.    // $FF: renamed from: y float
  7.    public float field_1;
  8.    public float width;
  9.    public float height;
  10.  
  11.    public Ellipse2D$Float() {
  12.    }
  13.  
  14.    public Ellipse2D$Float(float var1, float var2, float var3, float var4) {
  15.       this.setFrame(var1, var2, var3, var4);
  16.    }
  17.  
  18.    public double getX() {
  19.       return (double)this.field_0;
  20.    }
  21.  
  22.    public double getY() {
  23.       return (double)this.field_1;
  24.    }
  25.  
  26.    public double getWidth() {
  27.       return (double)this.width;
  28.    }
  29.  
  30.    public double getHeight() {
  31.       return (double)this.height;
  32.    }
  33.  
  34.    public boolean isEmpty() {
  35.       return (double)this.width <= (double)0.0F || (double)this.height <= (double)0.0F;
  36.    }
  37.  
  38.    public void setFrame(float var1, float var2, float var3, float var4) {
  39.       this.field_0 = var1;
  40.       this.field_1 = var2;
  41.       this.width = var3;
  42.       this.height = var4;
  43.    }
  44.  
  45.    public void setFrame(double var1, double var3, double var5, double var7) {
  46.       this.field_0 = (float)var1;
  47.       this.field_1 = (float)var3;
  48.       this.width = (float)var5;
  49.       this.height = (float)var7;
  50.    }
  51.  
  52.    public Rectangle2D getBounds2D() {
  53.       return new Rectangle2D.Float(this.field_0, this.field_1, this.width, this.height);
  54.    }
  55. }
  56.