|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.inria.insitu.glite.Lite
fr.inria.insitu.glite.nodes.LiteBounded
fr.inria.insitu.glite.LiteComponent
public class LiteComponent
LiteComponent is a toplevel Java component and the root Lite object holding a LiteGroup.
To create a LiteComponent, use the following code:
Frame frame = new Frame(); frame.setSize(500, 500); GLCanvas canvas = new GLCanvas(); frame.add(canvas); LiteComponent liteComp = new LiteComponent(canvas); LiteGroup group = liteComp.getLite();
| Constructor Summary | |
|---|---|
LiteComponent(javax.media.opengl.GLAutoDrawable drawable)
Creates a LiteComponent with a specified GLAutoDrawable. |
|
| Method Summary | |
|---|---|
void |
addActivity(Activity activity)
Adds an activity to the ActivityScheduler. |
void |
dispose()
Releases all the resources maintained by this LiteComponent. |
ActivityScheduler |
getActivityScheduler()
|
LiteComponent |
getComponent()
|
javax.media.opengl.GLAutoDrawable |
getDrawable()
Returns the drawable. |
LiteGroup |
getLite()
Returns the LiteGroup managed by this LiteComponent. |
void |
paint(LitePaintContext ctx)
Abstract method to called when the Lite should be painted. |
void |
repaint()
Triggers a repaint in the future. |
void |
setLite(LiteGroup group)
Sets the toplevel LiteGroup on this LiteComponent. |
| Methods inherited from class fr.inria.insitu.glite.nodes.LiteBounded |
|---|
getBounds, getBoundsReference, getColor, getPosition, pick, pickAll, setBounds, setBounds, setColor, setPosition |
| Methods inherited from class fr.inria.insitu.glite.Lite |
|---|
descendantModified, getChild, getChildrenCount, getHeight, getParent, getWidth, getX, getY, indexOf, modified, moveBy, pick, setParent, setPosition |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LiteComponent(javax.media.opengl.GLAutoDrawable drawable)
drawable - the GLAutoDrawable| Method Detail |
|---|
public void dispose()
public LiteGroup getLite()
public void setLite(LiteGroup group)
group - the new LiteGrouppublic javax.media.opengl.GLAutoDrawable getDrawable()
public void repaint()
public ActivityScheduler getActivityScheduler()
public void addActivity(Activity activity)
activity - the activitypublic void paint(LitePaintContext ctx)
paint in class LiteBoundedctx - the LitePaintContextpublic LiteComponent getComponent()
getComponent in class Lite
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||