net.xoetrope.optional.laf.synth
Class ScrollPainter

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

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

Synth painter for JScrollPane

Copyright: Copyright (c) Xoetrope Ltd., 2001-2005
License: see license.txt $Revision: 1.1 $


Constructor Summary
ScrollPainter()
           
 
Method Summary
 void paintScrollBarThumbBackground(javax.swing.plaf.synth.SynthContext context, java.awt.Graphics g, int x, int y, int w, int h, int orientation)
          Paints the scrollbar thumb background.
 void paintScrollPaneBackground(javax.swing.plaf.synth.SynthContext context, java.awt.Graphics g, int x, int y, int w, int h)
          Paints the scrollpane background.
 void paintScrollPaneBorder(javax.swing.plaf.synth.SynthContext context, java.awt.Graphics g, int x, int y, int w, int h)
          Paints the border of a scroll pane.
 
Methods inherited from class javax.swing.plaf.synth.SynthPainter
paintArrowButtonBackground, paintArrowButtonBorder, paintArrowButtonForeground, paintButtonBackground, paintButtonBorder, paintCheckBoxBackground, paintCheckBoxBorder, paintCheckBoxMenuItemBackground, paintCheckBoxMenuItemBorder, paintColorChooserBackground, paintColorChooserBorder, paintComboBoxBackground, paintComboBoxBorder, paintDesktopIconBackground, paintDesktopIconBorder, paintDesktopPaneBackground, paintDesktopPaneBorder, paintEditorPaneBackground, paintEditorPaneBorder, paintFileChooserBackground, paintFileChooserBorder, paintFormattedTextFieldBackground, paintFormattedTextFieldBorder, paintInternalFrameBackground, paintInternalFrameBorder, paintInternalFrameTitlePaneBackground, paintInternalFrameTitlePaneBorder, paintLabelBackground, paintLabelBorder, paintListBackground, paintListBorder, paintMenuBackground, paintMenuBarBackground, paintMenuBarBorder, paintMenuBorder, paintMenuItemBackground, paintMenuItemBorder, paintOptionPaneBackground, paintOptionPaneBorder, paintPanelBackground, paintPanelBorder, paintPasswordFieldBackground, paintPasswordFieldBorder, paintPopupMenuBackground, paintPopupMenuBorder, paintProgressBarBackground, paintProgressBarBorder, paintProgressBarForeground, paintRadioButtonBackground, paintRadioButtonBorder, paintRadioButtonMenuItemBackground, paintRadioButtonMenuItemBorder, paintRootPaneBackground, paintRootPaneBorder, paintScrollBarBackground, paintScrollBarBorder, paintScrollBarThumbBorder, paintScrollBarTrackBackground, paintScrollBarTrackBorder, 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

ScrollPainter

public ScrollPainter()
Method Detail

paintScrollPaneBackground

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

Overrides:
paintScrollPaneBackground 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

paintScrollPaneBorder

public void paintScrollPaneBorder(javax.swing.plaf.synth.SynthContext context,
                                  java.awt.Graphics g,
                                  int x,
                                  int y,
                                  int w,
                                  int h)
Paints the border of a scroll pane.

Overrides:
paintScrollPaneBorder 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

paintScrollBarThumbBackground

public void paintScrollBarThumbBackground(javax.swing.plaf.synth.SynthContext context,
                                          java.awt.Graphics g,
                                          int x,
                                          int y,
                                          int w,
                                          int h,
                                          int orientation)
Paints the scrollbar thumb background.

Overrides:
paintScrollBarThumbBackground 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