|
Java DTV API 1.3 18-Nov-2009 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.dtv.lwuit.painter.PainterChain
public class PainterChain
A painter chain allows us to chain together several painters to provide a "layer" effect where each painter only draws one element.
| Constructor Summary | |
|---|---|
PainterChain(Painter[] chain)
Create a new painter chain which will paint all of the elements in the chain in sequence from 0 to the last element. |
|
| Method Summary | |
|---|---|
PainterChain |
addPainter(Painter p)
Creates a new chain based on the existing chain with the new element added at the end. |
static void |
installGlassPane(Form f,
Painter p)
Installs a glass pane on the given form making sure to make it a painter chain only if required by existing painter. |
void |
paint(Graphics g,
Rectangle rect)
Draws inside the given rectangle clipping area. |
PainterChain |
prependPainter(Painter p)
Creates a new chain based on the existing chain with the new element added at the beginning. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PainterChain(Painter[] chain)
chain - the chain elements| Method Detail |
|---|
public PainterChain addPainter(Painter p)
p - new painter
public PainterChain prependPainter(Painter p)
p - new painter
public void paint(Graphics g,
Rectangle rect)
Painter
paint in interface Painterg - the Graphics objectrect - the given rectangle clipping area
public static void installGlassPane(Form f,
Painter p)
f - form on which to install the chainp - painter to install
|
Java DTV API 1.3 18-Nov-2009 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||