|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcox.jmatt.java.MathTools.graphing.RenderEngine
public class RenderEngine
This is a support class for any graphing implementation. Most methods assume, but do not enforce, that parameter and other Objects will in fact be Strings.
The XtoString()
method capable of re-creating it.
This class is very simple in both design and function. It accepts Renderables, holds them in the order they were added, and returns them as an Object[] array upon request.
Constructor Summary | |
---|---|
RenderEngine()
Constructor necessary for adding to scripts. |
Method Summary | |
---|---|
boolean |
addRenderable(Renderable pItem)
Add a Renderable to the collection. |
java.lang.Object[] |
render(java.lang.Object pContext)
Call render() on all the items currently held, in order, and collect the results. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RenderEngine()
Method Detail |
---|
public boolean addRenderable(Renderable pItem)
Renderable
to the collection. The method returns false only if the supplied Renderable is null.
public java.lang.Object[] render(java.lang.Object pContext)
render()
on all the items currently held, in order, and collect the results.
pContext
- The Rendering Context to be used for all the items rendered.
Renderable
s against the supplied context.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |