JavaView® v2.00.008

jv.rsrc
Class PsJavaView

java.lang.Object
  |
  +--jv.object.PsObject
        |
        +--jv.rsrc.PsJavaView
All Implemented Interfaces:
java.lang.Cloneable, PsUpdateIf, java.io.Serializable

public final class PsJavaView
extends PsObject

All JavaView resource information for configuration of the system.

Version:
16.04.00, 1.20 revised (kp) Extended again from PsObject.
20.02.00, 1.10 revised (kp) Extended from PsXmlSrc instead of PsObject.
13.02.00, 1.00 created (kp)
Author:
Konrad Polthier
See Also:
Serialized Form

Field Summary
protected static int[][] m_aboutSize
          Size of about dialog.
protected static int[][] m_animationSize
          Size of animation dialog.
static PdColor m_background
           
static boolean m_cameraClip
           
static double m_cameraClipFar
           
static double m_cameraClipNear
           
static double m_cameraDistance
           
static java.lang.String m_cameraProjection
           
static double m_cameraRoll
           
protected static int[][] m_consoleSize
          Size of console window.
static java.lang.String m_consoleVisible
           
protected static int[][] m_controlSize
          Size of control window.
static java.lang.String m_controlVisible
           
static boolean m_displayAutorotate
           
static boolean m_displayBackimage
           
static boolean m_displayBackside
           
static boolean m_displayDepth
           
static boolean m_displayEdgeAura
           
static int m_displayHeight
           
static boolean m_displaySorting
           
static int m_displayWidth
           
static boolean m_displayXYGrid
           
protected static int[][] m_exportBounds
          Size of frame with exported geometry data.
static PdColor m_foreground
           
protected static int[][] m_helpSize
          Size of help dialog.
protected static int[][] m_importModelSize
          Size of dialog for importing a model.
static PdVector m_interest
           
static java.lang.String m_licenseeEmail
           
static java.lang.String m_licenseeFirstName
           
static java.lang.String m_licenseeLastName
           
static java.lang.String m_licenseeOrganization
           
static java.lang.String m_licenseeUrl
           
static java.lang.String m_licenseExpire
           
static java.lang.String m_licenseId
           
static java.lang.String m_licenseType
           
static java.lang.String m_licenseUsage
           
static java.lang.String m_monitorMouse
          Monitor type determines the monitor mouse.
protected static int[][] m_monitorSize
          Size of monitor screen.
static int m_monitorType
          Monitor type determines the monitor screen.
protected static int[][] m_newProjectSize
          Size of dialog for loading a new project.
protected static java.lang.String m_title
           
static java.lang.String m_transformAmbient
           
static boolean m_transformEnable
           
static java.lang.String m_transformProjection
           
static java.lang.String m_userEmail
           
static java.lang.String m_userFirstName
           
static java.lang.String m_userLastName
           
static java.lang.String m_userOrganization
           
static java.lang.String m_userUrl
           
static java.lang.String m_version
          Version of resource DTD.
static PdVector m_view
           
static java.lang.String m_viewerScreen
           
static java.lang.String m_viewerVisible
           
static int MONITOR
          Identifier of control window.
static int MONITOR_DOS
          Monitor size is 640*480.
static int MONITOR_LARGE
          Monitor size is 1280*1024.
static int MONITOR_PALM
          Monitor size is 320*240.
static int MONITOR_USER
          Monitor size is user-defined.
static int MONITOR_VGA
          Monitor size is 800*600.
static int MONITOR_XCGA
          Monitor size is 1024*768.
static int MONITOR_XLARGE
          Monitor size is 1600*1200.
static int WINDOW_ABOUT
          Identifier of about window.
static int WINDOW_ANIMATION
          Identifier of animation dialog.
static int WINDOW_CONSOLE
          Identifier of JavaView console.
static int WINDOW_CONTROL
          Identifier of control window.
static int WINDOW_EXPORT_MODEL
          Identifier of export window.
static int WINDOW_HELP
          Identifier of help window.
static int WINDOW_IMPORT_MODEL
          Identifier of import window.
static int WINDOW_NEW_PROJECT
          Identifier of new project window.
 
Fields inherited from class jv.object.PsObject
HAS_CONFIG_PANEL, HAS_INFO_PANEL, HAS_MATERIAL_PANEL, INSPECTOR_INFO, INSPECTOR_INFO_EXT, IS_DELETED, IS_FIXED, IS_SELECTED, IS_USED, m_infoPanel, m_name, m_panelList, m_parent, m_tag, m_updateList, NUM_TAGS
 
Constructor Summary
PsJavaView()
           
 
Method Summary
protected  PsXmlSrc fillRsrcTree(PsXmlSrc src)
           
 int[] getWindowSize(int windowId)
          Get position and size of a window.
 PsXmlSrc getXml()
          Fills 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.
 void setXml(PsXmlSrc src)
          Fill this instance with data from an XML source, for example, previously read from file.
 void showInfoPanel()
           
 
Methods inherited from class jv.object.PsObject
addInspector, addUpdateListener, clearTag, clone, clone, clone, copy, getFather, getInfoPanel, getInspector, getName, getNumObjects, hasInspector, hasTag, hasUpdateListener, instanceOf, instanceOf, removeInspector, removeUpdateListener, setName, setParent, setTag, toString, update, updatePanels
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_version

public static java.lang.String m_version
Version of resource DTD.

m_licenseType

public static java.lang.String m_licenseType

m_licenseUsage

public static java.lang.String m_licenseUsage

m_licenseId

public static java.lang.String m_licenseId

m_licenseExpire

public static java.lang.String m_licenseExpire

m_licenseeFirstName

public static java.lang.String m_licenseeFirstName

m_licenseeLastName

