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 / RoundRectangle2D$Float.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  1.3 KB  |  79 lines

  1. package java.awt.geom;
  2.  
  3. public class RoundRectangle2D$Float extends RoundRectangle2D {
  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.    public float arcwidth;
  11.    public float archeight;
  12.  
  13.    public RoundRectangle2D$Float() {
  14.    }
  15.  
  16.    public RoundRectangle2D$Float(float var1, float var2, float var3, float var4, float var5, float var6) {
  17.       this.setRoundRect(var1, var2, var3, var4, var5, var6);
  18.    }
  19.  
  20.    public double getX() {
  21.       return (double)this.field_0;
  22.    }
  23.  
  24.    public double getY() {
  25.       return (double)this.field_1;
  26.    }
  27.  
  28.    public double getWidth() {
  29.       return (double)this.width;
  30.    }
  31.  
  32.    public double getHeight() {
  33.       return (double)this.height;
  34.    }
  35.  
  36.    public double getArcWidth() {
  37.       return (double)this.arcwidth;
  38.    }
  39.  
  40.    public double getArcHeight() {
  41.       return (double)this.archeight;
  42.    }
  43.  
  44.    public boolean isEmpty() {
  45.       return this.width <= 0.0F || this.height <= 0.0F;
  46.    }
  47.  
  48.    public void setRoundRect(float var1, float var2, float var3, float var4, float var5, float var6) {
  49.       this.field_0 = var1;
  50.       this.field_1 = var2;
  51.       this.width = var3;
  52.       this.height = var4;
  53.       this.arcwidth = var5;
  54.       this.archeight = var6;
  55.    }
  56.  
  57.    public void setRoundRect(double var1, double var3, double var5, double var7, double var9, double var11) {
  58.       this.field_0 = (float)var1;
  59.       this.field_1 = (float)var3;
  60.       this.width = (float)var5;
  61.       this.height = (float)var7;
  62.       this.arcwidth = (float)var9;
  63.       this.archeight = (float)var11;
  64.    }
  65.  
  66.    public void setRoundRect(RoundRectangle2D var1) {
  67.       this.field_0 = (float)((RectangularShape)var1).getX();
  68.       this.field_1 = (float)((RectangularShape)var1).getY();
  69.       this.width = (float)((RectangularShape)var1).getWidth();
  70.       this.height = (float)((RectangularShape)var1).getHeight();
  71.       this.arcwidth = (float)var1.getArcWidth();
  72.       this.archeight = (float)var1.getArcHeight();
  73.    }
  74.  
  75.    public Rectangle2D getBounds2D() {
  76.       return new Rectangle2D.Float(this.field_0, this.field_1, this.width, this.height);
  77.    }
  78. }
  79.