|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nl.tudelft.goal.ut2004.visualizer.timeline.map.FlagRenderer
public class FlagRenderer
Sub renderer for Flag objects.
Constructor Summary | |
---|---|
FlagRenderer(FlagInfo flag,
int glName)
Create a new subrenderer with passed agent as source of data. |
Method Summary | |
---|---|
void |
destroy()
Call renderer to clean up any resources it used. |
static Color |
getBlueFlagColor()
|
Color |
getColor()
|
int |
getGLName()
|
FlagInfo |
getObject()
Return object this renderer draws. |
static Color |
getOtherFlagColor()
|
static Color |
getRedFlagColor()
|
void |
prepare(javax.media.opengl.GL gl)
Here should be done preparation for rendering (e.g. |
void |
render(javax.media.opengl.GL gla)
Display stuff you want to. |
static void |
setBlueFlagColor(Color c)
|
static void |
setOtherFlagColor(Color c)
|
static void |
setRedFlagColor(Color c)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FlagRenderer(FlagInfo flag, int glName)
renderableUTAgent
- agent used as source of data.Method Detail |
---|
public void prepare(javax.media.opengl.GL gl)
ISubGLRenderer
prepare
in interface ISubGLRenderer<FlagInfo>
public void render(javax.media.opengl.GL gla)
ISubGLRenderer
CollectionRenderer
render
in interface ISubGLRenderer<FlagInfo>
public FlagInfo getObject()
ISubGLRenderer
getObject
in interface ISubGLRenderer<FlagInfo>
public static Color getRedFlagColor()
public static void setRedFlagColor(Color c)
public static Color getBlueFlagColor()
public static void setBlueFlagColor(Color c)
public static Color getOtherFlagColor()
public static void setOtherFlagColor(Color c)
public Color getColor()
public int getGLName()
getGLName
in interface ISubGLRenderer<FlagInfo>
public void destroy()
ISubGLRenderer
destroy
in interface ISubGLRenderer<FlagInfo>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |