UIX 2.2.16

oracle.cabo.image.laf.browser
Class GlobalButtonPainter

java.lang.Object
  |
  +--oracle.cabo.image.painter.AbstractPainter
        |
        +--oracle.cabo.image.painter.AbstractWrappingPainter
              |
              +--oracle.cabo.image.painter.AbstractBorderPainter
                    |
                    +--oracle.cabo.image.laf.browser.GlobalButtonPainter
All Implemented Interfaces:
BorderPainter, Painter

public class GlobalButtonPainter
extends AbstractBorderPainter

Painter used to painter global buttons in the correct Oracle Look And Feel. A global button contains only a image and is always 32x32 pixels.


Constructor Summary
GlobalButtonPainter()
          Creates an GlobalButtonPainter.
 
Method Summary
static java.awt.Color getDefaultBackground(ImageContext context, boolean disabled, boolean selected)
           
static java.awt.Color getDefaultForeground(ImageContext context, boolean disabled, boolean selected)
           
protected  ImmInsets getOwnInsets(PaintContext context)
          Returns the insets of just the GlobalButtonPainter.
protected  void paintBorder(PaintContext context, java.awt.Graphics g, int x, int y, int width, int height)
          Paint just the border of the GlobalButtonPainter.
 
Methods inherited from class oracle.cabo.image.painter.AbstractBorderPainter
getFillInsets, getInsets, getMinimumSize, getOwnFillInsets, getPreferredSize, paint
 
Methods inherited from class oracle.cabo.image.painter.AbstractWrappingPainter
getWrappedPainter
 
Methods inherited from class oracle.cabo.image.painter.AbstractPainter
getData, getDataKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobalButtonPainter

public GlobalButtonPainter()
Creates an GlobalButtonPainter.
Method Detail

getDefaultBackground

public static java.awt.Color getDefaultBackground(ImageContext context,
                                                  boolean disabled,
                                                  boolean selected)

getDefaultForeground

public static java.awt.Color getDefaultForeground(ImageContext context,
                                                  boolean disabled,
                                                  boolean selected)

getOwnInsets

protected ImmInsets getOwnInsets(PaintContext context)
Returns the insets of just the GlobalButtonPainter.
Overrides:
getOwnInsets in class AbstractBorderPainter
Following copied from class: oracle.cabo.image.painter.AbstractBorderPainter
Parameters:
context - PaintContext to use when getting our own Insets

Returns:
The insets of just this BorderPainter.

See Also:
AbstractBorderPainter.getInsets(oracle.cabo.image.painter.PaintContext)

paintBorder

protected void paintBorder(PaintContext context,
                           java.awt.Graphics g,
                           int x,
                           int y,
                           int width,
                           int height)
Paint just the border of the GlobalButtonPainter.
Overrides:
paintBorder in class AbstractBorderPainter
Following copied from class: oracle.cabo.image.painter.AbstractBorderPainter
Parameters:
context - PaintContext to use when painting the Border
g - Graphics context to use when painting
x - x coordinate to begin painting at
y - y coordinate to begin painting at
width - width of area to paint
height - height of area to paint

Returns:
The insets of just this BorderPainter.

See Also:
AbstractBorderPainter.paint(oracle.cabo.image.painter.PaintContext, java.awt.Graphics, int, int, int, int)

UIX 2.2.16