com.metsci.glimpse.swt.canvas
Class GLSimpleSwtCanvas

java.lang.Object
  extended by org.eclipse.swt.widgets.Widget
      extended by org.eclipse.swt.widgets.Control
          extended by org.eclipse.swt.widgets.Scrollable
              extended by org.eclipse.swt.widgets.Composite
                  extended by org.eclipse.swt.widgets.Canvas
                      extended by org.eclipse.swt.opengl.GLCanvas
                          extended by com.metsci.glimpse.swt.canvas.GLSimpleSwtCanvas
All Implemented Interfaces:
org.eclipse.swt.graphics.Drawable
Direct Known Subclasses:
SwtGlimpseCanvas

public class GLSimpleSwtCanvas
extends org.eclipse.swt.opengl.GLCanvas


Field Summary
 
Fields inherited from class org.eclipse.swt.widgets.Composite
embeddedHandle
 
Fields inherited from class org.eclipse.swt.widgets.Widget
handle
 
Constructor Summary
GLSimpleSwtCanvas(org.eclipse.swt.widgets.Composite parent, javax.media.opengl.GLContext _context, int options, GLSimpleListener... listeners)
           
GLSimpleSwtCanvas(org.eclipse.swt.widgets.Composite parent, GLSimpleListener... listeners)
           
GLSimpleSwtCanvas(org.eclipse.swt.widgets.Composite parent, int options, GLSimpleListener... listeners)
           
 
Method Summary
 void addListener(GLSimpleListener listener)
           
 void dispose()
          Disposes of the operating system resources associated with the receiver and all its descendants.
 void draw()
           
 void draw(javax.media.opengl.GLContext glContext)
          This context must be shared with the one in this canvas or else the method will cause an exception.
 javax.media.opengl.GLContext getGLContext()
           
 void removeListener(GLSimpleListener listener)
           
 
Methods inherited from class org.eclipse.swt.opengl.GLCanvas
getGLData, isCurrent, setCurrent, swapBuffers
 
Methods inherited from class org.eclipse.swt.widgets.Canvas
drawBackground, getCaret, getIME, scroll, setCaret, setFont, setIME
 
Methods inherited from class org.eclipse.swt.widgets.Composite
changed, computeSize, drawBackground, getBackgroundMode, getChildren, getClientArea, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
 
Methods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, getBorderWidth, getHorizontalBar, getVerticalBar
 
Methods inherited from class org.eclipse.swt.widgets.Control
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
 
Methods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, getData, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, reskin, setData, setData, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GLSimpleSwtCanvas

public GLSimpleSwtCanvas(org.eclipse.swt.widgets.Composite parent,
                         javax.media.opengl.GLContext _context,
                         int options,
                         GLSimpleListener... listeners)

GLSimpleSwtCanvas

public GLSimpleSwtCanvas(org.eclipse.swt.widgets.Composite parent,
                         int options,
                         GLSimpleListener... listeners)

GLSimpleSwtCanvas

public GLSimpleSwtCanvas(org.eclipse.swt.widgets.Composite parent,
                         GLSimpleListener... listeners)
Method Detail

addListener

public void addListener(GLSimpleListener listener)

removeListener

public void removeListener(GLSimpleListener listener)

draw

public void draw(javax.media.opengl.GLContext glContext)
This context must be shared with the one in this canvas or else the method will cause an exception.


draw

public void draw()

getGLContext

public javax.media.opengl.GLContext getGLContext()

dispose

public void dispose()
Description copied from class: org.eclipse.swt.widgets.Widget
Disposes of the operating system resources associated with the receiver and all its descendants. After this method has been invoked, the receiver and all descendants will answer true when sent the message isDisposed(). Any internal connections between the widgets in the tree will have been removed to facilitate garbage collection. This method does nothing if the widget is already disposed.

NOTE: This method is not called recursively on the descendants of the receiver. This means that, widget implementers can not detect when a widget is being disposed of by re-implementing this method, but should instead listen for the Dispose event.

Overrides:
dispose in class org.eclipse.swt.widgets.Widget
See Also:
Widget.addDisposeListener(org.eclipse.swt.events.DisposeListener), Widget.removeDisposeListener(org.eclipse.swt.events.DisposeListener), Widget.checkWidget()


Copyright © 2012 Metron, Inc.. All Rights Reserved.