org.scilab.forge.scirenderer.implementation.g2d.texture
Class G2DTextureManager

java.lang.Object
  extended by org.scilab.forge.scirenderer.implementation.g2d.texture.G2DTextureManager
All Implemented Interfaces:
TextureManager

public class G2DTextureManager
extends java.lang.Object
implements TextureManager

Author:
Calixte DENIZET

Nested Class Summary
 class G2DTextureManager.G2DTexture
          Inner class for Texture implementation.
 
Constructor Summary
G2DTextureManager(G2DCanvas canvas)
           
 
Method Summary
static void clear()
           
 Texture createTexture()
          Texture creator.
 void dispose(java.util.Collection<Texture> textures)
          Dispose the given textures.
 void dispose(Texture texture)
           
 void draw(G2DDrawingTools drawingTools, Texture texture)
          Draw the given texture.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

G2DTextureManager

public G2DTextureManager(G2DCanvas canvas)
Method Detail

clear

public static void clear()

draw

public void draw(G2DDrawingTools drawingTools,
                 Texture texture)
          throws SciRendererException
Draw the given texture.

Parameters:
drawingTools - used drawing tools.
texture - the texture too drawn.
Throws:
SciRendererException - if the texture is invalid.

createTexture

public Texture createTexture()
Description copied from interface: TextureManager
Texture creator.

Specified by:
createTexture in interface TextureManager
Returns:
a new Texture

dispose

public void dispose(java.util.Collection<Texture> textures)
Description copied from interface: TextureManager
Dispose the given textures.

Specified by:
dispose in interface TextureManager
Parameters:
textures - textures to dispose.

dispose

public void dispose(Texture texture)
Specified by:
dispose in interface TextureManager