public class PjModel extends PjProject implements java.awt.event.ActionListener
File -> Import -> ...This adds the loaded geometry to this project, and this project overwrites the methods addGeometry() and selectGeometry() to show how the project might react on newly loaded geometries. Here just a message is printed.
PvViewer
,
Serialized FormHAS_BOUNDARY_PANEL, 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 and Description |
---|
PjModel() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event) |
boolean |
addGeometry(PgGeometryIf geom)
Overwrite method of superclass to be able to react when new geometry
is loaded from file by menu import.
|
void |
init()
Initialize and reset project, stops the running animation if any.
|
void |
removeGeometry(PgGeometryIf geom)
Overwrite method of superclass to be able to react when new geometry
is loaded from file by menu import.
|
void |
selectGeometry(PgGeometryIf geom)
Overwrite method of superclass to be able to react when new geometry
is loaded from file by menu import.
|
void |
start()
Start method is invoke when project is selected in the viewer.
|
addDisplay, addGeometry, dispose, dragDisplay, dragInitial, dragVertex, fitDisplays, getAnimation, getDisplay, getDisplays, getGeometry, getGeometry, getNumGeometries, getParameter, getViewer, hasAnimation, hasDisplay, isEnabledAutoFit, markVertices, pickDisplay, pickInitial, pickVertex, removeDisplay, removeGeometries, selectDisplay, setAnimation, setBackColor, setBorderType, setDisplay, setEnabledAutoFit, setGeometry, setParameter, setTime, 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, update, updatePanels
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getName
getName
public void init()
PjProject
public void start()
start
in class PjProject
PvViewerIf.start()
,
PjProject.isEnabledAutoFit()
public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
public boolean addGeometry(PgGeometryIf geom)
addGeometry
in class PjProject
geom
- geometry to be added to this project and the current display.false
if geometry was null or already registered in project.public void selectGeometry(PgGeometryIf geom)
selectGeometry
in interface PvPickListenerIf
selectGeometry
in class PjProject
geom
- Now selected geometry of display.public void removeGeometry(PgGeometryIf geom)
removeGeometry
in class PjProject
"