JavaView® v2.00.008

jv.object
Interface PsViewerIf

All Superinterfaces:
java.util.EventListener, java.awt.event.KeyListener
All Known Subinterfaces:
PvViewerIf

public interface PsViewerIf
extends java.awt.event.KeyListener

Interface for a viewer to allow forwarding of keyboard events to central event handler PvViewer. Interface KeyListener is extended to allow viewer to receive function key and strg-key events to show and hide panels. The original F1 key is received by the display and has forward it. The F2 key is received by the control window when pressed right after the F1 key since input focus passes over to control window once it opens. If display receives focus again then F2 arrives here.

Version:
23.06.00, 2.10 revised (kp) Config menu item added.
03.03.00, 2.00 revised (kp) Most functionality of interface moved to jv.project.PvViewerIf.
19.06.99, 1.10 revised (kp) Menu identifiers added.
12.06.99, 1.00 created (kp) Created the interface from the implementation jv.viewer.PvViewer.
Author:
Konrad Polthier
See Also:
PvViewer, PvViewerIf

Field Summary
static int ABOUT
           
static int ABOUT_APPLET
           
static int ADD_GEOMETRY
           
static int ADD_PROJECT
           
static int ANIMATION
           
static int CAMERA
           
static int CONFIG
           
static int CONSOLE
           
static int CONTROL
           
static int DISPLAY
           
static int EXPORT_BYU
           
static int EXPORT_EPS
           
static int EXPORT_FE
           
static int EXPORT_GIF
           
static int EXPORT_GIF_ANIM
           
static int EXPORT_JVX
           
static int EXPORT_MGS
           
static int EXPORT_MPL
           
static int EXPORT_OBJ
           
static int EXPORT_OFF
           
static int EXPORT_PPM
           
static int EXPORT_PPM_ANIM
           
static int EXPORT_PS
           
static int EXPORT_VRML
           
static int EXPORT_XML
           
static int HELP
           
static int IMPORT_DISK
           
static int IMPORT_VGP
           
static int INFO
           
static int MATERIAL
           
static int MENU_FILE
          File Menu for loading projects, data ....
static int MENU_FILE_ADD
           
static int MENU_FILE_ADD_GEOMETRY
           
static int MENU_FILE_ADD_PROJECT
           
static int MENU_FILE_CLOSE
           
static int MENU_FILE_EXIT
           
static int MENU_FILE_EXPORT
           
static int MENU_FILE_EXPORT_BYU
           
static int MENU_FILE_EXPORT_FE
           
static int MENU_FILE_EXPORT_GIF
           
static int MENU_FILE_EXPORT_JVX
           
static int MENU_FILE_EXPORT_MGS
           
static int MENU_FILE_EXPORT_MPL
           
static int MENU_FILE_EXPORT_OBJ
           
static int MENU_FILE_EXPORT_OFF
           
static int MENU_FILE_EXPORT_PPM
           
static int MENU_FILE_EXPORT_VRML
           
static int MENU_FILE_IMPORT
           
static int MENU_FILE_IMPORT_DISK
           
static int MENU_FILE_IMPORT_VGP
           
static int MENU_FILE_NEW
           
static int MENU_FILE_NEW_DISPLAY
           
static int MENU_FILE_NEW_GEOMETRY
           
static int MENU_FILE_NEW_PROJECT
           
static int MENU_FILE_PRINT
           
static int MENU_FILE_PRINT_EPS
           
static int MENU_FILE_PRINT_PS
           
static int MENU_HELP
          Menu with help information.
static int MENU_HELP_ABOUT
          Show 'About' dialog
static int MENU_HELP_APPLET
          Help on current applet.
static int MENU_HELP_FONTS
          Show system fonts.
static int MENU_HELP_RSRC
          Show resource information.
static int MENU_HELP_SYSTEM
          Help on system and PsConfig entries.
static int MENU_HELP_VIEWER
          Help on viewer.
static int MENU_INSPECTOR
          Menu with inspector panels.
static int MENU_INSPECTOR_CAMERA
           
static int MENU_INSPECTOR_DISPLAY
           
static int MENU_INSPECTOR_OBJECT
           
static int MENU_INSPECTOR_OBJECT_CONFIG
           
static int MENU_INSPECTOR_OBJECT_INFO
           
static int MENU_INSPECTOR_OBJECT_MATERIAL
           
static int MENU_INSPECTOR_PROJECT
           
static int MENU_METHOD
          Menu with object methods.
static int MENU_WINDOW
          Menu with windows.
