|
||||||||||
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.NullPainter
public class NullPainter
A completely transparent painter object that has no size. This is useful as a default value and as a transparent painter.
Constructor Summary | |
---|---|
NullPainter()
Creates a new Nullpainter instance. |
Method Summary | |
---|---|
ImmInsets |
getFillInsets(PaintContext context)
Returns the amount of space by which fills should be inset. |
ImmInsets |
getInsets(PaintContext context)
Returns the amount of space the border will require on each side. |
java.awt.Dimension |
getMinimumSize(PaintContext context)
Returns the minimum size of the NullPainter. |
static BorderPainter |
getPainter()
Returns the shared instance of the NullPainter class. |
void |
paint(PaintContext context,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
Paints the NullPainter at the given location. |
Methods inherited from class org.apache.myfaces.trinidadinternal.image.painter.AbstractPainter |
---|
getData, getDataKey, getPreferredSize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.myfaces.trinidadinternal.image.painter.Painter |
---|
getPreferredSize |
Constructor Detail |
---|
public NullPainter()
getPainter()
Method Detail |
---|
public static BorderPainter getPainter()
public java.awt.Dimension getMinimumSize(PaintContext context)
getMinimumSize
in interface Painter
context
- Context for determining the minimum size.
public void paint(PaintContext context, java.awt.Graphics g, int x, int y, int width, int height)
paint
in interface Painter
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.public ImmInsets getInsets(PaintContext context)
getInsets
in interface BorderPainter
context
- the context for paintingpublic ImmInsets getFillInsets(PaintContext context)
getFillInsets
in interface BorderPainter
context
- the context for painting
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |