|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.trinidadinternal.image.painter.AbstractPainter
org.apache.myfaces.trinidadinternal.image.painter.AbstractWrappingPainter
org.apache.myfaces.trinidadinternal.image.painter.AbstractBorderPainter
org.apache.myfaces.trinidadinternal.image.laf.browser.CompositeButtonPainter
public class CompositeButtonPainter
Painter used to paint composite button objects with the correct Oracle Look and Feel. The values of the following keys from the ImageConstants interface affect how the button is rendered:
Field Summary |
---|
Constructor Summary | |
---|---|
CompositeButtonPainter()
Creates an CompositeButtonPainter. |
Method Summary | |
---|---|
static java.awt.Color |
getDefaultBackground(ImageContext context,
boolean disabled)
|
static FontProxy |
getDefaultFont()
|
static java.awt.Color |
getDefaultForeground(ImageContext context,
boolean disabled)
|
protected ImmInsets |
getOwnInsets(PaintContext context)
Returns the insets of just this BorderPainter, as opposed to the entire nested stack of BorderPainters like getInsets does. |
protected void |
paintBorder(PaintContext context,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
Paint just the border of the BorderPainter. |
Methods inherited from class org.apache.myfaces.trinidadinternal.image.painter.AbstractBorderPainter |
---|
getFillInsets, getInsets, getMinimumSize, getOwnFillInsets, getPreferredSize, paint |
Methods inherited from class org.apache.myfaces.trinidadinternal.image.painter.AbstractWrappingPainter |
---|
getWrappedPainter |
Methods inherited from class org.apache.myfaces.trinidadinternal.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 |
---|
public CompositeButtonPainter()
Method Detail |
---|
protected ImmInsets getOwnInsets(PaintContext context)
AbstractBorderPainter
getOwnInsets
in class AbstractBorderPainter
context
- PaintContext to use when getting our own Insets
AbstractBorderPainter.getInsets(org.apache.myfaces.trinidadinternal.image.painter.PaintContext)
protected void paintBorder(PaintContext context, java.awt.Graphics g, int x, int y, int width, int height)
AbstractBorderPainter
Painters that modify the Graphics context are responsible for returning it to its initial state when done painting. Further Painters that paint outside the bounds of x, y, width, and height or inside the area inset by their insets are responsible for clipping themselves.
paintBorder
in class AbstractBorderPainter
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
AbstractBorderPainter.paint(org.apache.myfaces.trinidadinternal.image.painter.PaintContext, java.awt.Graphics, int, int, int, int)
public static java.awt.Color getDefaultForeground(ImageContext context, boolean disabled)
public static java.awt.Color getDefaultBackground(ImageContext context, boolean disabled)
public static FontProxy getDefaultFont()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |