FileDocCategorySizeDatePackage
test.javaAPI DocExample1900Mon Jan 18 13:55:12 GMT 1999None

Rectangle

public class Rectangle extends Object

Fields Summary
static final int
FALSE
static final int
TRUE
static final int
MAYBE
int
x
int
y
int
w
int
h
Constructors Summary
public Rectangle(int x_, int y_, int w_, int h_)
Rectangle

param
x_
param
y_
param
w_
param
h_


         

/* @c2j++: "Rectangle(int x_, int y_, unsigned w_, unsigned h_)" replacement: unsigned  to int  */
/* @c2j++: "Rectangle(int x_, int y_, int w_, unsigned h_)" replacement: unsigned  to int  */
       

 x = x_;
	y = y_;
	w = w_;
	h = h_;
	
Methods Summary
static voidmain()

/* @c2j++: "Rectangle * rect = new Rectangle(10,10,100,100);" replacement: * to " " */
  Rectangle   rect = new Rectangle(10,10,100,100);
/* @c2j++: "rect->print();" replacement: -> to . */
  rect.print();
public voidmove(int x_, int y_)
move

param
x_
param
y_

   //This is the first comment
   //This is the second comment
   x = x_;
   y = y_;
public voidprint()
print

/** @c2j++ Replacement from cout << "Rectangle " << " " << y <<		" " << w << " " << h << endl; System.out.println("Rectangle " + " " + String.valueOf(y) + " " + String.valueOf(w) + " " + String.valueOf(h));*/ 
 System.out.println("Rectangle " + " " + String.valueOf(y) + " " + String.valueOf(w) + " " + String.valueOf(h));
public voidresize(int w_, int h_)
resize

param
w_
param
h_

   w = w_;
   h = h_;