|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgestalt.shape.AbstractDrawable
public abstract class AbstractDrawable
this class represents a simple implementation of the 'drawable' interface. it is handy in those cases in which only a few of the methods required by the 'drawable' interface are needed. the 'draw' method is intentionally left unimplemented since it is the only method with a 'real' important functionality.
| Constructor Summary | |
|---|---|
AbstractDrawable()
|
|
| Method Summary | |
|---|---|
void |
add(Drawable theDrawable)
this method is commonly used to store children of a drawable. |
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. |
void |
setSortValue(float theSortValue)
caches the current sort value. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface gestalt.render.Drawable |
|---|
draw |
| Constructor Detail |
|---|
public AbstractDrawable()
| Method Detail |
|---|
public void add(Drawable theDrawable)
Drawable
add in interface DrawabletheDrawable - Drawablepublic boolean isActive()
Drawable
isActive in interface Drawablepublic 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 | ||||||||