/** * Paints border with the context's style's painter. * Implemented for SynthUI interface. */ @Override public void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h) { SynthUtils.getPainter(context).paintListBorder(context, g, x, y, w, h); }
/** * Paint the arrow background. * * @param context the SynthContext. * @param g the Graphics context. * @param c the arrow component. */ @SuppressWarnings("all") void paintBackground(SeaGlassContext context, Graphics g, JComponent c) { context.getPainter().paintArrowButtonBackground(context, g, 0, 0, c.getWidth(), c.getHeight()); }
/** * @see SeaglassUI#paintBorder(javax.swing.plaf.synth.SynthContext, * java.awt.Graphics, int, int, int, int) */ public void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h) { ((SeaGlassContext) context).getPainter().paintButtonBorder(context, g, x, y, w, h); }
/** * Paint the arrow border. * * @param context the SynthContext. * @param g the Graphics context. * @param x the x coordinate corresponding to the upper-left * corner to paint. * @param y the y coordinate corresponding to the upper-left * corner to paint. * @param w the width to paint. * @param h the height to paint. */ @SuppressWarnings("unused") public void paintBorder(SeaGlassContext context, Graphics g, int x, int y, int w, int h) { context.getPainter().paintArrowButtonBorder(context, g, x, y, w, h); }
/** * Paint the button background. * * @param context the Synth context. * @param g the Graphics context. * @param c the button component. */ void paintBackground(SeaGlassContext context, Graphics g, JComponent c) { if (((AbstractButton) c).isContentAreaFilled()) { context.getPainter().paintButtonBackground(context, g, 0, 0, c.getWidth(), c.getHeight()); } }
/** * @see com.seaglasslookandfeel.ui.SeaGlassButtonUI#paint(com.seaglasslookandfeel.SeaGlassContext, * java.awt.Graphics) */ protected void paint(SeaGlassContext context, Graphics g) { SeaGlassArrowButton button = (SeaGlassArrowButton) context.getComponent(); Double scale = (Double)button.getClientProperty("__arrow_scale__"); if (scale == null) { scale = 1.0; } int width = (int) (button.getWidth()*scale); int height = (int) (button.getHeight()*scale); int x = (button.getWidth()-width)/2 * (button.getDirection() == SwingConstants.EAST?-1:1); int y = (button.getHeight()-height)/2 * (button.getDirection() == SwingConstants.SOUTH ?-1:1); context.getPainter().paintArrowButtonForeground(context, g, x, y, width, height, button.getDirection()); }
/** * Paints border with the context's style's painter. * Implemented for SynthUI interface. */ @Override public void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h) { SynthUtils.getPainter(context).paintListBorder(context, g, x, y, w, h); }
/** * @inheritDoc */ @Override public void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h) { ((SeaGlassContext) context).getPainter().paintListBorder(context, g, x, y, w, h); }
/** * Paints border with the context's style's painter. * Implemented for SynthUI interface. */ @Override public void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h) { SynthUtils.getPainter(context).paintListBorder(context, g, x, y, w, h); }
/** * Paints border with the context's style's painter. * Implemented for SynthUI interface. */ @Override public void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h) { SynthUtils.getPainter(context).paintListBorder(context, g, x, y, w, h); }