|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.ptc.wvs.client.pview.PViewPanel
PViewPanel
is the main class to be used to instantiate the
ProductView viewer.
PViewToolBar may be used to implement the toolbars
PViewProxy may be used to make direct call to the viewer
PViewStatusBar may be used to display a progress/status bar
Supported API: false
Extendable: false
PViewToolBar
,
PViewToolBar
,
PViewStatusBar
,
Serialized FormNested Class Summary |
Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
private boolean |
applet
|
private String |
authorization
|
private PViewCanvas |
canvas
|
private boolean |
debug
|
private static EventListenerList |
listenerList
|
private Container |
myRoot
|
private PViewProxy |
proxy
|
private PViewStatusBar |
pviewStatusBar
|
private static String |
RESOURCE
|
private boolean |
shown
|
private PViewStructure |
structure
|
static long |
VIEW_PROP_BOOL_2BUTTONMOUSE
|
static long |
VIEW_PROP_BOOL_BBOXSEL
Highlight selected components with a bounding box |
static long |
VIEW_PROP_BOOL_COLORSECTION
|
static long |
VIEW_PROP_BOOL_DASHED_HLR
HLR mode view hidden lines as dashed lines |
static long |
VIEW_PROP_BOOL_DISPLAYGRID
Show the grid |
static long |
VIEW_PROP_BOOL_DOREPOSITION
Allow components to be repositioned |
static long |
VIEW_PROP_BOOL_DRAWWINDOW
|
static long |
VIEW_PROP_BOOL_FILLED_HLR
HLR mode fill polygons |
static long |
VIEW_PROP_BOOL_FLATSHADE
|
static long |
VIEW_PROP_BOOL_GNOMON
Display view gnomon |
static long |
VIEW_PROP_BOOL_HALFTONEPRINT
Print monochrome |
static long |
VIEW_PROP_BOOL_HIDEALLGEOMONSECTION
|
static long |
VIEW_PROP_BOOL_HIDEGEOMONSECTION
Hide construction geometry when sectioning is enabled |
static long |
VIEW_PROP_BOOL_HIDESECTIONMARKUPS
|
static long |
VIEW_PROP_BOOL_HIGHLIGHTCOLOR
Highlight selected components using highlight color |
static long |
VIEW_PROP_BOOL_IGNORETRANS
Pick through transparent objects |
static long |
VIEW_PROP_BOOL_ISHPGL
|
static long |
VIEW_PROP_BOOL_LODENABLE
|
static long |
VIEW_PROP_BOOL_LODGEN
|
static long |
VIEW_PROP_BOOL_LODSPIN
|
static long |
VIEW_PROP_BOOL_MULTISECTION
|
static long |
VIEW_PROP_BOOL_MULTISELECT
|
static long |
VIEW_PROP_BOOL_OBJMAX
|
static long |
VIEW_PROP_BOOL_OCCLUSIONTESTING
|
static long |
VIEW_PROP_BOOL_ORTHOGRAPHIC
Orthographic or Perspective viewing |
static long |
VIEW_PROP_BOOL_OVERLAYENABLED
|
static long |
VIEW_PROP_BOOL_SCALE2DEVICE
Scale dimensions/markups to device space |
static long |
VIEW_PROP_BOOL_SECTIONALL
Section all components |
static long |
VIEW_PROP_BOOL_SHADED_HLR
HLR mode shade filled polygons |
static long |
VIEW_PROP_BOOL_SHOWCONSGEOM
|
static long |
VIEW_PROP_BOOL_SHOWONALLLAYERS
Show object on layer only if all layers are enabled. |
static long |
VIEW_PROP_BOOL_SINGLESELECTBBOX
Use single bounding box for multiply selected components |
static long |
VIEW_PROP_BOOL_TEXTBBOX
Display bounding box around text labels |
static long |
VIEW_PROP_BOOL_USEADVRENDER
|
static long |
VIEW_PROP_BOOL_USECOMPUTEDHLR
Use computed HLR (slower but more precise) |
static long |
VIEW_PROP_BOOL_USEHWACCELERATION
|
static long |
VIEW_PROP_BOOL_USEPENMAP
|
static long |
VIEW_PROP_BOOL_USETRUETYPEFONTS
|
static long |
VIEW_PROP_BOOL_VIEWWATERMARKS
|
static long |
VIEW_PROP_BOOL_ZOOMALLONUPDATE
|
static long |
VIEW_PROP_CLR_BKG
Model background color |
static long |
VIEW_PROP_CLR_DFL
Default color |
static long |
VIEW_PROP_CLR_DIM
Leader line/Dimension color |
static long |
VIEW_PROP_CLR_GRAD
Shaded gradient background color |
static long |
VIEW_PROP_CLR_HILITE
Highlight color |
static long |
VIEW_PROP_CLR_LABEL
Label color |
static long |
VIEW_PROP_CLR_MARKER
Marker color |
static long |
VIEW_PROP_CLR_RNOTE
Reference note color |
static long |
VIEW_PROP_CLR_TEXT
Text color |
static long |
VIEW_PROP_CLR_WBKG
Wireframe background color |
static long |
VIEW_PROP_CLR_XDIM
Exploded Leader line/Dimension color |
static long |
VIEW_PROP_FLOAT_ARROWSIZE
Specifies the size of arrow heads (in arrow units). |
static long |
VIEW_PROP_FLOAT_DEPTH
Used to fine tune Z-buffer HLR algorithm |
static long |
VIEW_PROP_FLOAT_FOCUSAREA
|
static long |
VIEW_PROP_FLOAT_FOCUSDISTANCE
|
static long |
VIEW_PROP_FLOAT_MEASSCALE
Measurement scale |
static long |
VIEW_PROP_FLOAT_MOUSESENSITIVITY
Mouse sensitivity for differential flying (navigation) |
static long |
VIEW_PROP_FLOAT_PERSPECTIVEFOV
Perspective mode angular field of view |
static long |
VIEW_PROP_FLOAT_POINTSIZE
Specifies the size of points (in point units) |
static long |
VIEW_PROP_FLOAT_PRINTSCALE
Printing scale |
static long |
VIEW_PROP_FLOAT_SECTIONSTEP
Sectioning step size (in current length units) |
static long |
VIEW_PROP_FLOAT_SLOPE
Used to fine tune Z-buffer HLR algorithm |
static long |
VIEW_PROP_FLOAT_SPACINGU
Grid spacing in U direction |
static long |
VIEW_PROP_FLOAT_SPACINGV
Grid spacing in V direction |
static long |
VIEW_PROP_FLOAT_TEXTSIZE
Specifies the size of text (in text units) for labels, etc |
static long |
VIEW_PROP_FLOAT_TOL1
Tolerance 1 value |
static long |
VIEW_PROP_FLOAT_TOL2
Tolerance 2 value |
static long |
VIEW_PROP_INT_ANTIALIASINGPASSES
Number of anti-aliasing passes. |
static long |
VIEW_PROP_INT_ARROWUNITS
Units of measurement that arrow size refers to (same values as VIEW_PROP_INT_DIMUNIT) |
static long |
VIEW_PROP_INT_BRIGHTNESS
Brightness for light in the range of 1 to 100. |
static long |
VIEW_PROP_INT_COMMANDMASK
|
static long |
VIEW_PROP_INT_DECIMAL
Number of places to the right for decimal point precision |
static long |
VIEW_PROP_INT_DIMUNIT
Length Units 0=MM, 1=CM, 2=INCHES. |
static long |
VIEW_PROP_INT_FBA_TYPE_MASK
Used to control feature based annotation selection (not yet implemented) |
static long |
VIEW_PROP_INT_FILTER_RENDER_MASK
Used to control rendering options (not yet implemented) |
static long |
VIEW_PROP_INT_FLIGHT_RENDER_MASK
Used to control rendering options (not yet implemented) |
static long |
VIEW_PROP_INT_FRAMERATE
Target frame-rate of the display device (in fps). |
static long |
VIEW_PROP_INT_GRIDSTYLE
Grid Style 0 - Lines, 1 - Points |
static long |
VIEW_PROP_INT_LINEFONT
Line style 1=Solid, 2=dot=dash, 3=dot-dot-dash |
static long |
VIEW_PROP_INT_LINESTYLE
Line end styles 1=No arrows, 2=Leading arrow, 3=Trailing arrow, 4=Both arrow, 5=Both dots, 6=Leading dot, 7=Trailing dot |
static long |
VIEW_PROP_INT_LINEWEIGHT
Line thickness 1=Thin, 2=Medium, 3=Thick |
static long |
VIEW_PROP_INT_LODRES
|
static long |
VIEW_PROP_INT_MASSUNIT
Mass Units 0=Grams, 1=Kilograms, 2=Pounds |
static long |
VIEW_PROP_INT_MAX_LOAD_THREADS
Maximum number of threads to use for loading geometry files |
static long |
VIEW_PROP_INT_PENWIDTH_BIAS
Pen width multiplier for |
static long |
VIEW_PROP_INT_POINTSTYLE
Point style 0 - Crosshair, 1 - Solid Circle, 2 - Star |
static long |
VIEW_PROP_INT_POINTUNITS
Units of measurement that point size refers to (same values as VIEW_PROP_INT_DIMUNIT) |
static long |
VIEW_PROP_INT_SECTPRECISION
Sectioning precision 0 - Rough 1 - More precise 2 - Most precise |
static long |
VIEW_PROP_INT_SIZE_CULLING
Cull objects smaller than this size (in device pixels) |
static long |
VIEW_PROP_INT_SWEETEN_RENDER_MASK
Used to control rendering options (not yet implemented) |
static long |
VIEW_PROP_INT_TEXTUNITS
Units of measurement that text size refers to (same values as VIEW_PROP_INT_DIMUNIT) |
static long |
VIEW_PROP_INT_TOLPREC
Decimal precision for tolerance values |
static long |
VIEW_PROP_INT_TOLTYPE
Tolerance type 0=None, 1=Symmetrical, 2=Deviation |
static long |
VIEW_PROP_STR_COORDINATEFRAME
Font face to use for labels, etc |
static long |
VIEW_PROP_STR_FONT
|
static long |
VIEW_PROP_STR_FONT_DIR
Specify the current user coordinate frame (not yet available) |
static long |
VIEW_PROP_STR_WATERMARKFILE
Specify the e-watermark to apply (not yet available) |
private boolean |
viewerAvailable
|
private JPanel |
viewPane
|
Fields inherited from class javax.swing.JPanel |
|
Fields inherited from class javax.swing.JComponent |
accessibleContext, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
PViewPanel(Locale locale,
boolean debug)
Creates the Panel, loads the viewer |
|
PViewPanel(Locale locale,
boolean debug,
boolean useWindchill)
Creates the Panel, loads the viewer |
Method Summary | |
void |
addPViewListener(PViewListener pviewListener)
Adds a PViewListener |
void |
annotationActivate(String name)
Activate an annotation |
void |
annotationShow(String name,
short enable,
short show)
Shows an annotation |
void |
applyPreferences()
Applies the Model viewer preferences that have been set for the HTML Lite viewer. |
void |
componentHidden(ComponentEvent e)
Currently not implemented |
void |
componentMoved(ComponentEvent e)
Currently not implemented |
void |
componentResized(ComponentEvent e)
Handles the panel resize to ensure that the viewer also resizes to fit |
void |
componentSelect(long visualID,
long select,
long reset)
Selects the component in the viewer |
void |
componentShown(ComponentEvent e)
Currently not implemented |
void |
copyImage()
Copies the current view to the clipboard |
void |
deleteComponent(long visualID)
Deletes the specified component (with children) from the viewers strcuture representation. |
void |
deselectComponent(long visualID)
Deselects the component in the viewer |
void |
dumpStructure()
Debug dump of the structure |
void |
fireEvent(int hwnd,
long id,
int eventType)
Emits the event to all the listeners on the specified viewer |
void |
fireEvent(int hwnd,
long id,
int eventType,
String modifier)
Emits the event to all the listeners on the specified viewer with modifiers |
void |
fireEvent(long id,
int eventType)
Emits the event to all the listeners on this viewer |
protected String |
getAuthorization()
Returns the autorization set by setAutorization |
private boolean |
getBool(String sbool)
Takes the boolean preference string of the form "0" or "1" and returns the equivalent boolean |
private long |
getColor(String color)
Takes the preference string of the form 0x00f4f6ef and returns the equivalent long |
int |
getHwnd()
Returns the Window handle that uniquely identifies this viewing panel |
private int |
getInt(String sint)
Takes the integer preference string and returns the equivalent int |
PViewProxy |
getProxy()
Returns the associated viewer command proxy |
protected PViewStructure |
getStructure()
Obtains the current PViewStructure object |
String |
getStructureNameforID(long visualID)
Returns the descriptive name associated to the visualID |
String |
getStructureShapeSourceForID(long visualID)
Returns the shapesource associated to the visualID |
void |
hideComponent(long visualID)
Hides the referenced component currently displayed in the viewer |
void |
incrementProgressValue()
If a status bar is associated, updates the Progress bar incrementing the value by 1 |
long |
insertComponent(long parentID,
String name,
String shapeSource,
String idShapeSource,
String location,
String lengthUnit,
String boundingBox,
String color,
String material)
Inserts a component to be visualized. |
boolean |
isApplet()
Returns if running from an Applet (true) or Application (false) |
boolean |
isDebug()
Returns the debug state |
private boolean |
isShown()
Returns if the viewer has been shown |
boolean |
isStructureLoaded()
Returns the loaded state of the structure |
boolean |
isViewerAvailable()
Returns if the viewer is available |
void |
refreshCanvas()
Performs a canvas repaint. |
void |
removePViewListener(PViewListener pviewListener)
Removes a PViewListener |
boolean |
resetStructure(boolean clearCache)
Close the active visualization structure, removes the display, and optionally deletes any cached files |
void |
selectComponent(long visualID)
Selects the component in the viewer |
void |
setApplet(boolean applet)
Sets if the visualization bean is running from an Applet or Application. |
void |
setAstLinks(String etb)
Passes the ETB information |
void |
setAuthorization(String authorization)
Sets the authorization string that will be passed when files are transferred via a URL, and the visualization bean is being called from an Application. |
void |
setComponentLocation(long visualID,
String location)
Moves the specified component to a new location |
void |
setDebug(boolean debug)
Switches debug information on/off |
void |
setProgressMaximum(int maxValue)
If a status bar is associated, updates the maximum value of the Progress bar |
void |
setPropValueBool(long property,
boolean value)
Sets the value of a Property to the desired boolean value Properties should be referenced via the defined constants A property that will accept and understand a boolean value will be named with _BOOL_ in its name eg. |
void |
setPropValueColor(long property,
long value)
Sets the value of a Property to the desired color Properties should be referenced via the defined constants A property that will accept and understand a color value will be named with _CLR_ in its name eg. |
void |
setPropValueFloat(long property,
float value)
Sets the value of a Property to the desired float value Properties should be referenced via the defined constants A property that will accept and understand a float value will be named with _FLOAT_ in its name eg. |
void |
setPropValueInt(long property,
int value)
Sets the value of a Property to the desired integer value Properties should be referenced via the defined constants A property that will accept and understand an integer value will be named with _INT_ in its name eg. |
void |
setPropValueString(long property,
String value)
Sets the value of a Property to the desired integer value Properties should be referenced via the defined constants A property that will accept and understand a string value will be named with _STR_ in its name eg. |
private void |
setShown(boolean flag)
Sets if the viewer has been shown/started |
void |
setStatusBar(PViewStatusBar statusBar)
Associates a status bar to the panel |
void |
setStatusProgress(String label,
int value)
If a status bar is associated, updates the Progress bar label and value |
void |
setStatusProgress(String label,
int value,
int maxValue)
If a status bar is associated, updates the Progress bar label, value and max value |
void |
setStatusText(String text)
If a status bar is associated, displays the specified text |
protected void |
setStructureLoaded(boolean loaded)
Specifies if data is loaded in the structure object |
void |
setViewLocation(String location)
Adjusts the current view to the specified location |
void |
showComponent(long visualID)
Shows the component in the viewer, this will if necessary download the appropriate file(s) if referenced by a URL |
void |
startPViewPanel()
Causes the viewer to run, and size to the panel |
void |
statusCancelButton(boolean show)
If a status bar is associated, specifies if the cancel button is to be displayed |
void |
structureUnlockUpdates()
Unlocks the structure after a change. |
void |
terminatePViewPanel()
Causes the viewer to terminate |
void |
viewPrint()
Prints the current view |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private Container myRoot
private static EventListenerList listenerList
private boolean debug
private JPanel viewPane
private PViewCanvas canvas
private PViewProxy proxy
private PViewStructure structure
private boolean shown
private PViewStatusBar pviewStatusBar
private static String RESOURCE
private boolean viewerAvailable
private String authorization
private boolean applet
public static long VIEW_PROP_CLR_BKG
public static long VIEW_PROP_CLR_WBKG
public static long VIEW_PROP_CLR_DFL
public static long VIEW_PROP_CLR_HILITE
public static long VIEW_PROP_CLR_DIM
public static long VIEW_PROP_CLR_XDIM
public static long VIEW_PROP_CLR_MARKER
public static long VIEW_PROP_CLR_TEXT
public static long VIEW_PROP_CLR_RNOTE
public static long VIEW_PROP_CLR_LABEL
public static long VIEW_PROP_CLR_GRAD
public static long VIEW_PROP_INT_LODRES
public static long VIEW_PROP_INT_DIMUNIT
public static long VIEW_PROP_INT_MASSUNIT
public static long VIEW_PROP_INT_LINESTYLE
public static long VIEW_PROP_INT_LINEWEIGHT
public static long VIEW_PROP_INT_LINEFONT
public static long VIEW_PROP_INT_DECIMAL
public static long VIEW_PROP_INT_TOLTYPE
public static long VIEW_PROP_INT_FRAMERATE
public static long VIEW_PROP_INT_SECTPRECISION
public static long VIEW_PROP_INT_POINTSTYLE
public static long VIEW_PROP_INT_GRIDSTYLE
public static long VIEW_PROP_INT_PENWIDTH_BIAS
public static long VIEW_PROP_INT_MAX_LOAD_THREADS
public static long VIEW_PROP_INT_TEXTUNITS
public static long VIEW_PROP_INT_ARROWUNITS
public static long VIEW_PROP_INT_POINTUNITS
public static long VIEW_PROP_INT_BRIGHTNESS
public static long VIEW_PROP_INT_ANTIALIASINGPASSES
public static long VIEW_PROP_INT_TOLPREC
public static long VIEW_PROP_INT_FBA_TYPE_MASK
public static long VIEW_PROP_INT_FLIGHT_RENDER_MASK
public static long VIEW_PROP_INT_SWEETEN_RENDER_MASK
public static long VIEW_PROP_INT_FILTER_RENDER_MASK
public static long VIEW_PROP_INT_SIZE_CULLING
public static long VIEW_PROP_BOOL_OBJMAX
public static long VIEW_PROP_BOOL_HIGHLIGHTCOLOR
public static long VIEW_PROP_BOOL_GNOMON
public static long VIEW_PROP_BOOL_IGNORETRANS
public static long VIEW_PROP_BOOL_LODGEN
public static long VIEW_PROP_BOOL_LODENABLE
public static long VIEW_PROP_BOOL_LODSPIN
public static long VIEW_PROP_BOOL_HALFTONEPRINT
public static long VIEW_PROP_BOOL_FLATSHADE
public static long VIEW_PROP_BOOL_SCALE2DEVICE
public static long VIEW_PROP_BOOL_ORTHOGRAPHIC
public static long VIEW_PROP_BOOL_SECTIONALL
public static long VIEW_PROP_BOOL_DISPLAYGRID
public static long VIEW_PROP_BOOL_OVERLAYENABLED
public static long VIEW_PROP_BOOL_TEXTBBOX
public static long VIEW_PROP_BOOL_BBOXSEL
public static long VIEW_PROP_BOOL_ISHPGL
public static long VIEW_PROP_BOOL_DASHED_HLR
public static long VIEW_PROP_BOOL_FILLED_HLR
public static long VIEW_PROP_BOOL_SHADED_HLR
public static long VIEW_PROP_BOOL_ZOOMALLONUPDATE
public static long VIEW_PROP_BOOL_OCCLUSIONTESTING
public static long VIEW_PROP_BOOL_SHOWCONSGEOM
public static long VIEW_PROP_BOOL_HIDEGEOMONSECTION
public static long VIEW_PROP_BOOL_USEPENMAP
public static long VIEW_PROP_BOOL_SHOWONALLLAYERS
public static long VIEW_PROP_BOOL_USEADVRENDER
public static long VIEW_PROP_BOOL_SINGLESELECTBBOX
public static long VIEW_PROP_BOOL_USETRUETYPEFONTS
public static long VIEW_PROP_BOOL_VIEWWATERMARKS
public static long VIEW_PROP_INT_COMMANDMASK
public static long VIEW_PROP_BOOL_COLORSECTION
public static long VIEW_PROP_BOOL_HIDEALLGEOMONSECTION
public static long VIEW_PROP_BOOL_MULTISECTION
public static long VIEW_PROP_BOOL_HIDESECTIONMARKUPS
public static long VIEW_PROP_BOOL_2BUTTONMOUSE
public static long VIEW_PROP_BOOL_USECOMPUTEDHLR
public static long VIEW_PROP_BOOL_USEHWACCELERATION
public static long VIEW_PROP_BOOL_DOREPOSITION
public static long VIEW_PROP_BOOL_DRAWWINDOW
public static long VIEW_PROP_FLOAT_SECTIONSTEP
public static long VIEW_PROP_FLOAT_SLOPE
public static long VIEW_PROP_FLOAT_DEPTH
public static long VIEW_PROP_FLOAT_TOL1
public static long VIEW_PROP_FLOAT_TOL2
public static long VIEW_PROP_FLOAT_FOCUSAREA
public static long VIEW_PROP_FLOAT_FOCUSDISTANCE
public static long VIEW_PROP_FLOAT_MOUSESENSITIVITY
public static long VIEW_PROP_FLOAT_TEXTSIZE
public static long VIEW_PROP_FLOAT_ARROWSIZE
public static long VIEW_PROP_FLOAT_POINTSIZE
public static long VIEW_PROP_FLOAT_PERSPECTIVEFOV
public static long VIEW_PROP_FLOAT_SPACINGU
public static long VIEW_PROP_FLOAT_SPACINGV
public static long VIEW_PROP_FLOAT_PRINTSCALE
public static long VIEW_PROP_FLOAT_MEASSCALE
public static long VIEW_PROP_BOOL_MULTISELECT
public static long VIEW_PROP_STR_FONT
public static long VIEW_PROP_STR_COORDINATEFRAME
public static long VIEW_PROP_STR_FONT_DIR
public static long VIEW_PROP_STR_WATERMARKFILE
Constructor Detail |
public PViewPanel(Locale locale, boolean debug)
locale
- the users localedebug
- specifies if debug information is to be producedpublic PViewPanel(Locale locale, boolean debug, boolean useWindchill)
locale
- the users localedebug
- specifies if debug information is to be produceduseWindchill
- specifies if Windchill calls are to be made to get override applet securityMethod Detail |
public void refreshCanvas()
public boolean isViewerAvailable()
public void setDebug(boolean debug)
debug
- specifies if debug information is to be producedpublic boolean isDebug()
public void startPViewPanel()
public void terminatePViewPanel()
public PViewProxy getProxy()
public int getHwnd()
public void setApplet(boolean applet)
applet
- true if running from an Applet, false for an Applicationpublic boolean isApplet()
public void setAuthorization(String authorization)
protected String getAuthorization()
private void setShown(boolean flag)
flag
- indicating if shownprivate boolean isShown()
public void addPViewListener(PViewListener pviewListener)
pviewListener
- the listenerpublic void removePViewListener(PViewListener pviewListener)
pviewListener
- the listenerpublic void fireEvent(long id, int eventType)
id
- the visualIDeventType
- the type of eventPViewEvent
public void fireEvent(int hwnd, long id, int eventType)
hwnd
- the window handleid
- the visualIDeventType
- the type of eventPViewEvent
public void fireEvent(int hwnd, long id, int eventType, String modifier)
hwnd
- the window handleid
- the visualIDeventType
- the type of eventmodifier
- event modifierPViewEvent
public void componentResized(ComponentEvent e)
componentResized
in interface ComponentListener
e
- the eventpublic void componentMoved(ComponentEvent e)
componentMoved
in interface ComponentListener
e
- the eventpublic void componentHidden(ComponentEvent e)
componentHidden
in interface ComponentListener
e
- the eventpublic void componentShown(ComponentEvent e)
componentShown
in interface ComponentListener
e
- the eventpublic void setStatusBar(PViewStatusBar statusBar)
statusBar
- the status barpublic void statusCancelButton(boolean show)
show
- if true the button is displayedpublic void setStatusProgress(String label, int value)
label
- displayed on the progress barvalue
- of the progresspublic void setStatusProgress(String label, int value, int maxValue)
label
- displayed on the progress barvalue
- of the progressmaxValue
- of the progresspublic void incrementProgressValue()
public void setProgressMaximum(int maxValue)
maxValue
- of the progresspublic void setStatusText(String text)
text
- to displaypublic void applyPreferences()
private long getColor(String color)
color
- the color string in the form "0x00f4f6ef"
private boolean getBool(String sbool)
sbool
- the string preference "0" or "1"
private int getInt(String sint)
sint
- the string preference integer
protected PViewStructure getStructure()
protected void setStructureLoaded(boolean loaded)
loaded
- true if data is loadedpublic boolean isStructureLoaded()
public void dumpStructure()
public String getStructureNameforID(long visualID)
visualID
- the visual identifier of a component
public String getStructureShapeSourceForID(long visualID)
visualID
- the visual identifier of a component
public long insertComponent(long parentID, String name, String shapeSource, String idShapeSource, String location, String lengthUnit, String boundingBox, String color, String material)
parentID
- the visualID of the parent. 0 if this is the root nodename
- displayed during file transfer and in debug messageslocation
- the component location relative to the parent. "AX AY AZ X Y Z"lengthUnit
- the units of the location (typically M for Windchill)color
- the colormaterial
- the material
public void structureUnlockUpdates()
public void componentSelect(long visualID, long select, long reset)
visualID
- the visual identifier of a componentpublic void selectComponent(long visualID)
visualID
- the visual identifier of a componentpublic void deselectComponent(long visualID)
visualID
- the visual identifier of a componentpublic void showComponent(long visualID)
visualID
- the visual identifier of a componentpublic void hideComponent(long visualID)
visualID
- the visual identifier of a componentpublic void deleteComponent(long visualID)
visualID
- the visual identifier of a componentpublic boolean resetStructure(boolean clearCache)
clearCache
- if true will delete any files in the cache related to this viewer
public void setPropValueColor(long property, long value)
property
- the viewer propertyvalue
- the colorpublic void setPropValueInt(long property, int value)
property
- the viewer propertyvalue
- the integer valuepublic void setPropValueBool(long property, boolean value)
property
- the viewer propertyvalue
- the boolean valuepublic void setPropValueFloat(long property, float value)
property
- the viewer propertyvalue
- the float valuepublic void setPropValueString(long property, String value)
property
- the viewer propertyvalue
- the string valuepublic void setViewLocation(String location)
location
- the ProductView location specified as "AX AY AZ X Y Z"public void setComponentLocation(long visualID, String location)
visualID
- the visual identifier of a componentlocation
- the ProductView location specified as "AX AY AZ X Y Z"public void viewPrint()
public void copyImage()
public void setAstLinks(String etb)
etb
- the <@@> delimited ETB string.public void annotationActivate(String name)
name
- the annotation name, this must exist in the etb stringpublic void annotationShow(String name, short enable, short show)
name
- the annotation name, this must exist in the etb stringenable
- show
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |