|
||||||||||
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
public abstract class AbstractWrappingPainter
Abstract baseclass for Painters that wrap other painters, modifying the attributes of the wrapped painter. This class delegates all Painter methods through to the wrapped Painter.
Constructor Summary | |
---|---|
AbstractWrappingPainter()
Create an AbstractWrappingPainter wrapping a NullPainter. |
|
AbstractWrappingPainter(Painter wrappedPainter)
Create an AbstractWrappingPainter wrapping another Painter. |
Method Summary | |
---|---|
java.awt.Dimension |
getMinimumSize(PaintContext context)
Returns the minimum size of the wrapped painter. |
java.awt.Dimension |
getPreferredSize(PaintContext context)
Returns the preferred size of the wrapped painter. |
protected Painter |
getWrappedPainter(PaintContext context)
Returns the wrapped painter. |
void |
paint(PaintContext context,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
Paints the wrapped Painter. |
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 AbstractWrappingPainter()
NullPainter.getPainter()
public AbstractWrappingPainter(Painter wrappedPainter)
wrappedPainter
- The Painter to wrap.Method Detail |
---|
public java.awt.Dimension getPreferredSize(PaintContext context)
getPreferredSize
in interface Painter
getPreferredSize
in class AbstractPainter
context
- Context for determining the preferred size.
public java.awt.Dimension getMinimumSize(PaintContext context)
context
- Context for determining the minimum size.
public void paint(PaintContext context, java.awt.Graphics g, int x, int y, int width, int height)
context
- Context for painting.g
- Graphics object to draw into.x
- X position to draw at.y
- Y position to draw at.width
- Width to draw into.height
- Height to draw into.protected Painter getWrappedPainter(PaintContext context)
context
- Context to use for determining the wrapped painter.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |