Float/Double Classes

   . . .
   public static class Double extends Rectangle2D 
      public double getX() { return x; } 
      public double getY() { return y; }
      public double getWidth() { return width; }
      public double getHeight() { return height;} 
      public void setRect(double x, double y, 
         double w, double h) 
      { 
         this.x = x; this.y = y; 
         this.width = w; this.height = h; 
      } 
      ... 
      public double x; 
      public double y; 
      public double width; 
      public double height; 
   }
   ...
}


previous | start | next .... [Slide 57] ....