static int MENU_WINDOW_ANIMATION
           
static int MENU_WINDOW_CONSOLE
           
static int MENU_WINDOW_NETWORK
           
static int NEW_GEOMETRY
           
static int NEW_PROJECT
           
static int OBJECT
           
static int PROJECT
           
static int RSRC
           
 
Method Summary
 boolean addProject(java.lang.String category, java.lang.String name, java.lang.String className, java.lang.String[] parmList)
          Registers the name and class of a project in the viewer in given category.
 boolean export(int aDialog, java.lang.String fileName)
          Export geometries of active display without opening a dialog.
 boolean export(int aDialog, java.lang.String fileName, int width, int height)
          Export image file of currently active display with specified image size.
 
Methods inherited from interface java.awt.event.KeyListener
keyPressed, keyReleased, keyTyped
 

Field Detail

PROJECT

public static final int PROJECT

OBJECT

public static final int OBJECT

INFO

public static final int INFO

MATERIAL

public static final int MATERIAL

CONFIG

public static final int CONFIG

CAMERA

public static final int CAMERA

DISPLAY

public static final int DISPLAY

RSRC

public static final int RSRC

ABOUT

public static final int ABOUT

ABOUT_APPLET

public static final int ABOUT_APPLET

ANIMATION

public static final int ANIMATION

CONTROL

public static final int CONTROL

CONSOLE

public static final int CONSOLE

HELP

public static final int HELP

NEW_PROJECT

public static final int NEW_PROJECT

ADD_PROJECT

public static final int ADD_PROJECT

NEW_GEOMETRY

public static final int NEW_GEOMETRY

ADD_GEOMETRY

public static final int ADD_GEOMETRY

IMPORT_VGP

public static final int IMPORT_VGP

IMPORT_DISK

public static final int IMPORT_DISK

EXPORT_BYU

public static final int EXPORT_BYU

EXPORT_FE

public static final int EXPORT_FE

EXPORT_JVX

public static final int EXPORT_JVX

EXPORT_MGS

public static final int EXPORT_MGS

EXPORT_MPL

public static final int EXPORT_MPL

EXPORT_OBJ

public static final int EXPORT_OBJ

EXPORT_OFF

public static final int EXPORT_OFF

EXPORT_VRML

public static final int EXPORT_VRML

EXPORT_GIF

public static final int EXPORT_GIF

EXPORT_GIF_ANIM

public static final int EXPORT_GIF_ANIM

EXPORT_PPM

public static final int EXPORT_PPM

EXPORT_PPM_ANIM

public static final int EXPORT_PPM_ANIM

EXPORT_XML

public static final int EXPORT_XML

EXPORT_EPS

public static final int EXPORT_EPS

EXPORT_PS

public static final int EXPORT_PS

MENU_FILE

public static final int MENU_FILE
File Menu for loading projects, data ....

MENU_FILE_NEW

public static final int MENU_FILE_NEW

MENU_FILE_NEW_PROJECT

public static final int MENU_FILE_NEW_PROJECT

MENU_FILE_NEW_GEOMETRY

public static final int MENU_FILE_NEW_GEOMETRY

MENU_FILE_NEW_DISPLAY

public static final int MENU_FILE_NEW_DISPLAY

MENU_FILE_ADD

public static final int MENU_FILE_ADD

MENU_FILE_ADD_PROJECT

public static final int MENU_FILE_ADD_PROJECT

MENU_FILE_ADD_GEOMETRY

public static final int MENU_FILE_ADD_GEOMETRY

MENU_FILE_IMPORT

public static final int MENU_FILE_IMPORT

MENU_FILE_IMPORT_VGP

public static final int MENU_FILE_IMPORT_VGP

MENU_FILE_IMPORT_DISK

public static final int MENU_FILE_IMPORT_DISK

MENU_FILE_EXPORT

public static final int MENU_FILE_EXPORT

MENU_FILE_EXPORT_BYU

public static final int MENU_FILE_EXPORT_BYU

MENU_FILE_EXPORT_FE

public static final int MENU_FILE_EXPORT_FE

MENU_FILE_EXPORT_JVX

public static final int MENU_FILE_EXPORT_JVX

MENU_FILE_EXPORT_MGS

public static final int MENU_FILE_EXPORT_MGS

MENU_FILE_EXPORT_MPL

public static final int MENU_FILE_EXPORT_MPL

MENU_FILE_EXPORT_OBJ

public static final int MENU_FILE_EXPORT_OBJ

