Library | Package Java Toolkit

Interface Window

package com.ptc.pfc.pfcWindow;

public interface Window
  extends com.ptc.pfc.pfcObject.Child



Description

This class describes the attributes of a window.

The window position refers to the upper, left corner of the window from the upper, left corner of the screen.
See Also:
Session, BaseSession.ListWindows(), BaseSession.GetWindow(int)
Direct Known Subclasses:
WWindow



Method Summary
voidActivate ()
    Activates the window.
voidClear ()
    Clears the Creo Parametric window.
voidClose ()
    Closes the window.
voidExportRasterImage (String ImageFileName, RasterImageExportInstructions Instructions)
    Outputs a standard Creo Parametric raster output file.
doubleGetBrowserSize ()
    Returns the percentage of the graphics window covered by the embedded web browser.
doubleGetGraphicsAreaHeight ()
    Get method for attribute "GraphicsAreaHeight"
    The height of the Creo Parametric graphics window without the border.
doubleGetGraphicsAreaWidth ()
    Get method for attribute "GraphicsAreaWidth"
    The width of the Creo Parametric graphics window without the border
doubleGetHeight ()
    Get method for attribute "Height"
    The window height. The size is normalized to values from 0 to 1.
intGetId ()
    Retrieves the current window identifier.
/*optional*/ ModelGetModel ()
    Get method for attribute "Model"
    The Creo Parametric model that owns the window. This attribute can be null, if there no model that currently owns the window.
ScreenTransformGetScreenTransform ()
    Get method for attribute "ScreenTransform"
    The pan and zoom matrix of the window. When you set a window's ScreenTransform, the window updates immediately.

Currently, the Get() method only retreives the ScreenTransform object for the current Creo Parametric window.
StringGetURL ()
    Returns the URL displayed in the embedded web browser.
doubleGetWidth ()
    Get method for attribute "Width"
    The width of the window. The size is normalized to values from 0 to 1.
doubleGetXPos ()
    Get method for attribute "XPos"
    The X position of the window. The position is normalized to values from0 to 1.
doubleGetYPos ()
    Get method for attribute "YPos"
    The Y position of the window. The position is normalized to values from0 to 1.
voidRefresh ()
    Refreshes the screen. The function does not clear highlights. This is the most efficient function to use if you want to clear "temporary" graphics only.
voidRepaint ()
    Repaints the window. This function enables you to perform several operations and update the view when necessary.
voidSetBrowserSize (double BrowserSize)
    Sets the percentage of the graphics window covered by the embedded web browser.
voidSetScreenTransform (ScreenTransform value)
    Set method for attribute "ScreenTransform"
    The pan and zoom matrix of the window. When you set a window's ScreenTransform, the window updates immediately.

Currently, the Get() method only retreives the ScreenTransform object for the current Creo Parametric window.
voidSetURL (String URL)
    Sets the URL displayed in the embedded web browser.

Methods Inherited from Interface com.ptc.pfc.pfcObject.Child
GetDBParent, GetOId

Method Detail

GetHeight

doubleGetHeight ()


    The window height. The size is normalized to values from 0 to 1.
Manual References:
Windows and Views: Window Operations, Windows and Views: Window Operations



GetWidth

doubleGetWidth ()


    The width of the window. The size is normalized to values from 0 to 1.
Manual References:
Windows and Views: Window Operations, Windows and Views: Window Operations



GetXPos

doubleGetXPos ()


    The X position of the window. The position is normalized to values from0 to 1.
Manual References:
Windows and Views: Window Operations, Windows and Views: Window Operations



GetYPos

doubleGetYPos ()


    The Y position of the window. The position is normalized to values from0 to 1.
Manual References:
Windows and Views: Window Operations, Windows and Views: Window Operations



GetGraphicsAreaHeight

doubleGetGraphicsAreaHeight ()


    The height of the Creo Parametric graphics window without the border.

The height is normalized to a value from 0 to 1.
Manual References:
Windows and Views: Window Operations, Windows and Views: Window Operations



GetGraphicsAreaWidth

doubleGetGraphicsAreaWidth ()


    The width of the Creo Parametric graphics window without the border

The width is normalized to a value from 0 to 1.
Manual References:
Windows and Views: Window Operations, Windows and Views: Window Operations



GetScreenTransform/SetScreenTransform

ScreenTransformGetScreenTransform ()
voidSetScreenTransform (ScreenTransform value)


    The pan and zoom matrix of the window. When you set a window's ScreenTransform, the window updates immediately.

Currently, the Get() method only retreives the ScreenTransform object for the current Creo Parametric window.

Exceptions thrown (but not limited to):

