Package com.dassault_systemes.catjdialog

   
Class CATViewer

 
Class Hierarchy
java.lang.Object
  |
  +-com.dassault_systemes.catjdialog.CATCallbackSource
        |
        +-com.dassault_systemes.catjdialog.CATDialog
              |
              +-com.dassault_systemes.catjdialog.CATViewer
Class Location

Framework : CATJDialog

Module : CATJDialog

Class Description

public class CATViewer

The 2D and 3D document viewer graphical component.

Description:

This is a viewer component that allows loading and viewing 2D and 3D documents.

Field Summary
int CATVIEWER_TYPE_3D
int CATVIEWER_TYPE_2D

Constructor Summary
CATViewer(CATDialog iParent, String iName)

Method Summary
void load(String model, int viewerType)


Field Detail

CATVIEWER_TYPE_3D

    int CATVIEWER_TYPE_3D
A constant holding the 3D viewer type.


CATVIEWER_TYPE_2D

    int CATVIEWER_TYPE_2D
A constant holding the 2D viewer type.


Constructor Detail

CATViewer

    CATViewer(CATDialog iParent, String iName)

Creates a viewer with the specified parent and name.

Parameters:
iParent
The parent component.
iName
This viewer name. Here are some rules for this name:
  • It is set in the constructor, and cannot be changed afterwards.
  • The name must be unique for the parent (2 children with the same name are not allowed).
  • The name may not contain any ot the following characters: '.' (dot), ' ' (blank), '_' (underscore)

Method Detail

load

    void load(String model, int viewerType)

Loads a model in the viewer.

Parameters:
model
The url of the model.
viewerType
The type of the viewer :
  • CATVIEWER_TYPE_3D : to load the model in a 3D viewer.
  • CATVIEWER_TYPE_2D : to load the model in a 2D viewer.


Copyright © 2000, Dassault Systèmes. All rights reserved