org.jzy3d.plot3d.rendering.canvas
Class VoidCanvas

java.lang.Object
  extended by org.jzy3d.plot3d.rendering.canvas.VoidCanvas
All Implemented Interfaces:
ICanvas

public class VoidCanvas
extends Object
implements ICanvas


Field Summary
protected static String INFO
           
protected  Renderer3d renderer
           
protected  View view
           
 
Constructor Summary
VoidCanvas(IChartComponentFactory factory, Scene scene, Quality quality)
           
 
Method Summary
 void addKeyController(Object o)
          A generic interface for mouse listener to remain Windowing toolkit independant. * Implementation of this method should simply cast the input assuming it will correspond to canvas-compatible mouse listener.
 void addMouseController(Object o)
          A generic interface for mouse listener to remain Windowing toolkit independant. * Implementation of this method should simply cast the input assuming it will correspond to canvas-compatible mouse listener.
 void dispose()
          Performs all required cleanup when destroying a Canvas.
 void forceRepaint()
          Invoked when a user requires the Canvas to be repainted (e.g. a non 3d layer has changed).
 String getDebugInfo()
           
 javax.media.opengl.GLDrawable getDrawable()
          Returns the GLDrawable associated with the canvas
 Renderer3d getRenderer()
           
 int getRendererHeight()
          Returns the renderer's height, i.e. the display height.
 int getRendererWidth()
          Returns the renderer's width, i.e. the display width.
 View getView()
          Returns a reference to the held view.
 void removeKeyController(Object o)
          A generic interface for key listener to remain Windowing toolkit independant. * Implementation of this method should simply cast the input assuming it will correspond to canvas-compatible key listener.
 void removeMouseController(Object o)
          A generic interface for key listener to remain Windowing toolkit independant. * Implementation of this method should simply cast the input assuming it will correspond to canvas-compatible key listener.
 com.jogamp.opengl.util.texture.TextureData screenshot()
          Returns an image with the current renderer's size
 com.jogamp.opengl.util.texture.TextureData screenshot(File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

view

protected View view

renderer

protected Renderer3d renderer

INFO

protected static String INFO
Constructor Detail

VoidCanvas

public VoidCanvas(IChartComponentFactory factory,
                  Scene scene,
                  Quality quality)
Method Detail

getView

public View getView()
Description copied from interface: ICanvas
Returns a reference to the held view.

Specified by:
getView in interface ICanvas

getDrawable

public javax.media.opengl.GLDrawable getDrawable()
Description copied from interface: ICanvas
Returns the GLDrawable associated with the canvas

Specified by:
getDrawable in interface ICanvas

getRendererWidth

public int getRendererWidth()
Description copied from interface: ICanvas
Returns the renderer's width, i.e. the display width.

Specified by:
getRendererWidth in interface ICanvas

getRendererHeight

public int getRendererHeight()
Description copied from interface: ICanvas
Returns the renderer's height, i.e. the display height.

Specified by:
getRendererHeight in interface ICanvas

getRenderer

public Renderer3d getRenderer()
Specified by:
getRenderer in interface ICanvas

forceRepaint

public void forceRepaint()
Description copied from interface: ICanvas
Invoked when a user requires the Canvas to be repainted (e.g. a non 3d layer has changed).

Specified by:
forceRepaint in interface ICanvas

screenshot

public com.jogamp.opengl.util.texture.TextureData screenshot()
Description copied from interface: ICanvas
Returns an image with the current renderer's size

Specified by:
screenshot in interface ICanvas

screenshot

public com.jogamp.opengl.util.texture.TextureData screenshot(File file)
                                                      throws IOException
Specified by:
screenshot in interface ICanvas
Throws:
IOException

dispose

public void dispose()
Description copied from interface: ICanvas
Performs all required cleanup when destroying a Canvas.

Specified by:
dispose in interface ICanvas

addMouseController

public void addMouseController(Object o)
Description copied from interface: ICanvas
A generic interface for mouse listener to remain Windowing toolkit independant. * Implementation of this method should simply cast the input assuming it will correspond to canvas-compatible mouse listener.

Specified by:
addMouseController in interface ICanvas

addKeyController

public void addKeyController(Object o)
Description copied from interface: ICanvas
A generic interface for mouse listener to remain Windowing toolkit independant. * Implementation of this method should simply cast the input assuming it will correspond to canvas-compatible mouse listener.

Specified by:
addKeyController in interface ICanvas

removeMouseController

public void removeMouseController(Object o)
Description copied from interface: ICanvas
A generic interface for key listener to remain Windowing toolkit independant. * Implementation of this method should simply cast the input assuming it will correspond to canvas-compatible key listener.

Specified by:
removeMouseController in interface ICanvas

removeKeyController

public void removeKeyController(Object o)
Description copied from interface: ICanvas
A generic interface for key listener to remain Windowing toolkit independant. * Implementation of this method should simply cast the input assuming it will correspond to canvas-compatible key listener.

Specified by:
removeKeyController in interface ICanvas

getDebugInfo

public String getDebugInfo()
Specified by:
getDebugInfo in interface ICanvas


Copyright © 2013. All rights reserved.