Interface Canvas

All Known Implementing Classes:
G2DCanvas, JoGLCanvas

public interface Canvas
Author:
Pierre Lando
  • Method Details

    • setMainDrawer

      void setMainDrawer(Drawer mainDrawer)
      Set this canvas main drawer.
      Parameters:
      mainDrawer - the new canvas main drawer.
    • getMainDrawer

      Drawer getMainDrawer()
      Return the canvas main drawer.
      Returns:
      the canvas main drawer.
    • getRendererManager

      RendererManager getRendererManager()
      Return the renderer manager.
      Returns:
      the renderer manager.
    • getBuffersManager

      BuffersManager getBuffersManager()
      Return the buffers manager of this canvas.
      Returns:
      the buffers manager of this canvas.
    • getPickingManager

      PickingManager getPickingManager()
      Return the picking manager.
      Returns:
      the picking manager.
    • getTextureManager

      TextureManager getTextureManager()
      Texture manger getter.
      Returns:
      the texture manager.
    • getWidth

      int getWidth()
      Return the canvas width.
      Returns:
      the canvas width.
    • getHeight

      int getHeight()
      Return the canvas height.
      Returns:
      the canvas height.
    • getDimension

      Dimension getDimension()
      Return the canvas dimension.
      Returns:
      the canvas dimension.
    • 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