|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The BaseGraphics
interface provide all needed abstraction
for drawing unto screen.
Method Summary | |
void |
cleanup()
Releases all graphics resources and do finalization. |
boolean |
flip()
Flips backbuffer to screen (primary surface). |
Graphics2D |
getBackBuffer()
Returns backbuffer where the rendering perform. |
Component |
getComponent()
Returns the component where the rendering perform. |
Dimension |
getSize()
Returns the dimension of this graphics component. |
Method Detail |
public Graphics2D getBackBuffer()
public boolean flip()
For Example:
do { Graphics2D g = BaseGraphics.getBackBuffer(); //.... do graphics operation } while (BaseGraphics.flip() == false);See VolatileImage for detail information.
getBackBuffer()
,
VolatileImage
public void cleanup()
public Dimension getSize()
public Component getComponent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |