public class MyProject extends PjProject
In this project a classes is embedded in a JavaView project. Nearly all applications
in JavaView are embedded into projects, each with a special functionality. Such
projects can be reused as a building blocks in other cirumstances, similar to a class.
In fact, a project is a subclass of
which allows to manage a set of geometries, a display(s), and other projects, and
to react on animation and pick events.
This project also shows how to work with animations. Here an instance of class
PsAnimation is created where the current project registers
itself as dynamic object to be able to receive time events. Whenever the time changes
the animation manager invokes the method
|Constructor and Description|
Constructor, without arguments to allow loading of project from menu.
|Modifier and Type||Method and Description|
Do initialization of data structures; method is also used to reset instances.
Method is called from animation(-panel) whenever time has changed since this project is registered as dynamic object in the animation.
Start project, e.g. start an animation.
Update method of project to react on changes in its panel or of its children.
addDisplay, addGeometry, addGeometry, dispose, dragDisplay, dragInitial, dragVertex, fitDisplays, getAnimation, getDisplay, getDisplays, getGeometry, getGeometry, getNumGeometries, getParameter, getViewer, hasAnimation, hasDisplay, isEnabledAutoFit, markVertices, pickDisplay, pickInitial, pickVertex, removeDisplay, removeGeometries, removeGeometry, selectDisplay, selectGeometry, setAnimation, setBackColor, setBorderType, setDisplay, setEnabledAutoFit, setGeometry, setParameter, setViewer, stop, unmarkVertices
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
public void init()
public void start()
public boolean setTime(PsTimeEvent timeEvent)
public boolean update(java.lang.Object event)
child.setParent(this)with this project as argument. For example, see the constructor of MyProject. Project must react on child events, or forward them to its superclass.
Catch events of integer children and recompute surface.