|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
org.jzy3d.plot3d.rendering.canvas.CanvasNewtAwt
public class CanvasNewtAwt
A Newt canvas wrapped in an AWT Panel
.
Newt is supposed to be faster than any other canvas, either for AWT or Swing.
If a non AWT panel where required, follow the guidelines given in
IScreenCanvas
documentation.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.awt.Panel |
---|
Panel.AccessibleAWTPanel |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected com.jogamp.opengl.util.Animator |
animator
|
protected com.jogamp.newt.awt.NewtCanvasAWT |
canvas
|
protected Renderer3d |
renderer
|
protected View |
view
|
protected com.jogamp.newt.opengl.GLWindow |
window
|
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
CanvasNewtAwt(IChartComponentFactory factory,
Scene scene,
Quality quality,
javax.media.opengl.GLCapabilitiesImmutable glci)
|
|
CanvasNewtAwt(IChartComponentFactory factory,
Scene scene,
Quality quality,
javax.media.opengl.GLCapabilitiesImmutable glci,
boolean traceGL,
boolean debugGL)
|
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 |
addKeyListener(com.jogamp.newt.event.KeyListener l)
|
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 |
addMouseListener(com.jogamp.newt.event.MouseListener l)
|
void |
display()
|
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). |
javax.media.opengl.GLAnimatorControl |
getAnimator()
|
com.jogamp.newt.awt.NewtCanvasAWT |
getCanvas()
|
String |
getDebugInfo()
|
javax.media.opengl.GLDrawable |
getDrawable()
Returns the GLDrawable associated with the canvas |
Renderer3d |
getRenderer()
|
int |
getRendererHeight()
Provide the actual renderer height for the open gl camera settings, which is obtained after a resize event. |
int |
getRendererWidth()
Provide the actual renderer width for the open gl camera settings, which is obtained after a resize event. |
View |
getView()
Provide a reference to the View that renders into this canvas. |
com.jogamp.newt.opengl.GLWindow |
getWindow()
|
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 |
removeKeyListener(com.jogamp.newt.event.KeyListener l)
|
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. |
void |
removeMouseListener(com.jogamp.newt.event.MouseListener l)
|
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.awt.Panel |
---|
addNotify, getAccessibleContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected View view
protected Renderer3d renderer
protected com.jogamp.opengl.util.Animator animator
protected com.jogamp.newt.opengl.GLWindow window
protected com.jogamp.newt.awt.NewtCanvasAWT canvas
Constructor Detail |
---|
public CanvasNewtAwt(IChartComponentFactory factory, Scene scene, Quality quality, javax.media.opengl.GLCapabilitiesImmutable glci)
public CanvasNewtAwt(IChartComponentFactory factory, Scene scene, Quality quality, javax.media.opengl.GLCapabilitiesImmutable glci, boolean traceGL, boolean debugGL)
Method Detail |
---|
public com.jogamp.newt.opengl.GLWindow getWindow()
public com.jogamp.newt.awt.NewtCanvasAWT getCanvas()
public javax.media.opengl.GLDrawable getDrawable()
ICanvas
getDrawable
in interface ICanvas
public void dispose()
ICanvas
dispose
in interface ICanvas
public void display()
display
in interface IScreenCanvas
public void forceRepaint()
ICanvas
forceRepaint
in interface ICanvas
public javax.media.opengl.GLAnimatorControl getAnimator()
getAnimator
in interface IScreenCanvas
public com.jogamp.opengl.util.texture.TextureData screenshot()
ICanvas
screenshot
in interface ICanvas
public com.jogamp.opengl.util.texture.TextureData screenshot(File file) throws IOException
screenshot
in interface ICanvas
IOException
public String getDebugInfo()
getDebugInfo
in interface ICanvas
public int getRendererWidth()
getRendererWidth
in interface ICanvas
public int getRendererHeight()
getRendererHeight
in interface ICanvas
public Renderer3d getRenderer()
getRenderer
in interface ICanvas
public View getView()
getView
in interface ICanvas
public void addKeyListener(com.jogamp.newt.event.KeyListener l)
public void addMouseListener(com.jogamp.newt.event.MouseListener l)
public void removeMouseListener(com.jogamp.newt.event.MouseListener l)
public void removeKeyListener(com.jogamp.newt.event.KeyListener l)
public void addMouseController(Object o)
ICanvas
addMouseController
in interface ICanvas
public void addKeyController(Object o)
ICanvas
addKeyController
in interface ICanvas
public void removeMouseController(Object o)
ICanvas
removeMouseController
in interface ICanvas
public void removeKeyController(Object o)
ICanvas
removeKeyController
in interface ICanvas
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |