/** * {@inheritDoc} */ @Override public Graphics2D prepare(Component component, Graphics2D graphics) { graphics.rotate(theta, component.getWidth() * 0.5, component.getHeight() * 0.5); return graphics; }
/** * {@inheritDoc} */ @Override public Graphics2D prepare(Component component, Graphics2D graphics) { graphics.rotate(theta, component.getWidth() * 0.5, component.getHeight() * 0.5); return graphics; }
@Override public void update() { graphics.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, opacity)); graphics.setColor(color); graphics.fillRect(0, 0, component.getWidth(), component.getHeight()); component = null; graphics = null; }
@Override public void update() { graphics.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, opacity)); graphics.setColor(color); graphics.fillRect(0, 0, component.getWidth(), component.getHeight()); component = null; graphics = null; }
/** * Flags the entire component as needing to be repainted. * * @param immediate */ public final void repaint(boolean immediate) { repaint(0, 0, getWidth(), getHeight(), immediate); }
/** * Returns the component's bounding area. * * @return * The component's bounding area. The <tt>x</tt> and <tt>y</tt> values are * relative to the parent container. */ public Bounds getBounds() { return new Bounds(x, y, getWidth(), getHeight()); }
@Override public Bounds getBounds(Component component) { return new Bounds(0, 0, component.getWidth(), component.getHeight()); }
@Override public Bounds getBounds(Component component) { return new Bounds(0, 0, component.getWidth(), component.getHeight()); }
/** * Determines the visible area of a component. The visible area is defined * as the intersection of the component's area with the visible area of its * ancestors, or, in the case of a Viewport, the viewport bounds. * * @return * The visible area of the component in the component's coordinate space, or * <tt>null</tt> if the component is either not showing or not part of the * component hierarchy. */ public Bounds getVisibleArea() { return getVisibleArea(0, 0, getWidth(), getHeight()); }
@Override public Bounds getBounds(Component component) { return new Bounds(0, 0, component.getWidth(), component.getHeight()); }
/** * Returns the component's bounding area. * * @return * The component's bounding area. The <tt>x</tt> and <tt>y</tt> values are * relative to the parent container. */ public Bounds getBounds() { return new Bounds(x, y, getWidth(), getHeight()); }
@Override public Bounds getBounds(Component component) { return new Bounds(xOffset - blurRadius, yOffset - blurRadius, component.getWidth() + blurRadius * 2, component.getHeight() + blurRadius * 2); }
/** * Flags the entire component as needing to be repainted. * * @param immediate */ public final void repaint(boolean immediate) { repaint(0, 0, getWidth(), getHeight(), immediate); }
/** * {@inheritDoc} */ @Override public AffineTransform getTransform(Component component) { return AffineTransform.getRotateInstance(theta, component.getWidth() * 0.5, component.getHeight() * 0.5); } }
@Override public Bounds getBounds(Component component) { int width = (int)Math.ceil(component.getWidth() * scaleX); int height = (int)Math.ceil(component.getHeight() * scaleY); int tx = getTranslatedX(component); int ty = getTranslatedY(component); return new Bounds(tx, ty, width, height); }
@Override public Bounds getBounds(Component component) { int width = (int)Math.ceil(component.getWidth() * scaleX); int height = (int)Math.ceil(component.getHeight() * scaleY); int tx = getTranslatedX(component); int ty = getTranslatedY(component); return new Bounds(tx, ty, width, height); }
@Override public Bounds getBounds(Component component) { int width = component.getWidth(); int height = component.getHeight(); Bounds bounds = new Bounds(x, y, width, height); if (clip) { bounds = bounds.intersect(0, 0, width, height); } return bounds; }
@Override public Bounds getBounds(Component component) { int width = component.getWidth(); int height = component.getHeight(); Bounds bounds = new Bounds(x, y, width, height); if (clip) { bounds = bounds.intersect(0, 0, width, height); } return bounds; }
@Override protected void childLayout(int breakWidth) { ComponentNode componentNode = (ComponentNode) getNode(); Component component = componentNode.getComponent(); if (component == null) { setSize(0, 0); } else { component.validate(); component.setSize(component.getPreferredWidth(), component.getPreferredHeight()); setSize(component.getWidth(), component.getHeight()); } }
@Override protected void childLayout(int breakWidth) { ComponentNode componentNode = (ComponentNode) getNode(); Component component = componentNode.getComponent(); if (component == null) { setSize(0, 0); } else { component.validate(); component.setSize(component.getPreferredWidth(), component.getPreferredHeight()); setSize(component.getWidth(), component.getHeight()); } }