public void update() {
// No-op
}
public void repaint(Component component, int x, int y, int width, int height) {
Container parent = component.getParent();
if (parent != null) {
int tx = getTranslatedX(component);
int ty = getTranslatedY(component);
x = (int)((x * scaleX) + component.getX() + tx);
y = (int)((y * scaleY) + component.getY() + ty);
width = (int)Math.ceil(width * scaleX);
height = (int)Math.ceil(height * scaleY);
parent.repaint(x, y, width, height);
}
}