net.xoetrope.optional.laf.synth
Class BackgroundPainter

java.lang.Object
  extended by javax.swing.plaf.synth.SynthPainter
      extended by net.xoetrope.optional.laf.synth.BackgroundPainter

public class BackgroundPainter
extends javax.swing.plaf.synth.SynthPainter

A Synth support class for painting panel backgrounds

Copyright: Copyright (c) Xoetrope Ltd., 1998-2003
License: see license.txt $Revision: 1.14 $


Constructor Summary
BackgroundPainter()
           
 
Method Summary
 void paintDesktopPaneBackground(javax.swing.plaf.synth.SynthContext context, java.awt.Graphics g, int x, int y, int w, int h)
          Paint the background.
 void paintInternalFrameBorder(javax.swing.plaf.synth.SynthContext context, java.awt.Graphics g, int x, int y, int w, int h)
          Paints the border of an internal frame.
 void paintInternalFrameTitlePaneBackground(javax.swing.plaf.synth.SynthContext context, java.awt.Graphics g, int x, int y, int w, int h)
          Paints the internal frame title background.
 void paintInternalFrameTitlePaneBorder(javax.swing.plaf.synth.SynthContext context, java.awt.Graphics g, int x, int y, int w, int h)
          Paints the border of an internal frame title pane border.
 void paintPanelBackground(javax.swing.plaf.synth.SynthContext context, java.awt.Graphics g, int x, int y, int w, int h)
          Paint the background.
 void paintPanelBorder(javax.swing.plaf.synth.SynthContext context, java.awt.Graphics g, int x, int y, int w, int h)
          Paint the border
 
Methods inherited from class javax.swing.plaf.synth.SynthPainter
paintArrowButtonBackground, paintArrowButtonBorder, paintArrowButtonForeground, paintButtonBackground, paintButtonBorder, paintCheckBoxBackground, paintCheckBoxBorder, paintCheckBoxMenuItemBackground, paintCheckBoxMenuItemBorder, paintColorChooserBackground, paintColorChooserBorder, paintComboBoxBackground, paintComboBoxBorder, paintDesktopIconBackground, paintDesktopIconBorder, paintDesktopPaneBorder, paintEditorPaneBackground, paintEditorPaneBorder, paintFileChooserBackground, paintFileChooserBorder, paintFormattedTextFieldBackground, paintFormattedTextFieldBorder, paintInternalFrameBackground, paintLabelBackground, paintLabelBorder, paintListBackground, paintListBorder, paintMenuBackground, paintMenuBarBackground, paintMenuBarBorder, paintMenuBorder, paintMenuItemBackground, paintMenuItemBorder, paintOptionPaneBackground, paintOptionPaneBorder, paintPasswordFieldBackground, paintPasswordFieldBorder, paintPopupMenuBackground, paintPopupMenuBorder, paintProgressBarBackground, paintProgressBarBorder, paintProgressBarForeground, paintRadioButtonBackground, paintRadioButtonBorder, paintRadioButtonMenuItemBackground, paintRadioButtonMenuItemBorder, paintRootPaneBackground, paintRootPaneBorder, paintScrollBarBackground, paintScrollBarBorder, paintScrollBarThumbBackground, paintScrollBarThumbBorder, paintScrollBarTrackBackground, paintScrollBarTrackBorder, paintScrollPaneBackground, paintScrollPaneBorder, paintSeparatorBackground, paintSeparatorBorder, paintSeparatorForeground, paintSliderBackground, paintSliderBorder, paintSliderThumbBackground, paintSliderThumbBorder, paintSliderTrackBackground, paintSliderTrackBorder, paintSpinnerBackground, paintSpinnerBorder, paintSplitPaneBackground, paintSplitPaneBorder, paintSplitPaneDividerBackground, paintSplitPaneDividerForeground, paintSplitPaneDragDivider, paintTabbedPaneBackground, paintTabbedPaneBorder, paintTabbedPaneContentBackground, paintTabbedPaneContentBorder, paintTabbedPaneTabAreaBackground, paintTabbedPaneTabAreaBorder, paintTabbedPaneTabBackground, paintTabbedPaneTabBorder, paintTableBackground, paintTableBorder, paintTableHeaderBackground, paintTableHeaderBorder, paintTextAreaBackground, paintTextAreaBorder, paintTextFieldBackground, paintTextFieldBorder, paintTextPaneBackground, paintTextPaneBorder, paintToggleButtonBackground, paintToggleButtonBorder, paintToolBarBackground, paintToolBarBorder, paintToolBarContentBackground, paintToolBarContentBorder, paintToolBarDragWindowBackground, paintToolBarDragWindowBorder, paintToolTipBackground, paintToolTipBorder, paintTreeBackground, paintTreeBorder, paintTreeCellBackground, paintTreeCellBorder, paintTreeCellFocus, paintViewportBackground, paintViewportBorder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BackgroundPainter

