|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.Observable
backend.spheremodel.SphereBasicObject
public abstract class SphereBasicObject
SphereBasicObject should be the base of anything that goes into the SphereWorldModel
| Constructor Summary | |
|---|---|
SphereBasicObject()
default SphereBasicObject constructor should be called |
|
| Method Summary | |
|---|---|
void |
addChild(SphereBasicObject newChild)
addChild will add a child to this SphereBasicObject |
SphereBasicObject |
getChild(int index)
getChild will return the child at the appropriate index |
int |
getChildCount()
getChildCount will return the amount of children this SphereBasicObject has at the moment. |
boolean |
getSelected()
getSelected will return whether or not this object is selected |
boolean |
isBeingRemoved()
Get whether this point is being removed or not |
boolean |
isHidden()
isHidden will return whether this object is hidden or not |
void |
notifyFamily()
notifyFamily should be called when this SphereBasicObject is going to be destroyed |
void |
removeChild(SphereBasicObject removeMe)
removeChild will take away a child from the parent |
void |
setBeingRemoved()
This should be set when the point is in the process of being removed it helps us avoid issues with parent updating. |
void |
setHidden(boolean newStatus)
setHidden will change whether this is hidden or not. |
void |
setSelected(boolean selectMe)
setSelected will this object to the selected state |
| Methods inherited from class java.util.Observable |
|---|
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SphereBasicObject()
| Method Detail |
|---|
public int getChildCount()
public SphereBasicObject getChild(int index)
index - is the 0 based index to retrieve a child from
public void addChild(SphereBasicObject newChild)
newChild - the child to addpublic void removeChild(SphereBasicObject removeMe)
removeMe - - the child to removepublic void setSelected(boolean selectMe)
selectMe - is the new state for this object to be selected or notpublic void notifyFamily()
public boolean getSelected()
public void setBeingRemoved()
public boolean isBeingRemoved()
public boolean isHidden()
public void setHidden(boolean newStatus)
newStatus - will set the new hidden status of this object. If one
tried to set the status to what it already is then nothing will
happen
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||