public final class PsModelInfo extends PjWorkshop
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EMPTY_ITEM |
static java.lang.String |
FILE_FORMAT_BYU |
static java.lang.String |
FILE_FORMAT_EPS |
static java.lang.String |
FILE_FORMAT_FE |
static java.lang.String |
FILE_FORMAT_GIF |
static java.lang.String |
FILE_FORMAT_HTML |
static java.lang.String |
FILE_FORMAT_JPG |
static java.lang.String |
FILE_FORMAT_JVX |
static java.lang.String |
FILE_FORMAT_MGS |
static java.lang.String |
FILE_FORMAT_OBJ |
static java.lang.String |
FILE_FORMAT_OFF |
static java.lang.String |
FILE_FORMAT_PNG |
static java.lang.String |
FILE_FORMAT_POLY |
static java.lang.String |
FILE_FORMAT_PS |
static java.lang.String |
FILE_FORMAT_SEPARATOR |
static java.lang.String |
FILE_FORMAT_TXT |
static java.lang.String |
FILE_FORMAT_WRL |
static java.lang.String |
REFERENCE_ARTICLE |
static java.lang.String |
REFERENCE_BOOK |
static java.lang.String |
REFERENCE_INCOLLECTION |
static java.lang.String |
REFERENCE_MISC |
static java.lang.String |
REFERENCE_URL |
static java.lang.String |
USAGE_APPLET |
static java.lang.String |
USAGE_IMAGE |
static java.lang.String |
USAGE_MASTER |
static java.lang.String |
USAGE_ORIGINAL |
static java.lang.String |
USAGE_OTHER |
static java.lang.String |
USAGE_PREVIEW |
static java.lang.String |
USAGE_PRINT |
static java.lang.String |
USAGE_README |
HAS_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
MODE_BUG, MODE_STANDARD, MODE_VALIDATE
Constructor and Description |
---|
PsModelInfo() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Duplicate object by recursively cloning all instance variables
except inspector panels and lists of registered listeners.
|
PsAuthorInfo |
getAuthorInfo()
Get author information.
|
PsGeometryInfo |
getGeometryInfo()
Get geometry information.
|
java.lang.String |
getRsrcFile()
Get resource file name.
|
PsXmlSrc |
getXml()
Create an XML tree with data from this instance, for example, to print to file.
|
void |
init()
Initialize and reset resource.
|
boolean |
read(java.lang.String rsrcFile)
Read an XML file and create a tree structure of instances of type
PsXmlNode . |
static void |
runningInsideJavaView(boolean insideJavaView) |
void |
setAuthorInfo(PsAuthorInfo authorInfo)
Set author information.
|
void |
setGeometryInfo(PsGeometryInfo geometryInfo)
Set geometry information.
|
void |
setXml(PsXmlSrc src)
Fill this instance with data from an XML source, for example, previously read from file.
|
boolean |
update(java.lang.Object event)
Updates the geometry if this workshop has changed,
i.e. if the event is
this or null . |
cancel, close, getDisplay, getDisplays, getGeometry, getMode, getSavedGeometry, getViewer, isModal, isStandalone, ok, openDialog, removeGeometry, reset, setDisplay, setDisplays, setGeometry, setModal, setMode, setStandalone, setViewer
addInspector, addUpdateListener, assureInspector, clearTag, 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
getFather, getName, setParent
public static final java.lang.String USAGE_MASTER
public static final java.lang.String USAGE_PREVIEW
public static final java.lang.String USAGE_APPLET
public static final java.lang.String USAGE_IMAGE
public static final java.lang.String USAGE_ORIGINAL
public static final java.lang.String USAGE_OTHER
public static final java.lang.String USAGE_PRINT
public static final java.lang.String USAGE_README
public static final java.lang.String FILE_FORMAT_BYU
public static final java.lang.String FILE_FORMAT_JVX
public static final java.lang.String FILE_FORMAT_OBJ
public static final java.lang.String FILE_FORMAT_POLY
public static final java.lang.String FILE_FORMAT_SEPARATOR
public static final java.lang.String FILE_FORMAT_EPS
public static final java.lang.String FILE_FORMAT_PS
public static final java.lang.String FILE_FORMAT_GIF
public static final java.lang.String FILE_FORMAT_JPG
public static final java.lang.String FILE_FORMAT_PNG
public static final java.lang.String FILE_FORMAT_FE
public static final java.lang.String FILE_FORMAT_MGS
public static final java.lang.String FILE_FORMAT_OFF
public static final java.lang.String FILE_FORMAT_TXT
public static final java.lang.String FILE_FORMAT_HTML
public static final java.lang.String FILE_FORMAT_WRL
public static final java.lang.String REFERENCE_ARTICLE
public static final java.lang.String REFERENCE_BOOK
public static final java.lang.String REFERENCE_INCOLLECTION
public static final java.lang.String REFERENCE_MISC
public static final java.lang.String REFERENCE_URL
public static final java.lang.String EMPTY_ITEM
public void init()
init
in class PjWorkshop
public java.lang.Object clone()
clone
in class PsObject
PsObject.copy(PsObject)
public static final void runningInsideJavaView(boolean insideJavaView)
public java.lang.String getRsrcFile()
public PsAuthorInfo getAuthorInfo()
public void setAuthorInfo(PsAuthorInfo authorInfo)
public PsGeometryInfo getGeometryInfo()
public void setGeometryInfo(PsGeometryInfo geometryInfo)
public boolean read(java.lang.String rsrcFile)
PsXmlNode
.rsrcFile
- full name of resource filetrue
if loading was successfulpublic PsXmlSrc getXml()
public void setXml(PsXmlSrc src)
init()
.src
- XML source used to fill this instance with data.public boolean update(java.lang.Object event)
PjWorkshop
this
or null
.
Also propagates update() to superclass with the original argument event.
Some subclasses may register themselves as update listener of the geometry of this workshop. In order to prevent an update loop, this method safely uses isUpdateSender() when updating the geometry.
update
in interface PsUpdateIf
update
in class PjWorkshop
event
- sender of this update.PsObject.setParent(PsUpdateIf)
,
PsObject.getFather()
,
PsObject.addUpdateListener(PsUpdateIf)
"