gzz.gfx.gl
Class GL.JavaObject

java.lang.Object
  |
  +--gzz.vob.Vob
        |
        +--gzz.gfx.gl.GL.JavaObject
All Implemented Interfaces:
GLDeletable
Direct Known Subclasses:
GL.NonRenderableJavaObject, GL.Renderable0JavaObject, GL.Renderable1JavaObject, GL.Renderable2JavaObject, GL.Renderable3JavaObject
Enclosing class:
GL

public abstract static class GL.JavaObject
extends Vob
implements GLDeletable

The Java proxy for a C++ object.


Nested Class Summary
 
Nested classes inherited from class gzz.vob.Vob
Vob.RenderInfo
 
Field Summary
 
Fields inherited from class gzz.vob.Vob
dbg, rcsid
 
Method Summary
protected abstract  void deleteObj()
           
 void deleteObject()
          Delete the C++ object corresponding to this object.
 void finalize()
          During garbage collection: destroy the C++ object associated with this object.
protected  int getId()
          Get the C++ integer id associated with this object.
 void render(java.awt.Graphics g, boolean fast, Vob.RenderInfo info1, Vob.RenderInfo info2)
          Renders this vob at the given screen coordinates and in given size.
 
Methods inherited from class gzz.vob.Vob
addToListGL, addToListGL, intersect, putGL, putGL, putGL, putGL
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

finalize

public void finalize()
During garbage collection: destroy the C++ object associated with this object.

Overrides:
finalize in class java.lang.Object

render

public void render(java.awt.Graphics g,
                   boolean fast,
                   Vob.RenderInfo info1,
                   Vob.RenderInfo info2)
Description copied from class: Vob
Renders this vob at the given screen coordinates and in given size.

Specified by:
render in class Vob
Parameters:
g - The graphics context to draw into The color should already be set to the default foreground color, mixed by the caller.
fast - Whether to draw quickly (true) or beautifully (false)
info1 - General parameters and coordinate systems of cs1
info2 - General parameters and coordinate systems of cs2
See Also:
VobPlacer#put(Vob vob, int depth, int x, int y, int w, int h), Vob.RenderInfo

deleteObject

public void deleteObject()
Delete the C++ object corresponding to this object. Note that using this object anywhere afterwards may cause Null pointers or even worse on the C++ side. Use with MUCH care.

Specified by:
deleteObject in interface GLDeletable

deleteObj

protected abstract void deleteObj()

getId

protected int getId()
Get the C++ integer id associated with this object.