public BackgroundPainter()
Method Detail

paintDesktopPaneBackground

public void paintDesktopPaneBackground(javax.swing.plaf.synth.SynthContext context,
                                       java.awt.Graphics g,
                                       int x,
                                       int y,
                                       int w,
                                       int h)
Paint the background. Draws a gradient fill plus a logo

Overrides:
paintDesktopPaneBackground in class javax.swing.plaf.synth.SynthPainter
Parameters:
context - the synth context
g - the graphics device context
x - the x coordinate of the panel
y - the y coordinate of the panel
w - the w dimension of the panel
h - the h dimension of the panel

paintPanelBackground

public void paintPanelBackground(javax.swing.plaf.synth.SynthContext context,
                                 java.awt.Graphics g,
                                 int x,
                                 int y,
                                 int w,
                                 int h)
Paint the background. Draws a gradient fill plus a logo

Overrides:
paintPanelBackground in class javax.swing.plaf.synth.SynthPainter
Parameters:
context - the synth context
g - the graphics device context
x - the x coordinate of the panel
y - the y coordinate of the panel
w - the w dimension of the panel
h - the h dimension of the panel

paintPanelBorder

public void paintPanelBorder(javax.swing.plaf.synth.SynthContext context,
                             java.awt.Graphics g,
                             int x,
                             int y,
                             int w,
                             int h)
Paint the border

Overrides:
paintPanelBorder in class javax.swing.plaf.synth.SynthPainter
Parameters:
context - the synth context
g - the graphics device context
x - the x coordinate of the panel
y - the y coordinate of the panel
w - the w dimension of the panel
h - the h dimension of the panel

paintInternalFrameTitlePaneBorder

public void paintInternalFrameTitlePaneBorder(javax.swing.plaf.synth.SynthContext context,
                                              java.awt.Graphics g,
                                              int x,
                                              int y,
                                              int w,
                                              int h)
Paints the border of an internal frame title pane border.

Overrides:
paintInternalFrameTitlePaneBorder in class javax.swing.plaf.synth.SynthPainter
Parameters:
context - SynthContext identifying the JComponent and Region to paint to
g - Graphics to paint to
x - X coordinate of the area to paint to
y - Y coordinate of the area to paint to
w - Width of the area to paint to
h - Height of the area to paint to

paintInternalFrameBorder

public void paintInternalFrameBorder(javax.swing.plaf.synth.SynthContext context,
                                     java.awt.Graphics g,
                                     int x,
                                     int y,
                                     int w,
                                     int h)
Paints the border of an internal frame.

Overrides:
paintInternalFrameBorder in class javax.swing.plaf.synth.SynthPainter
Parameters:
context - SynthContext identifying the JComponent and Region to paint to
g - Graphics to paint to
x - X coordinate of the area to paint to
y - Y coordinate of the area to paint to
w - Width of the area to paint to
h - Height of the area to paint to

paintInternalFrameTitlePaneBackground

public void paintInternalFrameTitlePaneBackground(javax.swing.plaf.synth.SynthContext context,
                                                  java.awt.Graphics g,
                                                  int x,
                                                  int y,
                                                  int w,
                                                  int h)
Paints the internal frame title background.

Overrides:
paintInternalFrameTitlePaneBackground in class javax.swing.plaf.synth.SynthPainter
Parameters:
context - SynthContext identifying the JComponent and Region to paint to
g - Graphics to paint to
x - X coordinate of the area to paint to
y - Y coordinate of the area to paint to
w - Width of the area to paint to
h - Height of the area to paint to