Interface Canvas
- All Known Implementing Classes:
G2DCanvas, JoGLCanvas
public interface Canvas
- Author:
- Pierre Lando
-
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Destroy canvas : release Semaphore and associated threadsintAnti-aliasing level getter.Return the buffers manager of this canvas.Return the canvas dimension.intReturn the canvas height.Return the canvas main drawer.Return the picking manager.Return the renderer manager.Texture manger getter.intgetWidth()Return the canvas width.voidredraw()Ask the canvas to perform asynchronous drawing.voidAsk the canvas to perform asynchronous drawing.voidsetAntiAliasingLevel(int antiAliasingLevel) Anti-aliasing level setter.voidsetMainDrawer(Drawer mainDrawer) Set this canvas main drawer.voidWait until a drawing has been performed
-
Method Details
-
setMainDrawer
Set this canvas main drawer.- Parameters:
mainDrawer- the new canvas main drawer.
-
getMainDrawer
-
getRendererManager
-
getBuffersManager
BuffersManager getBuffersManager()Return the buffers manager of this canvas.- Returns:
- the buffers manager of this canvas.
-
getPickingManager
-
getTextureManager
-
getWidth
int getWidth()Return the canvas width.- Returns:
- the canvas width.
-
getHeight
int getHeight()Return the canvas height.- Returns:
- the canvas height.
-
getDimension
-
getAntiAliasingLevel
int getAntiAliasingLevel()Anti-aliasing level getter. - 0 for 1x - 1 for 2x - 2 for 4x - 3 for 8x - 4 for 16x- Returns:
- the anti-aliasing level.
-
setAntiAliasingLevel
void setAntiAliasingLevel(int antiAliasingLevel) Anti-aliasing level setter. - 0 for 1x - 1 for 2x - 2 for 4x - 3 for 8x - 4 for 16x- Parameters:
antiAliasingLevel- the new level.
-
redraw
void redraw()Ask the canvas to perform asynchronous drawing. -
redrawAndWait
void redrawAndWait()Ask the canvas to perform asynchronous drawing. -
waitImage
void waitImage()Wait until a drawing has been performed -
destroy
void destroy()Destroy canvas : release Semaphore and associated threads
-