MENU_FILE_EXPORT_OFF

public static final int MENU_FILE_EXPORT_OFF

MENU_FILE_EXPORT_VRML

public static final int MENU_FILE_EXPORT_VRML

MENU_FILE_EXPORT_GIF

public static final int MENU_FILE_EXPORT_GIF

MENU_FILE_EXPORT_PPM

public static final int MENU_FILE_EXPORT_PPM

MENU_FILE_PRINT

public static final int MENU_FILE_PRINT

MENU_FILE_PRINT_EPS

public static final int MENU_FILE_PRINT_EPS

MENU_FILE_PRINT_PS

public static final int MENU_FILE_PRINT_PS

MENU_FILE_CLOSE

public static final int MENU_FILE_CLOSE

MENU_FILE_EXIT

public static final int MENU_FILE_EXIT

MENU_INSPECTOR

public static final int MENU_INSPECTOR
Menu with inspector panels.

MENU_INSPECTOR_PROJECT

public static final int MENU_INSPECTOR_PROJECT

MENU_INSPECTOR_OBJECT

public static final int MENU_INSPECTOR_OBJECT

MENU_INSPECTOR_OBJECT_INFO

public static final int MENU_INSPECTOR_OBJECT_INFO

MENU_INSPECTOR_OBJECT_MATERIAL

public static final int MENU_INSPECTOR_OBJECT_MATERIAL

MENU_INSPECTOR_OBJECT_CONFIG

public static final int MENU_INSPECTOR_OBJECT_CONFIG

MENU_INSPECTOR_CAMERA

public static final int MENU_INSPECTOR_CAMERA

MENU_INSPECTOR_DISPLAY

public static final int MENU_INSPECTOR_DISPLAY

MENU_METHOD

public static final int MENU_METHOD
Menu with object methods.

MENU_WINDOW

public static final int MENU_WINDOW
Menu with windows.

MENU_WINDOW_ANIMATION

public static final int MENU_WINDOW_ANIMATION

MENU_WINDOW_CONSOLE

public static final int MENU_WINDOW_CONSOLE

MENU_WINDOW_NETWORK

public static final int MENU_WINDOW_NETWORK

MENU_HELP

public static final int MENU_HELP
Menu with help information.

MENU_HELP_VIEWER

public static final int MENU_HELP_VIEWER
Help on viewer.

MENU_HELP_SYSTEM

public static final int MENU_HELP_SYSTEM
Help on system and PsConfig entries.

MENU_HELP_FONTS

public static final int MENU_HELP_FONTS
Show system fonts.

MENU_HELP_RSRC

public static final int MENU_HELP_RSRC
Show resource information.

MENU_HELP_APPLET

public static final int MENU_HELP_APPLET
Help on current applet.

MENU_HELP_ABOUT

public static final int MENU_HELP_ABOUT
Show 'About' dialog
Method Detail

addProject

public boolean addProject(java.lang.String category,
                          java.lang.String name,
                          java.lang.String className,
                          java.lang.String[] parmList)
Registers the name and class of a project in the viewer in given category. Later the project must be selected by name to be instantiated and to become the active project in the environment. This method allows to pass a list of parameter strings to the project which may be parsed by the project, e.g. used to receive initial values from an Html page.
Parameters:
category - Unique name of ctegory used to group projects
name - Unique name of project, used for identification and selection
className - Class name of project, used for creation
parmList - List of parameters, may be null.
See Also:
PvViewerIf.addProject(String, String, String []), PvViewerIf.addProject(PjProject), PvViewerIf.selectProject(String)

export

public boolean export(int aDialog,
                      java.lang.String fileName)
Export geometries of active display without opening a dialog. If a file format allows a single geometry only then the currently active geometry is exported, otherwise all visible geometries are exported. Possible arguments for file formats are PsViewerIf.EXPORT_PS etc, see static variables EXPORT_[type] in PsViewerIf.

Method should be invoked only on instance of jv.viewer.PvViewer. This interface method is only for declarational purpose.

Parameters:
aDialog - ID of dialog determining the file format
String - Full file name
Returns:
boolean true if success, false if string data could not be generated.

export

public boolean export(int aDialog,
                      java.lang.String fileName,
                      int width,
                      int height)
Export image file of currently active display with specified image size.
Parameters:
int - Name of dialog to be shown
String - Full file name
width - width of image
height - height of image, or -1 to keep aspect ratio.
Returns:
boolean true if success, false if string data could not be generated.

JavaView® v2.00.008

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