package lectures.nester;
import util.annotations.WebDocuments;
@WebDocuments({"Lectures/Nester.pptx", "Lectures/Nester.pdf", "Videos/Nester.avi"})
public class ARectangle implements ScalableShape {
int x, y, width, height;
public ARectangle(int theX, int theY, int theWidth, int theHeight) {
x = theX;
y = theY;
width = theWidth;
height = theHeight;
}
@Override
public int getX() {
return x;
}
@Override
public int getY() {
return y;
}
@Override
public int getWidth() {
return width;
}
@Override
public int getHeight() {
return height;
}
@Override
public void scale(int percentage){
width = (width*percentage)/100;
height = (height*percentage)/100;
}
}