public void update() {
// No-op
}
public void repaint(final 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);
int xUpdated = (int)((x * scaleX) + component.getX() + tx);
int yUpdated = (int)((y * scaleY) + component.getY() + ty);
int widthUpdated = (int)Math.ceil(width * scaleX);
int heightUpdated = (int)Math.ceil(height * scaleY);
parent.repaint(xUpdated, yUpdated, widthUpdated, heightUpdated);
}
}