JWAVE Graphics

Returning Graphics to the Client

The JWaveView Class


TIP: In this example, data is physically returned from the server to the client. A more efficient method of handling the data is with a data proxy object. For more information on data proxies, see
Chapter 6, Managing Data.
Figure 4-1 A JWaveView object is used to obtain viewable image data from the PV-WAVE server

Sample Code

Example 4-1 JWaveCanvas used to display a Viewable object

Example: Displaying a Simple 2D Plot


TIP:
Example 4-2 (the client Java program) is similar to (but a simplified version of) the demonstration program ViewTest.java, which you can find in:
(UNIX)VNI_DIR/classes/jwave_demos/tests

(Windows)VNI_DIR\classes\jwave_demos\tests

Example 4-2 SimpleView.java displays a 2D plot generated by PV-WAVE
Example 4-3 JWAVE wrapper simple_view.pro
Figure 4-2 The SimpleView plot is displayed on the client.

Resizing Graphics

Coordinate System Transformations


TIP: For an example of using the coordinate transforms of the Viewable class, see ViewTest.java which you can find in:
(UNIX)VNI_DIR/classes/jwave_demos/tests

(Windows)VNI_DIR\classes\jwave_demos\tests

Demonstration Programs

Summary





Copyright © 1999, Visual Numerics, Inc. All rights reserved.