XToolkitBadContext - There is no current window.


Manual References:
Windows and Views: Transformations, Windows and Views: Transformations



GetModel

/*optional*/ ModelGetModel ()


    The Creo Parametric model that owns the window. This attribute can be null, if there no model that currently owns the window.
Manual References:
Models: Getting a Model Object, Models: Retrieving Models



Clear

voidClear ()


    Clears the Creo Parametric window.
Manual References:
Windows and Views: Window Operations, Windows and Views: Window Operations
Returns:


Repaint

voidRepaint ()


    Repaints the window. This function enables you to perform several operations and update the view when necessary.
Manual References:
Selection: Controlling Selection Display, Windows and Views: Window Operations, Windows and Views: Window Operations, External Objects: Display Data for External Objects
Returns:


Refresh

voidRefresh ()


    Refreshes the screen. The function does not clear highlights. This is the most efficient function to use if you want to clear "temporary" graphics only.
Manual References:
Graphics: Display Lists and Graphics, Selection: Controlling Selection Display, Windows and Views: Window Operations, Windows and Views: Window Operations, Assembly: Kinematic Dragging and Creating Snapshots: Connecting to a Kinematic Drag Session
Returns:


Close

voidClose ()


    Closes the window.

  • If the current window is the original window created when Creo Parametric started, the function clears the window. Otherwise, the function removes the window from the screen.
  • Any work done since the last save will be lost.
  • This function does not take effect until control returns to Creo Parametric.

Exceptions thrown (but not limited to):

XToolkitBadContext - The window you are trying to delete is the current window.

XToolkitDeadLock - The Creo Parametric user interface is not prepared to handle this request (because it is blocked by another process such as an OLE container activation).


Manual References:
Windows and Views: Window Operations, Windows and Views: Window Operations
Returns:


Activate

voidActivate ()


    Activates the window.

This method only works in the asynchronous graphics mode. It will throw a XToolkitBadContext exception, if called in the non-graphic mode.

Exceptions thrown (but not limited to):

XToolkitBadContext - The function was called in RPC input (non-graphic) mode


Manual References:
Windows and Views: Window Operations, Windows and Views: Window Operations
Returns:


GetId

intGetId ()


    Retrieves the current window identifier.
Manual References:
Windows and Views: Window Operations, Windows and Views: Window Operations
Returns:
The current window identifier. If the current window is the message area, the method returns -1.


ExportRasterImage

voidExportRasterImage (String ImageFileName, RasterImageExportInstructions Instructions)


    Outputs a standard Creo Parametric raster output file.

Exceptions thrown (but not limited to):

XToolkitNoPermission - The function does not have permission to operate on this model.

XToolkitBadContext - The function is not available in Design Test Mode.


Manual References:
Interface: Window Operations
Parameters:
ImageFileName
An output filename, including the extension
Instructions
An Raster-Export-Instructions object that controls the Raster-Image export operation. All of these objects inherit from RasterImageExportInstructions .
Returns:


SetURL

voidSetURL (String URL)


    Sets the URL displayed in the embedded web browser.
See Also:
Window.GetBrowserSize(), Window.SetBrowserSize(double), Window.GetURL()
Manual References:
Windows and Views: Embedded Browser, Windows and Views: Embedded Browser
Parameters:
URL
The URL to display in the browser.
Returns:


GetURL

StringGetURL ()


    Returns the URL displayed in the embedded web browser.
See Also:
Window.GetBrowserSize(), Window.SetBrowserSize(double), Window.SetURL(String)
Manual References:
Windows and Views: Embedded Browser, Windows and Views: Embedded Browser
Returns:
The URL.


GetBrowserSize

doubleGetBrowserSize ()


    Returns the percentage of the graphics window covered by the embedded web browser.

Not applicable if browser is open in separate window.
See Also:
Window.SetBrowserSize(double), Window.GetURL(), Window.SetURL(String)
Manual References:
Windows and Views: Embedded Browser, Windows and Views: Embedded Browser
Returns:
The percentage of the window covered, from 0.0 (the browser is minimized) to 100.0 (the browser covers the entire window).


SetBrowserSize

voidSetBrowserSize (double BrowserSize)


    Sets the percentage of the graphics window covered by the embedded web browser.

Not applicable if browser is open in separate window.
See Also:
Window.GetBrowserSize(), Window.GetURL(), Window.SetURL(String)
Manual References:
Windows and Views: Embedded Browser, Windows and Views: Embedded Browser
Parameters:
BrowserSize
The percentage of the window to cover, from 0.0 (the browser is minimized) to 100.0 (the browser covers the entire window).
Returns: