|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectde.grogra.imp.awt.ViewComponentAdapter
de.grogra.imp3d.gl20.GL20Display
public class GL20Display
| Field Summary |
|---|
| Fields inherited from class de.grogra.imp.awt.ViewComponentAdapter |
|---|
DISPOSED, DISPOSING, RENDERED_IMAGE, RENDERING, REPAINT_MASK |
| Fields inherited from interface de.grogra.imp.ViewComponent |
|---|
ALL, CHANGED, MIN_USER_FLAG, SCENE, SELECTION, TOOLS |
| Constructor Summary | |
|---|---|
GL20Display()
|
|
| Method Summary | |
|---|---|
void |
display(javax.media.opengl.GLAutoDrawable arg0)
|
void |
displayChanged(javax.media.opengl.GLAutoDrawable arg0,
boolean arg1,
boolean arg2)
|
java.lang.Object |
getComponent()
|
protected java.awt.image.ImageObserver |
getObserverForRenderer()
Returns an observer which receives the information about the rendered image from a Renderer. |
java.awt.image.RenderedImage |
getSnapshot()
|
View3D |
getView3D()
|
void |
init(javax.media.opengl.GLAutoDrawable arg0)
|
void |
initRender(int flags)
Performs initialization tasks in preparation for rendering. |
void |
initView(View view,
EventListener listener)
Initializes this component. |
void |
invokeRender(int flags)
Invoked to perform rendering. |
void |
makeSnapshot(ObjectConsumer<? super java.awt.image.RenderedImage> callback)
Instructs the view component to create a snapshot. |
protected void |
render(int flags)
Performs rendering. |
void |
reshape(javax.media.opengl.GLAutoDrawable arg0,
int arg1,
int arg2,
int arg3,
int arg4)
|
| Methods inherited from class de.grogra.imp.awt.ViewComponentAdapter |
|---|
checkRepaint, checkRepaintWrapException, dispose, disposeRenderer, getColor, getColor, getFactory, getFontMetrics, getGlobalLOD, getIntColor, getInterruptedException, getOption, getRenderGraphState, getView, initFactory, installListeners, invokeRenderSync, optionValueChanged, render, render, renderUninterruptibly, repaint, run, toSelection, uninstallListeners |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GL20Display()
| Method Detail |
|---|
public void display(javax.media.opengl.GLAutoDrawable arg0)
display in interface javax.media.opengl.GLEventListener
public void displayChanged(javax.media.opengl.GLAutoDrawable arg0,
boolean arg1,
boolean arg2)
displayChanged in interface javax.media.opengl.GLEventListenerpublic java.lang.Object getComponent()
getComponent in interface ComponentWrapperprotected java.awt.image.ImageObserver getObserverForRenderer()
ViewComponentAdapterRenderer. The returned observer
has to manage the drawing of the (partially) rendered image
on the view component.
getObserverForRenderer in class ViewComponentAdapternull if
this is not supported by this componentpublic java.awt.image.RenderedImage getSnapshot()
public View3D getView3D()
public void init(javax.media.opengl.GLAutoDrawable arg0)
init in interface javax.media.opengl.GLEventListenerpublic void initRender(int flags)
ViewComponentAdapterViewComponentAdapter.run() in this
ViewComponent's own thread.
initRender in class ViewComponentAdapterflags - combination of bit masks
public void initView(View view,
EventListener listener)
ViewComponentview
within which this view component is used to display the graph.
It also sets an event listener. this has to be informed of
mouse and keys events within the view component by implementations
of this method.
initView in interface ViewComponentinitView in class ViewComponentAdapterview - the containing viewlistener - mouse and key events will be reported to this listenerpublic void invokeRender(int flags)
ViewComponentAdapterViewComponentAdapter.run() in this ViewComponent's own thread.
Its sole task is to invoke ViewComponentAdapter.invokeRenderSync(int) in
the rendering thread (which may be this
ViewComponent's thread, the AWT-thread, or another
thread, depending on the implementation) in a write-protected
context. The invocation has to be
synchronously, i.e., if it is in another thread, the current thread
has to wait until ViewComponentAdapter.invokeRenderSync(int) has completed.
invokeRender in class ViewComponentAdapterflags - the flags to pass to ViewComponentAdapter.invokeRenderSync(int)public void makeSnapshot(ObjectConsumer<? super java.awt.image.RenderedImage> callback)
ViewComponentcallback as an
instance of RenderedImage. This may happen asynchronously,
i.e., in an arbitrary thread.
makeSnapshot in interface ViewComponentcallback - callback which asynchronously receives the snapshot
protected void render(int flags)
throws java.lang.InterruptedException
ViewComponentAdapterViewComponentAdapter.invokeRenderSync(int) in a context where
Workbench.current() returns the workbench of this
view.
render in class ViewComponentAdapterflags - combination of bit masks
java.lang.InterruptedException - if the rendering has been interrupted
public void reshape(javax.media.opengl.GLAutoDrawable arg0,
int arg1,
int arg2,
int arg3,
int arg4)
reshape in interface javax.media.opengl.GLEventListener
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||