|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.newdawn.slick.svg.SimpleDiagramRenderer
public class SimpleDiagramRenderer
A very primtive implementation for rendering a diagram. This simply sticks the shapes on the screen in the right fill and stroke colours
| Field Summary | |
|---|---|
Diagram |
diagram
The diagram to be rendered |
protected static SGL |
GL
The renderer to use for all GL operations |
int |
list
The display list representing the diagram |
| Constructor Summary | |
|---|---|
SimpleDiagramRenderer(Diagram diagram)
Create a new simple renderer |
|
| Method Summary | |
|---|---|
void |
render(Graphics g)
Render the diagram to the given graphics context |
static void |
render(Graphics g,
Diagram diagram)
Utility method to render a diagram in immediate mode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static SGL GL
public Diagram diagram
public int list
| Constructor Detail |
|---|
public SimpleDiagramRenderer(Diagram diagram)
diagram - The diagram to be rendered| Method Detail |
|---|
public void render(Graphics g)
g - The graphics context to which we should render the diagram
public static void render(Graphics g,
Diagram diagram)
g - The graphics context to render todiagram - The diagram to render
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||