org.zaval.lw
Class LwPaintManImpl

java.lang.Object
  |
  +--org.zaval.lw.LwPaintManager
        |
        +--org.zaval.lw.LwPaintManImpl
All Implemented Interfaces:
LwManager

public class LwPaintManImpl
extends LwPaintManager

This class is implementation of the LwPaintManager for the library. The implementation supports:


Constructor Summary
LwPaintManImpl()
          Constructs the paint manager.
 
Method Summary
 void dispose()
           
protected  void paintComponent(java.awt.Graphics g, LwComponent c)
          The method is called to paint the specified component.
protected  void paintOnTop(java.awt.Graphics g, LwContainer c)
          Probably will be redesigned
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  void updateComponent(java.awt.Graphics g, LwComponent c)
          The method is called to update the specified component.
 void useDoubleBuffer(boolean b)
          Enables or disables double buffering.
 
Methods inherited from class org.zaval.lw.LwPaintManager
paint, repaint, repaint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LwPaintManImpl

public LwPaintManImpl()
Constructs the paint manager.
Method Detail

useDoubleBuffer

public void useDoubleBuffer(boolean b)
Enables or disables double buffering. The double buffering is used to increase painting performance but it needs memory.
Parameters:
b - true to enable double buffering; false otherwise.

dispose

public void dispose()

rootPaint

protected void rootPaint(java.awt.Graphics g,
                         LwComponent c)
The method initiates painting process for the specified root light weight component using the graphics. The method has to be used with a light weight root component implementation to start painting process. The method is overrided to support double buffering.
Overrides:
rootPaint in class LwPaintManager
Parameters:
g - the specified graphics.
c - the specified root lightweight component.

updateComponent

protected void updateComponent(java.awt.Graphics g,
                               LwComponent c)
The method is called to update the specified component. The updating process can be occured with the following two ways: After that the method calls update method of the component.
Overrides:
updateComponent in class LwPaintManager
Parameters:
g - the specified graphics.
c - the specified lightweight component to be updated.

paintComponent

protected void paintComponent(java.awt.Graphics g,
                              LwComponent c)
The method is called to paint the specified component. The method uses the border and face views that can be provided with a view manager of the specified component to paint the component.
Overrides:
paintComponent in class LwPaintManager
Parameters:
g - the specified graphics.
c - the specified lightweight component to be painted.

paintOnTop

protected void paintOnTop(java.awt.Graphics g,
                          LwContainer c)
Description copied from class: LwPaintManager
Probably will be redesigned
Overrides:
paintOnTop in class LwPaintManager


Copyright © Zaval Creative Engineering Group, 2000-2005.
http://www.zaval.org