|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjv.object.PsObject
jvx.project.PjWorkshop
jvx.geom.PwShooter
The beginning of a small game....
| Field Summary |
| Fields inherited from class jv.object.PsObject |
HAS_CONFIG_PANEL, HAS_INFO_PANEL, HAS_LABEL_PANEL, HAS_MATERIAL_PANEL, HAS_TEXTURE_PANEL, HAS_VECTOR_PANEL, INSPECTOR_INFO, INSPECTOR_INFO_EXT, IS_DELETED, IS_FIXED, IS_FOCUSSED, IS_PICKED, IS_SELECTED, IS_USED, NUM_TAGS |
| Constructor Summary | |
PwShooter()
|
|
| Method Summary | |
void |
init()
Initialize and reset project, stops the running animation if any. |
void |
removeGeometry()
Remove the assigned geometry and its backup clone. |
void |
reset()
Reset this workshop to its initial state from which computations can start. |
void |
run()
|
void |
setDisplay(PvDisplayIf disp)
Set the active display when this workshop was launched. |
void |
setGeometry(PgGeometry geom)
Assign a geometry on which this workshop operates, and create a backup clone of the geometry. |
boolean |
update(java.lang.Object object)
Updates the geometry if this workshop has changed, i.e. if the event is this or null.
|
| Methods inherited from class jvx.project.PjWorkshop |
cancel, close, getDisplay, getDisplays, getGeometry, getSavedGeometry, getViewer, isModal, ok, setDisplays, setModal, setViewer |
| Methods inherited from class jv.object.PsObject |
addInspector, addUpdateListener, assureInspector, clearTag, clone, clone, clone, copy, getFather, getInfoPanel, getInspector, getName, getNumObjects, getSymbol, hasInspector, hasTag, hasUpdateListener, instanceOf, instanceOf, newInspector, newInspector, removeInspector, removeInspector, removeUpdateListener, setName, setParent, setSymbol, setTag, toString, updatePanels |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jv.object.PsUpdateIf |
getFather, getName, setParent |
| Constructor Detail |
public PwShooter()
| Method Detail |
public void init()
PjWorkshop
init in class PjWorkshoppublic void setGeometry(PgGeometry geom)
PjWorkshopSubclasses frequently overwrite this method but are adviced to call this method.
setGeometry in interface PjWorkshopIfsetGeometry in class PjWorkshopgeom - the workshop modifies this geometry.public void reset()
PjWorkshopA subclass may also want to reset a geometry to some initial state useful for this workshop, although, not always is the initial state of the geometry equivalent to the original state of the geometry, for example, if material properties of the geometry must be set specifically for this workshop. Therefore, this superclass does not restore the original duplicate of the geometry.
The reset method often is different from the init() method of a workshop since often the workshop needs information about the registered geometry to get into a working initial state.
reset in class PjWorkshoppublic void setDisplay(PvDisplayIf disp)
PjWorkshop
setDisplay in interface PjWorkshopIfsetDisplay in class PjWorkshoppublic void removeGeometry()
PjWorkshop
removeGeometry in class PjWorkshoppublic boolean update(java.lang.Object object)
PjWorkshopthis or null.
Also propagates update() to superclass with the original argument event.
Some subclasses may register themself as update listener of the geometry of this workshop. In order to prevent an update loop, this method savely uses isUpdateSender() when updating the geometry.
update in interface PsUpdateIfupdate in class PjWorkshopobject - sender of this update.
public void run()
run in interface java.lang.Runnable
|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||