949596979899100101102103104105106
public void update() { // No-op } public Bounds getBounds(Component component) { Bounds bounds = new Bounds(x, y, component.getWidth(), component.getHeight()); if (clip) { bounds.intersect(component.getBounds()); } return bounds; }
363364365366367368369
int height = (int)Math.ceil(component.getHeight() * scaleY); int tx = getTranslatedX(component); int ty = getTranslatedY(component); return new Bounds(tx, ty, width, height); }
303304305306307308309
watermarkGraphics.dispose(); } public Bounds getBounds(Component component) { return new Bounds(0, 0, component.getWidth(), component.getHeight()); }
2728293031323334
*/ public class Drawing extends Image { private Group shapes = new Group(); public int getWidth() { Bounds bounds = shapes.getBounds(); return bounds.width + bounds.x; }
3233343536373839
Bounds bounds = shapes.getBounds(); return bounds.width + bounds.x; } public int getHeight() { Bounds bounds = shapes.getBounds(); return bounds.height + bounds.y; }
106107108109110111112
this.graphics.drawImage(bufferedImage, 0, 0, null); } public Bounds getBounds(Component component) { return new Bounds(0, 0, component.getWidth(), component.getHeight()); }
136137138139140141142
componentGraphics.dispose(); graphics.drawImage(componentImage, x, y, null); } public Bounds getBounds(Component component) { return new Bounds(0, 0, component.getWidth(), component.getHeight()); }
371372373374375376377
83848586878889
graphics.drawImage(componentImage, 0, 0, null); } public Bounds getBounds(Component component) { return new Bounds(0, 0, component.getWidth(), component.getHeight() * 2); }
60616263646566
public void update() { // No-op } public Bounds getBounds(Component component) { return new Bounds(0, 0, component.getWidth(), component.getHeight()); }