|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopengl.CodeRenderer
public class CodeRenderer
Field Summary | |
---|---|
static float |
FADE_ALPHA
|
static float |
FILE_SPACING
|
Constructor Summary | |
---|---|
CodeRenderer()
|
Method Summary | |
---|---|
static void |
draw(javax.media.opengl.GL gl,
boolean drawRects)
Creates display lists if new objects are drawn and calls the lists otherwise. |
static void |
init(javax.media.opengl.GL gl)
Initializes the rectangle and text renderer. |
static void |
setPackage(PackageInfo pInfo)
Draws the files of the current package to the canvas. |
static void |
setSelectedItem(CodeItem item,
int selIdx)
Sets the CodeItem which is selected. |
static void |
setSelectEffect(boolean select)
Creates a new instance of the select effect. |
static void |
setSingleFile(FileInfo file)
Draws a single file to the canvas without discarding a previously loaded project. |
static void |
showFile()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final float FILE_SPACING
public static final float FADE_ALPHA
Constructor Detail |
---|
public CodeRenderer()
Method Detail |
---|
public static void setPackage(PackageInfo pInfo)
pInfo
- an instance of PackageInfo containing the CodeItems of each file.public static void setSingleFile(FileInfo file)
file
- an instance of FileInfo containing the CodeItems of the current file.public static void init(javax.media.opengl.GL gl)
gl
- public static void draw(javax.media.opengl.GL gl, boolean drawRects)
gl
- drawRects
- the rectangles are drawn if drawRects is set to true.public static void setSelectEffect(boolean select)
select
- a fade out effect is created if selected is true and a
fade in effect otherwise.public static void setSelectedItem(CodeItem item, int selIdx)
item
- an instance of CodeItem which shall be highlighted.selIdx
- the index of the current filepublic static void showFile()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |