FileDocCategorySizeDatePackage
CenteredRectangle.javaAPI DocExample539Wed Apr 20 14:49:02 BST 2005None

CenteredRectangle

public class CenteredRectangle extends Rectangle implements Centered

Fields Summary
private double
cx
private double
cy
Constructors Summary
public CenteredRectangle(double cx, double cy, double w, double h)

 
    super(w, h); 
    this.cx = cx;
    this.cy = cy;
  
Methods Summary
public doublegetCenterX()

 return cx; 
public doublegetCenterY()

 return cy; 
public voidsetCenter(double x, double y)

 cx = x; cy = y;