public static java.lang.String m_licenseeLastName

m_licenseeOrganization

public static java.lang.String m_licenseeOrganization

m_licenseeEmail

public static java.lang.String m_licenseeEmail

m_licenseeUrl

public static java.lang.String m_licenseeUrl

m_userFirstName

public static java.lang.String m_userFirstName

m_userLastName

public static java.lang.String m_userLastName

m_userOrganization

public static java.lang.String m_userOrganization

m_userEmail

public static java.lang.String m_userEmail

m_userUrl

public static java.lang.String m_userUrl

MONITOR_XLARGE

public static int MONITOR_XLARGE
Monitor size is 1600*1200.

MONITOR_LARGE

public static int MONITOR_LARGE
Monitor size is 1280*1024.

MONITOR_XCGA

public static int MONITOR_XCGA
Monitor size is 1024*768.

MONITOR_VGA

public static int MONITOR_VGA
Monitor size is 800*600.

MONITOR_DOS

public static int MONITOR_DOS
Monitor size is 640*480.

MONITOR_PALM

public static int MONITOR_PALM
Monitor size is 320*240.

MONITOR_USER

public static int MONITOR_USER
Monitor size is user-defined.

m_monitorType

public static int m_monitorType
Monitor type determines the monitor screen.

m_monitorMouse

public static java.lang.String m_monitorMouse
Monitor type determines the monitor mouse.

m_monitorSize

protected static int[][] m_monitorSize
Size of monitor screen.

m_controlSize

protected static int[][] m_controlSize
Size of control window.

m_aboutSize

protected static int[][] m_aboutSize
Size of about dialog.

m_helpSize

protected static int[][] m_helpSize
Size of help dialog.

m_consoleSize

protected static int[][] m_consoleSize
Size of console window. Console is handled by PsDebug.

m_animationSize

protected static int[][] m_animationSize
Size of animation dialog. Dialog is handled by instance of PsAnimation.

m_newProjectSize

protected static int[][] m_newProjectSize
Size of dialog for loading a new project.

m_importModelSize

protected static int[][] m_importModelSize
Size of dialog for importing a model.

m_exportBounds

protected static int[][] m_exportBounds
Size of frame with exported geometry data.

MONITOR

public static final int MONITOR
Identifier of control window.

WINDOW_CONTROL

public static final int WINDOW_CONTROL
Identifier of control window.

WINDOW_ABOUT

public static final int WINDOW_ABOUT
Identifier of about window.

WINDOW_HELP

public static final int WINDOW_HELP
Identifier of help window.

WINDOW_CONSOLE

public static final int WINDOW_CONSOLE
Identifier of JavaView console.

WINDOW_ANIMATION

public static final int WINDOW_ANIMATION
Identifier of animation dialog.

WINDOW_NEW_PROJECT

public static final int WINDOW_NEW_PROJECT
Identifier of new project window.

WINDOW_IMPORT_MODEL

public static final int WINDOW_IMPORT_MODEL
Identifier of import window.

WINDOW_EXPORT_MODEL

public static final int WINDOW_EXPORT_MODEL
Identifier of export window.

m_viewerScreen

public static java.lang.String m_viewerScreen

m_viewerVisible

public static java.lang.String m_viewerVisible

m_controlVisible

public static java.lang.String m_controlVisible

m_consoleVisible

public static java.lang.String m_consoleVisible

m_cameraProjection

public static java.lang.String m_cameraProjection

m_view

public static PdVector m_view

m_interest

public static PdVector m_interest

m_cameraDistance

public static double m_cameraDistance

m_cameraRoll

public static double m_cameraRoll

m_transformEnable

public static boolean m_transformEnable

m_transformAmbient

public static java.lang.String m_transformAmbient

m_transformProjection

public static java.lang.String m_transformProjection

m_cameraClip

public static boolean m_cameraClip

m_cameraClipNear

public static double m_cameraClipNear

m_cameraClipFar

public static double m_cameraClipFar

m_displayHeight

public static int m_displayHeight

m_displayWidth

public static int m_displayWidth

m_displayAutorotate

public static boolean m_displayAutorotate

m_displayBackside

public static boolean m_displayBackside

m_displayBackimage

public static boolean m_displayBackimage

m_displayDepth

public static boolean m_displayDepth

m_displayEdgeAura

public static boolean m_displayEdgeAura

m_displayXYGrid

public static boolean m_displayXYGrid

m_displaySorting

public static boolean m_displaySorting

m_background

public static PdColor m_background

m_foreground

public static PdColor m_foreground

m_title

protected static java.lang.String m_title
Constructor Detail

PsJavaView

public PsJavaView()
Method Detail

init

public void init()
Initialize and reset resource.
Overrides:
init in class PsObject

read

public boolean read(java.lang.String rsrcFile)
Read an XML file and create a tree structure of instances of type PsXmlNode.
Parameters:
rsrcFile - full name of resource file
Returns:
true if loading was successful

getXml

public PsXmlSrc getXml()
Fills an XML tree with data from this instance, for example, to print to file.
Returns:
XML tree filled with data from this instance.

setXml

public void setXml(PsXmlSrc src)
Fill this instance with data from an XML source, for example, previously read from file.
Parameters:
src - XML source used to fill this instance with data.

fillRsrcTree

protected PsXmlSrc fillRsrcTree(PsXmlSrc src)

showInfoPanel

public void showInfoPanel()

getWindowSize

public int[] getWindowSize(int windowId)
Get position and size of a window.
Parameters:
windowId - Identifier of window as specified in PsJavaView, e.g. WINDOW_CONTROL.
Returns:
int[4] vector with x and y position and height and width of window.

JavaView® v2.00.008

The software JavaView® is copyright protected. All Rights Reserved.