|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--oracle.cabo.image.painter.AbstractPainter
|
+--oracle.cabo.image.painter.AbstractWrappingPainter
|
+--oracle.cabo.image.painter.AbstractBorderPainter
|
+--oracle.cabo.image.laf.browser.GlobalButtonPainter
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.
| Fields inherited from interface oracle.cabo.image.painter.Painter |
STATE_ACTIVE_CHANGED, STATE_ARMED_CHANGED, STATE_BACKGROUND_CHANGED, STATE_ENABLED_CHANGED, STATE_FOCUSED_CHANGED, STATE_FONT_CHANGED, STATE_FOREGROUND_CHANGED, STATE_ISDEFAULT_CHANGED, STATE_MOUSE_OVER_CHANGED, STATE_READING_DIRECTION_CHANGED, STATE_SELECTED_CHANGED, STATE_SET_CHANGED, STATE_SIZE_CHANGED, STATE_XALIGNMENT_CHANGED, STATE_YALIGNMENT_CHANGED |
| Constructor Summary | |
GlobalButtonPainter()
Creates an GlobalButtonPainter. |
|
| Method Summary | |
Painter |
getContentPainterAt(PaintContext context,
int availableWidth,
int availableHeight,
int x,
int y,
Painter proxyPainter)
Returns the Painter inside the ContentPainter at location x,y of the available size. |
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. |
int |
getRepaintFlags(PaintContext context)
Returns the flags indicating the conditions under which the Painter must be repainted. |
protected boolean |
isBorderTransparent(PaintContext context)
Returns true if the border itself is transparent. |
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 |
borderContains, contentContains, getBorderPainterAt, getFillInsets, getInsets, getMaximumSize, getMinimumSize, getOwnFillInsets, getPainterAt, getPreferredSize, getSize, isTransparent, paint |
| Methods inherited from class oracle.cabo.image.painter.AbstractWrappingPainter |
getInvalidateFlags, getWrappedPainter |
| Methods inherited from class oracle.cabo.image.painter.AbstractPainter |
contains, getData, getDataKey |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface oracle.cabo.image.painter.Painter |
contains, getInvalidateFlags |
| Constructor Detail |
public GlobalButtonPainter()
| Method Detail |
public static java.awt.Color getDefaultBackground(ImageContext context,
boolean disabled,
boolean selected)
public static java.awt.Color getDefaultForeground(ImageContext context,
boolean disabled,
boolean selected)
protected ImmInsets getOwnInsets(PaintContext context)
getOwnInsets in class AbstractBorderPainteroracle.cabo.image.painter.AbstractBorderPaintercontext - PaintContext to use when getting our own Insets
AbstractBorderPainter.getInsets(oracle.cabo.image.painter.PaintContext)
protected void paintBorder(PaintContext context,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
paintBorder in class AbstractBorderPainteroracle.cabo.image.painter.AbstractBorderPaintercontext - 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
AbstractBorderPainter.paint(oracle.cabo.image.painter.PaintContext, java.awt.Graphics, int, int, int, int)
public Painter getContentPainterAt(PaintContext context,
int availableWidth,
int availableHeight,
int x,
int y,
Painter proxyPainter)
getContentPainterAt in class AbstractBorderPainteroracle.cabo.image.painter.AbstractBorderPaintercontext - Context for determining containership.availableWidth - Amount of width available to the Painter.availableHeight - Amount of height available to the Painter.x - X location to test for containership in this
Painter.y - Y location to test for containership in this
Painter.proxyPainter - Painter to return instead of child painters
#getPainterAt
protected boolean isBorderTransparent(PaintContext context)
isBorderTransparent in class AbstractBorderPainteroracle.cabo.image.painter.AbstractBorderPaintercontext - PaintContext to use when determining transparency.
AbstractBorderPainter.isTransparent(oracle.cabo.image.painter.PaintContext)public int getRepaintFlags(PaintContext context)
getRepaintFlags in class AbstractWrappingPainteroracle.cabo.image.painter.Paintercontext - Context to use for determining the conditions under
which repainting is required.
Painter.getInvalidateFlags(oracle.cabo.image.painter.PaintContext)
|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||