|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgestalt.render.bin.BilateralBin
public class BilateralBin
a bin that handles drawables. in addition this bin stores unsorted drawables in one half of the list and sorted drawables in the other. the bin must be updated as a drawable to execute the sorting algoritm.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
BilateralBin()
|
|
BilateralBin(int theArrayBlockSize)
|
|
| Method Summary | |
|---|---|
void |
add(Drawable theDrawable)
this method is commonly used to store children of a drawable. |
void |
add(Drawable[] theDrawables)
|
void |
clear()
|
void |
draw(GLContext theContext)
this method is used to draw the drawable, when the context is ready. |
int |
find(Drawable theDrawable)
|
Drawable |
get(int theID)
|
Drawable[] |
getDataRef()
|
float[] |
getSortData()
returns the data upon which a sort value is calculated. |
boolean |
getSortFlag()
|
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[] theDrawables)
|
Drawable |
remove(int theIndex)
|
void |
replace(Drawable theDrawableOld,
Drawable theDrawableNew)
|
void |
set(int theID,
Drawable theDrawable)
|
void |
setActive(boolean theState)
|
void |
setSortFlag(boolean theSortFlag)
|
void |
setSortStyle(int theSortStyle)
|
void |
setSortValue(float theSortValue)
caches the current sort value. |
int |
size()
|
void |
swap(Drawable theShapeA,
Drawable theShapeB)
|
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 BilateralBin()
public BilateralBin(int theArrayBlockSize)
| Method Detail |
|---|
public void setSortFlag(boolean theSortFlag)
public boolean getSortFlag()
public void setSortStyle(int theSortStyle)
public void swap(Drawable theShapeA,
Drawable theShapeB)
swap in interface AbstractBin
public void swap(int theIDA,
int theIDB)
swap in interface AbstractBinpublic int find(Drawable theDrawable)
find in interface AbstractBinpublic void draw(GLContext theContext)
Drawable
draw in interface DrawabletheContext - GLContextpublic boolean isActive()
Drawable
isActive in interface Drawablepublic void setActive(boolean theState)
setActive in interface AbstractBinpublic void add(Drawable[] theDrawables)
add in interface AbstractBinpublic void add(Drawable theDrawable)
Drawable
add in interface AbstractBinadd in interface DrawabletheDrawable - Drawablepublic void remove(Drawable[] theDrawables)
remove in interface AbstractBinpublic Drawable remove(int theIndex)
remove in interface AbstractBinpublic Drawable remove(Drawable theDrawable)
remove in interface AbstractBinpublic int size()
size in interface AbstractBinpublic Drawable get(int theID)
get 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 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 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 | ||||||||