net.xoetrope.optional.laf.synth
Class TextPainter

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

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

Synth painters for Labels and other Text components

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


Constructor Summary
TextPainter()
           
 
Method Summary
 void paintEditorPaneBackground(javax.swing.plaf.synth.SynthContext context, java.awt.Graphics g, int x, int y, int w, int h)
          Paints the background of an editor pane.
 void paintLabelBackground(javax.swing.plaf.synth.SynthContext context, java.awt.Graphics g, int x, int y, int w, int h)
          Paints the background of an label.
 void paintTextAreaBackground(javax.swing.plaf.synth.SynthContext context, java.awt.Graphics g, int x, int y, int w, int h)
          Paints the background of a text area
 void paintToolTipBackground(javax.swing.plaf.synth.SynthContext context, java.awt.Graphics g, int x, int y, int w, int h)
          Paints the background of a tooltip
 
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, paintEditorPaneBorder, paintFileChooserBackground, paintFileChooserBorder, paintFormattedTextFieldBackground, paintFormattedTextFieldBorder, paintInternalFrameBackground, paintInternalFrameBorder, paintInternalFrameTitlePaneBackground, paintInternalFrameTitlePaneBorder, 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, 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, paintTextAreaBorder, paintTextFieldBackground, paintTextFieldBorder, paintTextPaneBackground, paintTextPaneBorder, paintToggleButtonBackground, paintToggleButtonBorder, paintToolBarBackground, paintToolBarBorder, paintToolBarContentBackground, paintToolBarContentBorder, paintToolBarDragWindowBackground, paintToolBarDragWindowBorder, 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

TextPainter

public TextPainter()
Method Detail

paintLabelBackground

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

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

paintEditorPaneBackground

public void paintEditorPaneBackground(javax.swing.plaf.synth.SynthContext context,
                                      java.awt.Graphics g,
                                      int x,
                                      int y,
                                      int w,
                                      int h)
Paints the background of an editor pane.

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

paintTextAreaBackground

public void paintTextAreaBackground(javax.swing.plaf.synth.SynthContext context,
                                    java.awt.Graphics g,
                                    int x,
                                    int y,
                                    int w,
                                    int h)
Paints the background of a text area

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

paintToolTipBackground

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

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