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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GlobalButtonPainter
public GlobalButtonPainter()
- Creates an GlobalButtonPainter.
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 Borderg
- Graphics context to use when paintingx
- x coordinate to begin painting aty
- y coordinate to begin painting atwidth
- width of area to paintheight
- 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)