public void paintContent(SeaGlassContext context, Graphics g, Rectangle bounds) { SeaGlassLookAndFeel.updateSubregion(context, g, bounds); context .getPainter() .paintToolBarContentBackground( context, g, bounds.x, bounds.y, bounds.width, bounds.height, toolBar.getOrientation()); context .getPainter() .paintToolBarContentBorder( context, g, bounds.x, bounds.y, bounds.width, bounds.height, toolBar.getOrientation()); }
@Override protected void paintDragWindow(Graphics g) { int w = dragWindow.getWidth(); int h = dragWindow.getHeight(); SeaGlassContext context = getContext(toolBar, Region.TOOL_BAR_DRAG_WINDOW, dragWindowStyle); SeaGlassLookAndFeel.updateSubregion(context, g, new Rectangle(0, 0, w, h)); context .getPainter() .paintToolBarDragWindowBackground(context, g, 0, 0, w, h, dragWindow.getOrientation()); context .getPainter() .paintToolBarDragWindowBorder(context, g, 0, 0, w, h, dragWindow.getOrientation()); context.dispose(); }
/** * DOCUMENT ME! * * @param g DOCUMENT ME! * @param c DOCUMENT ME! * @param region DOCUMENT ME! */ protected void paintSearchButton(Graphics g, JTextComponent c, Region region) { Rectangle bounds; if (region == SeaGlassRegion.SEARCH_FIELD_FIND_BUTTON) { bounds = getFindButtonBounds(); } else { bounds = getCancelButtonBounds(); } SeaGlassContext subcontext = getContext(c, region); SeaGlassLookAndFeel.updateSubregion(subcontext, g, bounds); SeaGlassSynthPainterImpl painter = (SeaGlassSynthPainterImpl) subcontext.getPainter(); painter.paintSearchButtonForeground( subcontext, g, bounds.x, bounds.y, bounds.width, bounds.height); subcontext.dispose(); }