| java.lang.Object com.sun.midp.chameleon.CGraphicsQ
CGraphicsQ | public class CGraphicsQ (Code) | | Chameleon graphics queue class. This class contains methods
to help to better control when, how, and how many pixels
actually get blitted from the buffer to the physical display.
|
Field Summary | |
final public static boolean | DEBUG By turning on "debug" mode, all of Chameleon's graphics engine
will output tracing info regarding dirty regions, layer locations,
bounds, repaints, etc. | protected Vector | refreshQ |
Constructor Summary | |
public | CGraphicsQ() Construct a new Graphics queue. |
Method Summary | |
public Object[] | getRefreshRegions() Get the queue of all areas of the screen to be refreshed
(blitted to the screen). | public void | queueRefresh(int x, int y, int w, int h) Add the specified region to the queue of areas to be
refreshed. |
DEBUG | final public static boolean DEBUG(Code) | | By turning on "debug" mode, all of Chameleon's graphics engine
will output tracing info regarding dirty regions, layer locations,
bounds, repaints, etc.
|
refreshQ | protected Vector refreshQ(Code) | | A queue of refresh areas, represented by 4 element arrays
|
CGraphicsQ | public CGraphicsQ()(Code) | | Construct a new Graphics queue.
|
getRefreshRegions | public Object[] getRefreshRegions()(Code) | | Get the queue of all areas of the screen to be refreshed
(blitted to the screen). This method will empty the queue
and return its contents. Each element in the array will be
a 4 element int[] holding the x, y, w, and h of each refresh
region
the queue of all areas of the screen to be refreshed,as an array of arrays |
queueRefresh | public void queueRefresh(int x, int y, int w, int h)(Code) | | Add the specified region to the queue of areas to be
refreshed. That is, the region specified by the given
coordinates represents a region that has been repainted
and needs to be blitted to the display. The coordinates
of the region should be in raw screen coordinates, that
is, 0,0 would represent the topleft pixel on the screen.
Parameters: x - the 'x' anchor coordinate of the region Parameters: y - the 'y' anchor coordinate of the region Parameters: w - the width of the region Parameters: h - the height of the region |
|
|