Class G2DTextureManager
- java.lang.Object
-
- 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
Nested Classes Modifier and Type Class Description class
G2DTextureManager.G2DTexture
Inner class forTexture
implementation.
-
Constructor Summary
Constructors Constructor Description G2DTextureManager(G2DCanvas canvas)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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 interfaceTextureManager
- 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 interfaceTextureManager
- Parameters:
textures
- textures to dispose.
-
dispose
public void dispose(Texture texture)
- Specified by:
dispose
in interfaceTextureManager
-
-