|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgestalt.render.bin.RenderBin
public class RenderBin
a bin that handles drawables.
| Constructor Summary | |
|---|---|
RenderBin()
|
|
RenderBin(int theArrayBlockSize)
|
|
| Method Summary | |
|---|---|
void |
add(Drawable theSortable)
this method is commonly used to store children of a drawable. |
void |
add(Drawable[] theSortables)
|
void |
clear()
|
void |
draw(GLContext theRenderContext)
this method is used to draw the drawable, when the context is ready. |
int |
find(Drawable theDrawable)
|
Drawable |
get(int theID)
|
Drawable[] |
getDataRef()
get the array size by the size() method not by .length |
float[] |
getSortData()
returns the data upon which a sort value is calculated. |
float |
getSortValue()
returns the last sort value. |
boolean |
isActive()
returns whether the drawable is active. |
boolean |
isSortable()
returns true if the 'drawable' should be sorted before drawing. |
Drawable |
remove(Drawable theDrawable)
|
void |
remove(Drawable[] theSortables)
|
Drawable |
remove(int theIndex)
|
void |
replace(Drawable theDrawableOld,
Drawable theDrawableNew)
|
void |
set(int theID,
Drawable theDrawable)
|
void |
setActive(boolean theState)
|
void |
setSortValue(float theSortValue)
caches the current sort value. |
int |
size()
|
void |
swap(Drawable theDrawableA,
Drawable theDrawableB)
|
void |
swap(int theIDA,
int theIDB)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RenderBin()
public RenderBin(int theArrayBlockSize)
| Method Detail |
|---|
public void add(Drawable[] theSortables)
add in interface AbstractBinpublic void add(Drawable theSortable)
Drawable
add in interface AbstractBinadd in interface DrawabletheSortable - Drawablepublic void remove(Drawable[] theSortables)
remove in interface AbstractBinpublic Drawable remove(Drawable theDrawable)
remove in interface AbstractBinpublic Drawable remove(int theIndex)
remove in interface AbstractBinpublic int find(Drawable theDrawable)
find in interface AbstractBin
public void swap(int theIDA,
int theIDB)
swap in interface AbstractBin
public void swap(Drawable theDrawableA,
Drawable theDrawableB)
swap in interface AbstractBinpublic int size()
size in interface AbstractBin
public void set(int theID,
Drawable theDrawable)
set in interface AbstractBin
public void replace(Drawable theDrawableOld,
Drawable theDrawableNew)
replace in interface AbstractBinpublic Drawable get(int theID)
get in interface AbstractBinpublic void clear()
clear in interface AbstractBinpublic Drawable[] getDataRef()
getDataRef in interface AbstractBinpublic java.lang.String toString()
toString in interface AbstractBintoString in class java.lang.Objectpublic void draw(GLContext theRenderContext)
Drawable
draw in interface DrawabletheRenderContext - GLContextpublic boolean isActive()
Drawable
isActive in interface Drawablepublic void setActive(boolean theState)
setActive in interface AbstractBinpublic float getSortValue()
Drawable
getSortValue in interface Drawablepublic void setSortValue(float theSortValue)
Drawable
setSortValue in interface DrawabletheSortValue - floatpublic float[] getSortData()
Drawable
getSortData in interface Drawablepublic boolean isSortable()
Drawable
isSortable in interface Drawable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||