|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.zaval.lw.LwPaintManager
This manager is abstract class that is used as base for creating own paint managers
for the light weight libarary. To create own paint manager it is necessary to
implement updateComponent
and paintComponent
methods that
define update and paint algorithms for a light weight component.
Use manager
static field of the class to get current implementation of
the paint manager. The field is set with LwToolkit.during initialization the library
basing on the light weight properties file.
Any light weight component implementation has to use paint
and
repaint
methods of the current paint manager to paint and repaint
itself.
Constructor Summary | |
LwPaintManager()
|
Method Summary | |
void |
paint(java.awt.Graphics g,
LwComponent c)
The method initiates painting process for the specified light weight component using the graphics. |
protected abstract void |
paintComponent(java.awt.Graphics g,
LwComponent c)
The method is called to paint the specified component. |
protected abstract void |
paintOnTop(java.awt.Graphics g,
LwContainer c)
Probably will be redesigned |
void |
repaint(LwComponent c)
Repaints the specified light weight component. |
void |
repaint(LwComponent c,
int x,
int y,
int w,
int h)
Repaints a part of the specified light weight component. |
protected void |
rootPaint(java.awt.Graphics g,
LwComponent c)
The method initiates painting process for the specified root light weight component using the graphics. |
protected abstract void |
updateComponent(java.awt.Graphics g,
LwComponent c)
The method is called to update the specified component. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.zaval.lw.LwManager |
dispose |
Constructor Detail |
public LwPaintManager()
Method Detail |
public void repaint(LwComponent c)
c
- the specified light weight component.public void repaint(LwComponent c, int x, int y, int w, int h)
c
- the specified light weight component.x
- the x coordinate of the repainting part.y
- the y coordinate of the repainting part.w
- the width of the repainting part.h
- the height of the repainting part.protected void rootPaint(java.awt.Graphics g, LwComponent c)
g
- the specified graphics.c
- the specified root lightweight component.public void paint(java.awt.Graphics g, LwComponent c)
g
- the specified graphics.c
- the specified lightweight component.protected abstract void updateComponent(java.awt.Graphics g, LwComponent c)
g
- the specified graphics.c
- the specified lightweight component to be updated.protected abstract void paintComponent(java.awt.Graphics g, LwComponent c)
g
- the specified graphics.c
- the specified lightweight component to be painted.protected abstract void paintOnTop(java.awt.Graphics g, LwContainer c)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |