Class ViewerApplet

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Panel
              extended by java.applet.Applet
                  extended by ViewerApplet
All Implemented Interfaces:
java.awt.event.KeyListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible

public class ViewerApplet
extends java.applet.Applet
implements java.awt.event.KeyListener

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.applet.Applet
java.applet.Applet.AccessibleApplet
 
Nested classes/interfaces inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
 APIModuleAdapter apiModuleAdapter
           
static java.lang.String copyright
           
 java.lang.String fileName
           
 java.lang.String fileType
           
 
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
ViewerApplet()
           
 
Method Summary
 java.util.Vector ActionUnits_scaledCoordPoints()
          Exports the current units, as a vector in scaled coordinate points
 java.util.Vector ActionUnits_screenCoordPoints()
          Exports the current units, as a vector in screen coordinate points
 java.lang.String ActionUnits_UnitsName()
          Exports the current units name
 void AddActionListener(RemoteListener listener)
           
 boolean AddDotMarker(int x, int y, int rad, int r, int g, int b, java.lang.String layerName)
          Adds a filled circle in location (x,y) with radius rad and color (r,g,b) on layer layerName.
 boolean AddDotMarker(int x, int y, int rad, int r, int g, int b, java.lang.String layerName, boolean toBack)
          Adds a filled circle in location (x,y) with radius rad and color (r,g,b) on layer layerName, optionally send to back.
 void addHyperlinkListener(HyperlinkListener listener)
          Add a hyperlink listener to CADViewer component The listener will be called once the user triggers a hyperlink in the diagram.
 void AddKeyListener(java.awt.event.KeyListener listener)
           
 void addRedlineListener(RedlineListener listener)
          Add a redline listener to CADViewer component
 boolean AddTextMarker(int x, int y, int h, int a, java.lang.String str, int r, int g, int b, java.lang.String layerName)
          Adds a text object location (x,y) with height h and color (r,g,b) on layer layerName.
 boolean AddTextMarker(int x, int y, int h, int a, java.lang.String str, int r, int g, int b, java.lang.String layerName, boolean toBack)
          Adds a text object location (x,y) with height h and color (r,g,b) on layer layerName, optionally sends to back.
 void AllLayersOff()
          Turns all layers off
 void AllLayersOn()
          Turns all layers on
 boolean APIcommandCurrentlyActive()
          Checks if an API command is currently executed and in progress This command is used for Java Script core to check if a given command has been executed, as Java and Java Script is not synchronized.
 boolean APIKeyCodeEvent(int keyCode)
          APIKeyCodeEvent; key events trapped in HTML can be passed over to CADViewer
 void BWBackground()
          Change background to black and white
 void centerViewOn_DWG(double zoomScale, double x, double y)
          Center the view at location x,y in DWG coord with a zoom factor
 void centerViewOn_DWG(double x, double y, double width, double height)
          Center the view with width, height at location x,y in DWG coord.
 void centerViewOn_DWG(double zoomScale, int x, int y)
          Center the view at location x,y in DWG coord with a zoom factor
 void centerViewOn_DWG(int x, int y, int width, int height)
          Center the view with width, height at location x,y in DWG coord.
 void centerViewOn(double zoomScale, int x, int y)
          Center the view at location x,y with a zoom factor
 void centerViewOn(int x, int y, int width, int height)
          Center the view with width, height at location x,y
 void centerViewOnWorldWindow(int x, int y, int width, int height)
          Center the view with width, height at location x,y in world coordinates (internal coordinate system)
 void CenterViewport_Percentage(int x_percentage, int y_percentage, int width_percentage, int height_percentage)
          Center the view with percentage width, height at location x,y in percentage of world coordinates (internal coordinate system)
 void ChangeBackground()
          Calls the interactive Change Background method
 void ChangeObjectNodeColor(int objectNode, java.awt.Color c, int flag)
          Change the color of an Object Node
 void ChangeObjectNodeColor(int objectNode, int r, int g, int b, int flag)
          Change the color of an Object Node
 void ChangeTextOnLayer(java.lang.String layerList, java.lang.String originalText, java.lang.String newText)
          Change a specified text objects on a list of layers
 void CheckDefinedCompressedData(byte[] array)
          Checks if a byte array is a compressed DWF file, result is printed in java console
 void CleanVectors()
          Clean system vectors
 void Collaborator()
          Activate the interactive Collaborator method
 void ColorLayers(java.lang.String listLayers, java.lang.String r, java.lang.String g, java.lang.String b)
          Sets the color of a list of layers
 int ConvertHexStringtoInt(java.lang.String str)
          Converts a hex number to int; help method for use with color settings
 int CopyFile_()
          Sets the checkJavaScriptEventThread.SetSaveFile();
 int CopyFile()
          Sets the checkJavaScriptEventThread.SetSaveFile();
 int CopyFile(java.lang.String url)
          Copies the current file into a new file,
 void CountingOnOff()
          Activates the interactive method to count objects on the canvas
 boolean CreateTargetSymbol(java.lang.String targetID, java.lang.String targetLayerName, java.lang.String templateLayer)
          Create a Target symbol:
 int[] CurrentViewport()
          CurrentViewport; returns the coordinate of the current viewport
 void CustomFunction(java.lang.String command)
           
 void CVwait(int n)
           
 void DeleteCount()
          Removes the last count symbol from canvas
 int[] DrawingExtents()
          Drawing Extents; calcluate the extents of the drawing
 void DrawOneObject(WidgetObjectNode w)
          Private method
 void DrawTooltip(java.lang.String name, java.awt.Event evt)
          Private method
 void FillAllPolylinesOnLayer(java.lang.String layerList, int r, int g, int b)
          Fills all polyline objects on a list of layers with a new color
 void FillAllPolylinesOnLayer(java.lang.String layerList, int r, int g, int b, boolean redraw)
          Fills all polyline objects on a list of layers with a new color, redraw after fill can be turned on/off
 void FillPolylineOnLayer(java.lang.String layerList, int polygonNodeIndex, int r, int g, int b)
          Fills a specific polyline object on a list of layers with a new color
 void FillPolylineOnLayer(java.lang.String layerList, int polygonNodeIndex, int r, int g, int b, int alpha)
          Fills a specific polyline object on a list of layers with a new color
 void FillPolylineOnLayer(java.lang.String layerList, int polygonNodeIndex, int r, int g, int b, int alpha, int polygon_order)
          Fills a specific polyline object on a list of layers with a new color
 void FillPolylineOnLayer(java.lang.String layerList, int polygonNodeIndex, int r, int g, int b, int alpha, int polygon_order, int clean_polygon_space)
          Fills a specific polyline object on a list of layers with a new color
 java.lang.String FindTempDir()
          Finds and returns a user specific temporary directory on the client.
 java.util.Vector GetAllObjectNodeAttributes()
          Returns in a vector all attributes for all nodes
 java.util.Vector GetAllObjectNodeText()
          Returns in a vector all text for all nodes
 java.lang.String GetAllUrlScriptObjectNames()
          Returns a string with all script objects that contains an Url/Hyperlink
 java.lang.String GetAllWidgetsWithUrl()
          Returns a string with all objects that contains an Url/Hyperlink
 java.lang.String GetAllWidgetsWithUrlObjectNames()
          Returns a string with all objects that contains an Url/Hyperlink
 java.awt.Color GetBackgroundColor()
          Get the current background color; the method returns a color object
 int getCenterX()
          Get current x coordinate of the screen
 int getCenterY()
          Get current y coordinate of the screen
 java.net.URL GetCurrentURL()
          Get the Url of the current loaded file
 byte[] getData(java.net.URL url)
          Get byte array of data from a drawing via its URL
 java.lang.String GetDwfWithAPIModifications(boolean saveNamedLayersOnly, java.lang.String namedLayers, boolean saveOffLayers)
          Capture screen view as a DWF:
 boolean GetExternalPrintDone()
           
 java.net.URL GetFileURL()
          Get the Url of the current loaded file
 void GetFrame()
          Get the current Frame
 void GetFrame(java.lang.String name)
          Get the frame associated with a given file
 boolean getIsLicensed()
          Application specific cryptographic classes - no public use
 boolean GetJavascriptCalled()
          Ask CADViewer if a Javascript method has been called (development purposes)
 boolean GetLoadDone()
          Get the status from CADViewer if a file is loaded or not.
 boolean GetLoadStart()
          Get the status from CADViewer if a file has started to load or not.
 java.lang.String getMessage()
          Application specific cryptographic classes - no public use
 java.util.Vector GetMultiPagesArray()
          Get all multipages in the drawing
 java.util.Vector GetMultiPagesNames()
          Get all multipage names in the drawing
 boolean GetNamedView(java.lang.String namedView)
          Display a specific named view
 void GetNextScreen()
          Calls the interactive Get Next Screen method
 void GetObjectNode_org(java.awt.Event evt)
          Private method
 int GetObjectNode(java.awt.Event evt)
           
 int GetObjectNodeAmount()
          Returns the amount of Object Nodes in the DWF drawing
 java.util.Vector GetObjectNodeAttributes(int id)
          Returns in a vector all attributes associated with a given Object Node
 java.awt.Color GetObjectNodeColor(int objectNode)
           
 java.util.Vector GetObjectNodeList()
          Returns in a vector the list of all Object Nodes and their graphical content as defined in the DWF drawing
 java.util.Vector GetObjectNodeList(int id)
          Returns in a vector the graphical objects corresponding to a specific Object Node
 java.util.Vector GetObjectNodeListOnLayer(java.lang.String layerName)
          Returns in a vector the graphical objects corresponding to a specific Layer
 java.lang.String GetObjectNodeListPipe()
          Returns in a string the list of all Object Nodes and their graphical content as defined in the DWF drawing
 java.lang.String GetObjectNodeListPipe(int id)
          Returns in a string the graphical objects corresponding to a specific Object Node
 java.util.Vector GetObjectNodeText(int id)
          Returns in a vector all text associated with a given Object Node
 WidgetObjectNode GetObjectOnMouseOver(java.awt.Event evt)
          Private method
 int GetPageNumber()
          Get the current page number of the page that is displayed on the canvas
 void GetPages()
          Activates the interactive Getpages method for multiple DWF page selection
 void GetPreviousScreen()
          Calls the interactive Get Previous Screen method
 java.lang.String getPSICVLicenseKey()
          Application specific cryptographic classes - no public use
 double getUnitsX()
          Get DWG X coordinate of the last mouse click
 double getUnitsY()
          Get DWG Y coordinate of the last mouse click
 ViewerControls GetViewerControls()
           
 java.awt.Panel GetViewerPanel()
           
 int getViewHeight_DWG()
          Get current view height in DWG units
 int getViewHeight()
          Get current view height
 void GetViews()
          Activates the interactive GetViews method for DWF views selection
 java.lang.String GetViewsList()
          Returns a list with all views in the current page
 int getViewWidth_DWG()
          Get current view Width in DWG units
 int getViewWidth()
          Get current view Width
 int getWorldWindowHeight()
          Get current height of the screen in world coordinates (internal coordinate system)
 int getWorldWindowWidth()
          Get current width of the screen in world coordinates (internal coordinate system)
 int getWorldWindowX()
          Get current x coordinate of the screen in world coordinates (internal coordinate system)
 int getWorldWindowY()
          Get current y coordinate of the screen in world coordinates (internal coordinate system)
 double getX_DWG()
          Get DWG X coordinate of the last mouse click
 int getX()
          Get X coordinate of the last mouse click
 double getY_DWG()
          Get DWG Y coordinate of the last mouse click
 int getY()
          Get Y coordinate of the last mouse click
 void HideAllObjectNodes()
          Hide all object nodes
 void HideLayerSetInLayerCommand(java.lang.String prefix)
          Hide a set of layers with a given prefix from within the layer command list of layers
 void HideOneObjectNode(int id, int flag)
          Hide an Object Node
 boolean IsLayerOff(java.lang.String layer)
          Checks if a layer is off, returns true if the layer is off, false otherwise
 boolean IsLayerOn(java.lang.String layer)
          Checks if a layer is on, returns true if the layer is on, false otherwise
 boolean KeyEvent(java.awt.Event evt)
           
 void keyPressed(java.awt.event.KeyEvent key)
           
 void keyReleased(java.awt.event.KeyEvent key)
           
 void keyTyped(java.awt.event.KeyEvent key)
           
 void LayerOffInteractive_ReleaseRemotely()
           
 void LayerOffInteractive(java.lang.String layerGroup)
          Call LayerOffInteractive
 void LayerOffInteractive(java.lang.String layerGroup, java.lang.String excludeLayers)
          Call LayerOffInteractive
 void LinkShape(java.lang.String layer, java.lang.String javaScriptMethodName, java.lang.String userFriendlyName, int r, int g, int b)
           
 void LinkShape(java.lang.String layer, java.lang.String javaScriptMethodName, java.lang.String userFriendlyName, int r, int g, int b, int alpha)
           
 void LinkShape(java.lang.String layer, java.lang.String javaScriptMethodName, java.lang.String userFriendlyName, int r, int g, int b, int alpha, int polygon_order)
           
 void LinkShape(java.lang.String layer, java.lang.String javaScriptMethodName, java.lang.String userFriendlyName, int r, int g, int b, int alpha, int polygon_order, int clean_polygon_space)
           
 void LinkShapes(java.lang.String layerGroup, java.lang.String excludeLayers, boolean multipleExecution)
           
 void MakeRedlineStickyNote()
          Call MakeRedlineStickyNote
 void Measurement()
          Activates the interactive Measurement method
 void MeasurementCalibrate()
          Activates the interactive Calibrate method as part of the Measurement method
 void MeasurementScale()
          Activates the interactive Scale method as part of the Measurement method
 void ObjectSearch()
          Activate interactive Object Search method
 void OffLayers(java.lang.String offlayers)
          Turns off a list of layers
 void OnLayers(java.lang.String onlayers)
          Turns on a list of layers
 void OpenDrawingWithRedline(java.lang.String Url)
          Opens a drawing with a redline
 void OpenFile_()
          Call the OpenFile method, depending on settings it will either open the local file-manager or load files from Server, finish with Garbage Collection
 void OpenFile_(java.net.URL url)
          Display a new drawing
 void OpenFile()
          Call the OpenFile method, depending on settings it will either open the local file-manager or load files from Server
 void OpenFile(byte[] data)
          Display a new drawing
 void OpenFile(byte[] fileArray, java.lang.String fileName)
          Opens a file
 void OpenFile(java.lang.String fileName)
          Opens a file
 void OpenFile(java.net.URL url)
           
 void OpenFilesOverlaid(java.lang.String fileName1, java.lang.String fileName2)
           
 void OpenOverlayFile(java.lang.String fileName, boolean sendtoback)
           
 void OpenOverlayFile(java.lang.String file, boolean sendtoback, boolean dummy)
           
 void OpenOverlayFile(java.lang.String file, boolean sendtoback, boolean dummy, int clean_polygon_space)
           
 void Pan()
          Activate interactive panning
 void PanDown()
          Pan Down
 void PanLeft()
          Pan Left
 void PanRight()
          Pan Right
 void PanUp()
          Pan Up
 void Print()
          Call the Print method
 void Print(boolean forceWhiteBackground, boolean forceBlackWhite, boolean printRedlines, boolean portraitLandscape)
          Calls the print method. - if parameter is active, calls the system print routine directly
 void PrintDirect(java.lang.Boolean forceWhiteBackground, java.lang.Boolean forceBlackWhite, java.lang.Boolean printRedlines, java.lang.Boolean portraitLandscape)
          Calls the print method. - if parameter is active, calls the system print routine directly
 void PrintJsApi(java.lang.String fileName, java.lang.String orientation)
          Adds a file to list to be batch printed
 void RedlineCircle()
          Calls the interactive Draw Redline Circle method
 void RedlineCloud()
          Calls the interactive Draw Redline Cloud method
 void RedlineColor(java.lang.String color)
          set the color of the current redline
 void RedlineDelete()
          Calls the interactive Redline Delete method
 void RedlineDeleteAll()
          Calls the interactive Redline Delete All method
 void RedlineEllipse()
          Calls the interactive Draw Redline Ellipse method
 void RedlineFreehand()
          Calls the interactive Draw Redline Freehand method
 void RedlineHexagon()
          Calls the interactive Draw Redline Hexagon method
 void RedlineHighlight()
          Calls the interactive Draw Redline Highlight method
 void RedlineLine()
          Calls the interactive Draw Redline Lines method
 int RedlineOpenFile_()
          Calls the interactive Open Redline method
 int RedlineOpenFile()
          Calls the interactive Open Redline method
 int RedlineOpenFile(java.lang.String fileName)
          Open a redline file
 int RedlineOpenFile(java.lang.String fileName, boolean ReadOnly)
          Open a redline file in read only mode
 void RedlinePolyline_AddHyperlink_ReleaseRemotely()
           
 void RedlinePolyline_AddHyperlink()
          Calls the interactive Draw Redline Polyline with Add Hyperlink
 void RedlinePolyline()
          Calls the interactive Draw Redline Polyline method
 void RedlinePolylineArrow()
          Calls the interactive Draw Redline Polyline Arrow method
 void RedlineRectangle_AddHyperlink_ReleaseRemotely()
           
 void RedlineRectangle_AddHyperlink()
          Calls the interactive Draw Redline Rectangle method with AddHyperlink
 void RedlineRectangle()
          Calls the interactive Draw Redline Rectangle method
 void RedlineRedo()
          Calls the interactive Redline Redo method
 void RedlineSaveFile_()
          Calls the interactive Save Redline method
 int RedlineSaveFile_(java.lang.String url)
          Save a redline file on the server determined with the 2ndURL applet parameter
 int RedlineSaveFile_2ndURL(java.lang.String url)
          Save a redline file to a location on the server determined with the 2ndURL applet parameter
 int RedlineSaveFile()
          Calls the interactive Save Redline method
 int RedlineSaveFile(java.lang.String fileName)
          Save a redline file
 int RedlineSaveFile(java.lang.String url, java.lang.String layerName)
          Save a redline file
 void RedlineSelect()
           
 void RedlineSelectObject()
          Calls the interactive Draw Redline Select Object method
 void RedlinesOn()
           
 void RedlinesOnOff()
           
 void RedlineText()
          Calls the interactive Draw Redline Text method
 void RedlineThickness()
          Calls the interactive Draw Redline Thickness method
 void RedlineThickness(int thickness)
          set the thickness of the current redline
 void RedlineTriangle()
          Calls the interactive Draw Redline Triangle method
 void RedlineUndo()
          Calls the interactive Redline Undo method
 void RedlineURL_layerName(java.lang.String Url_layerName)
          The interactive Draw Redline URL method can via the parameter: be enabled to set a layer name to which the redline is associated.
 void RedlineURL_selectLastDrawnRedline(boolean flag)
          The interactive Draw Redline URL method can associated with the last drawn redline instead of going through a redline selection process
 void RedlineURL_Url_tooltip(java.lang.String Url_tooltip)
          The interactive Draw Redline URL method can via the parameter: be enabled to set a layer name to which the redline is associated.
 void RedlineURL_Url(java.lang.String Url)
          The interactive Draw Redline URL method can via the parameter: be enabled to set a layer name to which the redline is associated.
 void RedlineURL()
          Calls the interactive Draw Redline URL method
 void RedoCount()
          Redo the last count symbol on convas
 void Redraw()
          Redraws the canvas, similar to the Java asynchronious call to repaint()
 void RedrawCanvas()
          Redraw the current canvas; no change of zoom factor
 boolean RemoveDotMarker(int x, int y, int r, java.lang.String layerName)
          Remove a filled circle placed in location (x,y) with radius r on layer layerName.
 void RemoveFillAllPolylinesOnLayer(java.lang.String layerList)
          Remove all fills
 void RemoveFillAllPolylinesOnLayer(java.lang.String layerList, boolean redraw)
          Remove all fills, redraw controlled
 void RemoveUrlPolygonColor(int UrlId)
          Remove fills in polyline objects associated with an Url
 void RemoveUrlPolygonColor(java.lang.String urlsubstring)
          Remove fills in polyline objects associated with an Url string or substring
 void RepaintCanvas()
          Redraws the canvas, similar to the Java asynchronious call to repaint()
 void ResetAll()
          Resets all arrays - use to clear out content in CADViewer before opening a file
 void ResetAPIcommand()
          Resets system variables for asynchronious calls to API commands.
 void ResetCurrentObjectNode()
          Private method
 void ResetLayerSetInLayerCommand()
          Resets the set of hidden layers from the layer command list of layers
 void ResetStickyNotesAndRedNotes()
           
 java.lang.String RetrieveOffLayers()
          Exports a list of off layers
 java.lang.String RetrieveOnLayers()
          Exports a list of on layers
 java.lang.String RetrieveTextAndCoordinatesOnCurrentPage()
          Retrive all Text objects with their coordinates within the current page of drawing
 java.lang.String RetrieveUrlPageViewNamesOnCurrentPage()
          Retrive all hyperlinks Page and View names within the current page of drawing
 int ReturnObjectNodeTextId(java.lang.String text_str)
          Returns in a vector the number of an Object Node that contains a specific text string
 void Rotate(java.lang.String type)
          Activate interactive Rotate method
 boolean SaveAndConvertDwfWithAPIModifications(java.lang.String fileName, boolean blackwhite, boolean whitebackground, boolean landscapeportrait)
          Export screen view as a DWF to the server, if parameter is set: On the server it is converted based on the settings in: and converted image is placed in:
 boolean SaveDwfWithAPIModifications(java.lang.String fileName)
          Export screen view as a DWF to the server, if parameter is set:
 boolean SaveDwfWithAPIModifications(java.lang.String fileName, boolean saveNamedLayersOnly, java.lang.String namedLayers, boolean saveOffLayers)
          Export screen view as a DWF to the server, if parameter is set:
 boolean SaveDwfWithAPIModifications(java.lang.String cgi_parameter, java.lang.String fileName_location, java.lang.String filepath_parameter, boolean saveNamedLayersOnly, java.lang.String namedLayers, boolean saveOffLayers)
          Export screen view as a DWF to the server, if parameter is set:
 void SaveStickyNotesRedlines()
           
 java.awt.Image screenToImage()
          Export screen display to an image
 byte[] screenToJpeg()
          Export screen display to a jpg image and output to a byte array
 int screenToJpeg(java.lang.String fileName)
          Export screen display to a jpeg image on the server
 int screenToJpegLocal(java.lang.String fileName)
          Export screen display to a local jpg file
 java.lang.String screenToJpegUserSize(int width, int height)
          Export screen display to a jpg image and saves it locally, returns the location of the file.
 byte[] screenToJpegUserSizeAsByteArray(int width, int height)
          Export screen display to a jpg image and output to a byte array, the size of the jpg image is user controlled
 void screenToJpegUserSizeToServer(int width, int height, java.lang.String fileLocation)
          Export screen display to a jpg image and saves it on the server The size of the jpg image is user controlled The location of the server side Script or Servlet is read in from the parameter: save_screenshot_to_url
 int screenToPngLocal(java.lang.String fileName)
          Export screen display to a local png file
 int SearchText(java.lang.String searchText, java.lang.String scaleString)
          Searches and zoom in on a text object
 void Set_polylinesWithUrl_counter()
           
 void SetAllTextColorFontOnLayer(java.lang.String layerList, boolean redraw, int r, int g, int b, java.lang.String font)
          Set a specified text objects color and font on a list of layers, controlled redraw
 void SetAppletParameter(java.lang.String param, java.lang.String value)
          Sets the applet parameters dynamically
 void SetBackgroundColor(int r, int g, int b)
          Set the current background color
 void SetColorLayers(java.lang.String listLayers, java.lang.String rr, java.lang.String gg, java.lang.String bb)
          Sets the color of a list of layers
 void SetCVSecurityManager()
           
 void SetExternalPrintDone(boolean status)
           
 void SetJavascriptCalled(boolean flag)
          Tell CADViewer that a Javascript method has been called (development purposes)
 void SetLayerColor(java.lang.String listLayers, java.lang.String rr, java.lang.String gg, java.lang.String bb)
          Sets the color of a list of layers
 void SetLinkShapesValues(int alpha_value, int polygon_order, int clean_polygon_space, int unselect_no_link_r, int unselect_no_link_g, int unselect_no_link_b, int unselect_link_r, int unselect_link_g, int unselect_link_b, int select_no_link_r, int select_no_link_g, int select_no_link_b, int select_link_r, int select_link_g, int select_link_b)
           
 void SetMaxCountJS(int count)
          max click count for VQ JS method
 void SetPageNumber(int index)
          Set the current page number of the page for display
 void SetPageView(java.lang.String page, java.lang.String view)
          Opens a given Page in the DWF with a set View
 void setPSICVLicenseResponse(java.lang.String encrypted)
          Application specific cryptographic classes - no public use
 void SetRedlineStickyNoteScaleFactor(double factor)
          Controls the scale factor for the redline moveable notes default is 1.0, so a value of 10.0 will magnify the moveable redline box with a factor 10.
 void SetStatusStingJS(java.lang.String status)
          Status message for JS methods
 void SetStickyNoteAssetID(java.lang.String id)
           
 void SetStickyNoteUser(java.lang.String userName)
           
 void SetStickyNoteUserID(java.lang.String id)
           
 void SetTextOnLayer(java.lang.String layerList, int textNodeIndex, java.lang.String newText)
          Set a specified text objects on a list of layers
 void SetTextOnLayer(java.lang.String layerList, int textNodeIndex, java.lang.String newText, boolean redraw)
          Set a specified text objects on a list of layers, controlled redraw
 void SetTextOnLayer(java.lang.String layerList, int textNodeIndex, java.lang.String newText, boolean redraw, int r, int g, int b)
          Set a specified text objects on a list of layers, controlled redraw
 void SetTextOnLayer(java.lang.String layerList, int textNodeIndex, java.lang.String newText, boolean redraw, int r, int g, int b, java.lang.String font)
          Set a specified text objects on a list of layers, controlled redraw
 void SetUrlAlternateText(int UrlId, java.lang.String alternateText)
          Sets the alternate highlight text for a hyperlink
 void SetUrlAlternateText(java.lang.String urlsubstring, java.lang.String alternateText)
          Sets the alternate highlight text for a hyperlink, the hyperlink is searched based on a string expression that is a substring of the hyperlink.
 void SetUrlPolygonColor(int UrlId, int r, int g, int b)
          Fills polyline objects associated with an Url with a new color
 void SetUrlPolygonColor(java.lang.String urlsubstring, int r, int g, int b)
          Fills polyline objects associated with an Url string with a new color
 void SetWaterMark(java.lang.String waterMark)
          Sets a custom defined watermark on the Canvas
 void SetWaterMarkColor(int r, int g, int b)
          Sets the watermark color, overwrites settings done via the parameter interface
 void SetWaterMarkFontSize(int size)
          Sets the watermark font size, overwrites settings done via the parameter interface
 void SetWaterMarkLocation_percentage(int location)
          Sets the watermark location as percentage of canvas height, overwrites settings done via the parameter interface
 void SetViewerApplet()
           
 void ShowAbout()
          Activate interactive Show About method
 void ShowAllObjectNodes()
          Display all object nodes
 void ShowHelp()
          Activate interactive Show Help method
 void ShowHideOneObjectNode(int id, boolean flag, int redraw)
          Show or Hide an Object Node
 void ShowLayers()
          Calls the interactive Show Layers method
 void ShowOneObjectNode(int id, int flag)
          Display an Object Node
 void start()
           
 void StartStopCounter()
          Exports the count value out to the JavaScript method defined in the parameters, and resets the counter
 void stop()
           
 void TextSearch()
          Activate interactive Text Search method
 void ToggleLayer(java.lang.String layer)
          Toggle a layer.If the layer is off, it is turned on.If the layer is off, it is turned on.
 int TurnALayerOn(java.lang.String layerName)
          Turns a single layer on
 void TurnOffLinkShapes()
           
 void TurnPreloadedRedlinesOn()
          Turn all preloaded redlines on, independent of redline icon menu is active or note
 void UndoCount()
          Undo the last count action
 void UnlinkShapes(java.lang.String layerGroup)
           
 boolean UpdateCanvas()
          Updates the canvas, similar to the Java call to update(g), if the paint method is free, update(g) will will execute paint(g)
 boolean UpdateCanvas(boolean wait)
          Updates the canvas, similar to the Java call to update(g), if the paint method is free, update(g) will will execute paint(g)
 void UrlOnOff()
          Calls the interactive Hyperlink On/Off method
 void UrlOnOff(boolean on)
          Sets the Hyperlink highlight to either on or off
 void UrlOnOffColorDynamic(java.lang.String rr, java.lang.String gg, java.lang.String bb)
          Sets the Hyperlink dynamic highlight color
 void UrlOnOffColorStatic(java.lang.String rr, java.lang.String gg, java.lang.String bb)
          Sets the Hyperlink static highlight color
 void UrlOnOffStatic(boolean onoff)
          Activates alternatively deactivates static Hyperlink color
 boolean WaitForLoadDone()
          Wait for LoadDone to finish.
 boolean WaitForRedraw()
          Wait for Redraw to finish.
 int x_DWGtoDWF(double x, double y)
          Converts a location in DWG coordinates to the corresponding location in DWF coordinates
 int[] xy_DWGtoDWF(double x, double y)
          Converts a location in DWG coordinates to the corresponding location in DWF coordinates
 int y_DWGtoDWF(double x, double y)
          Converts a location in DWG coordinates to the corresponding location in DWF coordinates
 void Zoom(double zoomfactor)
          Zoom over a drawing with a given factor
 void ZoomExtends()
          Zoom Extends; the extents on all visible layers are calculated and zoom onto
 void ZoomExtents()
          Zoom Extents; the extents on all visible layers are calculated and zoom onto
 void ZoomExtents(java.lang.String layerList)
          Zoom Extents; the extents on layers in a list are calculated and zoom onto
 void ZoomExtents(java.lang.String layerList, int zoomfactor)
          Zoom Extents; the extents on layers in a list are calculated and zoom onto, but with a relative zoomfactor
 void ZoomIn()
          Zoom In on drawing with a fixed factor of 20%
 void ZoomInOut()
          Activate the interactive ZoomIn/ZoomOut method
 void ZoomOut()
          Zoom Out on drawing with a fixed factor of 20%
 void ZoomRect()
          Zoom by dragging a window
 void ZoomSmoothlyToExtents(java.lang.String layerList, int zoomfactor, int steps)
          Zoom Smoothly to Extents; the extents on layers in a list are calculated and zoomed smoothly onto, but with a relative zoomfactor
 void ZoomWindow()
          Zoom by dragging a window
 void ZoomWindow(boolean single_only)
          Zoom by dragging a window
 void ZoomWindow(int ax, int ay, int width, int height, int zoomfactor)
          Zoom Window; zooms to a window defined with a lower left coordinate set, with width and height in database coordinates given, with a relative zoom factor
 
Methods inherited from class java.applet.Applet
destroy, getAccessibleContext, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, init, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

copyright

public static java.lang.String copyright

fileName

public java.lang.String fileName

fileType

public java.lang.String fileType

apiModuleAdapter

public APIModuleAdapter apiModuleAdapter
Constructor Detail

ViewerApplet

public ViewerApplet()
Method Detail

stop

public void stop()
Overrides:
stop in class java.applet.Applet

GetViewerPanel

public java.awt.Panel GetViewerPanel()

start

public void start()
Overrides:
start in class java.applet.Applet

ResetStickyNotesAndRedNotes

public void ResetStickyNotesAndRedNotes()

GetViewerControls

public ViewerControls GetViewerControls()

GetFileURL

public java.net.URL GetFileURL()
Get the Url of the current loaded file

Returns:
the Url of the loaded object

GetCurrentURL

public java.net.URL GetCurrentURL()
Get the Url of the current loaded file

Returns:
the Url of the loaded object

GetAllWidgetsWithUrl

public java.lang.String GetAllWidgetsWithUrl()
Returns a string with all objects that contains an Url/Hyperlink

Returns:
a string object with Urls

GetAllWidgetsWithUrlObjectNames

public java.lang.String GetAllWidgetsWithUrlObjectNames()
Returns a string with all objects that contains an Url/Hyperlink

Returns:
a string object with Urls

GetAllUrlScriptObjectNames

public java.lang.String GetAllUrlScriptObjectNames()
Returns a string with all script objects that contains an Url/Hyperlink

Returns:
a string object with script Urls

getX_DWG

public double getX_DWG()
Get DWG X coordinate of the last mouse click


getY_DWG

public double getY_DWG()
Get DWG Y coordinate of the last mouse click


getUnitsX

public double getUnitsX()
Get DWG X coordinate of the last mouse click


getUnitsY

public double getUnitsY()
Get DWG Y coordinate of the last mouse click


getX

public int getX()
Get X coordinate of the last mouse click

Overrides:
getX in class java.awt.Component

getY

public int getY()
Get Y coordinate of the last mouse click

Overrides:
getY in class java.awt.Component

getViewWidth_DWG

public int getViewWidth_DWG()
Get current view Width in DWG units


getViewHeight_DWG

public int getViewHeight_DWG()
Get current view height in DWG units


getViewWidth

public int getViewWidth()
Get current view Width


getViewHeight

public int getViewHeight()
Get current view height


getCenterX

public int getCenterX()
Get current x coordinate of the screen


getCenterY

public int getCenterY()
Get current y coordinate of the screen


centerViewOn_DWG

public void centerViewOn_DWG(double x,
                             double y,
                             double width,
                             double height)
Center the view with width, height at location x,y in DWG coord.


APIcommandCurrentlyActive

public boolean APIcommandCurrentlyActive()
Checks if an API command is currently executed and in progress This command is used for Java Script core to check if a given command has been executed, as Java and Java Script is not synchronized.

Parameters:
none, - returns true if command is active

ResetAPIcommand

public void ResetAPIcommand()
Resets system variables for asynchronious calls to API commands.


SetStickyNoteUser

public void SetStickyNoteUser(java.lang.String userName)

SetStickyNoteUserID

public void SetStickyNoteUserID(java.lang.String id)

SetStickyNoteAssetID

public void SetStickyNoteAssetID(java.lang.String id)

centerViewOn_DWG

public void centerViewOn_DWG(int x,
                             int y,
                             int width,
                             int height)
Center the view with width, height at location x,y in DWG coord.


getWorldWindowX

public int getWorldWindowX()
Get current x coordinate of the screen in world coordinates (internal coordinate system)


getWorldWindowY

public int getWorldWindowY()
Get current y coordinate of the screen in world coordinates (internal coordinate system)


getWorldWindowWidth

public int getWorldWindowWidth()
Get current width of the screen in world coordinates (internal coordinate system)


getWorldWindowHeight

public int getWorldWindowHeight()
Get current height of the screen in world coordinates (internal coordinate system)


centerViewOnWorldWindow

public void centerViewOnWorldWindow(int x,
                                    int y,
                                    int width,
                                    int height)
Center the view with width, height at location x,y in world coordinates (internal coordinate system)


CenterViewport_Percentage

public void CenterViewport_Percentage(int x_percentage,
                                      int y_percentage,
                                      int width_percentage,
                                      int height_percentage)
Center the view with percentage width, height at location x,y in percentage of world coordinates (internal coordinate system)


centerViewOn

public void centerViewOn(int x,
                         int y,
                         int width,
                         int height)
Center the view with width, height at location x,y


centerViewOn_DWG

public void centerViewOn_DWG(double zoomScale,
                             double x,
                             double y)
Center the view at location x,y in DWG coord with a zoom factor

Parameters:
zoomScale - zoom scale in percentage
x,y - location where the drawing is centered

centerViewOn_DWG

public void centerViewOn_DWG(double zoomScale,
                             int x,
                             int y)
Center the view at location x,y in DWG coord with a zoom factor

Parameters:
zoomScale - zoom scale in percentage
x,y - location where the drawing is centered

centerViewOn

public void centerViewOn(double zoomScale,
                         int x,
                         int y)
Center the view at location x,y with a zoom factor

Parameters:
zoomScale - zoom scale in percentage
x,y - location where the drawing is centered

x_DWGtoDWF

public int x_DWGtoDWF(double x,
                      double y)
Converts a location in DWG coordinates to the corresponding location in DWF coordinates

Parameters:
x,y - location in DWG coordinates
Returns:
x location in DWF coordinates

y_DWGtoDWF

public int y_DWGtoDWF(double x,
                      double y)
Converts a location in DWG coordinates to the corresponding location in DWF coordinates

Parameters:
x,y - location in DWG coordinates
Returns:
x location in DWF coordinates

xy_DWGtoDWF

public int[] xy_DWGtoDWF(double x,
                         double y)
Converts a location in DWG coordinates to the corresponding location in DWF coordinates

Parameters:
x,y - location in DWG coordinates
Returns:
array with (x,y) location in DWF coordinates

OpenFile

public void OpenFile(byte[] fileArray,
                     java.lang.String fileName)
Opens a file

Parameters:
fileArray - byte array containing the file
fileName - name of file

ResetAll

public void ResetAll()
Resets all arrays - use to clear out content in CADViewer before opening a file


OpenFile

public void OpenFile(java.lang.String fileName)
Opens a file

Parameters:
fileName - name of file to be opened, use protocols http:// or file:/

OpenFilesOverlaid

public void OpenFilesOverlaid(java.lang.String fileName1,
                              java.lang.String fileName2)

OpenOverlayFile

public void OpenOverlayFile(java.lang.String fileName,
                            boolean sendtoback)

Set_polylinesWithUrl_counter

public void Set_polylinesWithUrl_counter()

OpenOverlayFile

public void OpenOverlayFile(java.lang.String file,
                            boolean sendtoback,
                            boolean dummy)

OpenOverlayFile

public void OpenOverlayFile(java.lang.String file,
                            boolean sendtoback,
                            boolean dummy,
                            int clean_polygon_space)

PrintJsApi

public void PrintJsApi(java.lang.String fileName,
                       java.lang.String orientation)
Adds a file to list to be batch printed

Parameters:
fileName - name of file to be opened, use protocols http:// or file:/
orientation - Landscape or Portrait

CheckDefinedCompressedData

public void CheckDefinedCompressedData(byte[] array)
Checks if a byte array is a compressed DWF file, result is printed in java console

Parameters:
fileArray - byte array containing the file

AddDotMarker

public boolean AddDotMarker(int x,
                            int y,
                            int rad,
                            int r,
                            int g,
                            int b,
                            java.lang.String layerName)
Adds a filled circle in location (x,y) with radius rad and color (r,g,b) on layer layerName.

Parameters:
x - x-cordiate in database coordinates
y - y-cordiate in database coordinates
rad - radius in database coordinates
r - color r component
g - color g component
b - color b component
layerName - name of the layer the dot is placed

AddDotMarker

public boolean AddDotMarker(int x,
                            int y,
                            int rad,
                            int r,
                            int g,
                            int b,
                            java.lang.String layerName,
                            boolean toBack)
Adds a filled circle in location (x,y) with radius rad and color (r,g,b) on layer layerName, optionally send to back.

Parameters:
x - x-cordiate in database coordinates
y - y-cordiate in database coordinates
rad - radius in database coordinates
r - color r component
g - color g component
b - color b component
layerName - name of the layer the dot is placed
toBack - true to send marker to back, false to keep it on top

RemoveDotMarker

public boolean RemoveDotMarker(int x,
                               int y,
                               int r,
                               java.lang.String layerName)
Remove a filled circle placed in location (x,y) with radius r on layer layerName.

Parameters:
x - x-cordiate in database coordinates
y - y-cordiate in database coordinates
r - radius in database coordinates
layerName - name of the layer the dot is placed

AddTextMarker

public boolean AddTextMarker(int x,
                             int y,
                             int h,
                             int a,
                             java.lang.String str,
                             int r,
                             int g,
                             int b,
                             java.lang.String layerName)
Adds a text object location (x,y) with height h and color (r,g,b) on layer layerName.

Parameters:
x - x-cordiate in database coordinates
y - y-cordiate in database coordinates
h - height in database coordinates
a - rotation angle of text in degrees
str - text object as a sting expression
r - color r component
g - color g component
b - color b component
layerName - name of the layer where the text is placed

AddTextMarker

public boolean AddTextMarker(int x,
                             int y,
                             int h,
                             int a,
                             java.lang.String str,
                             int r,
                             int g,
                             int b,
                             java.lang.String layerName,
                             boolean toBack)
Adds a text object location (x,y) with height h and color (r,g,b) on layer layerName, optionally sends to back.

Parameters:
x - x-cordiate in database coordinates
y - y-cordiate in database coordinates
h - height in database coordinates
a - rotation angle of text in degrees
str - text object as a sting expression
r - color r component
g - color g component
b - color b component
layerName - name of the layer where the text is placed
toBack - true to send marker to back, false to keep it on top

ZoomIn

public void ZoomIn()
Zoom In on drawing with a fixed factor of 20%


ZoomOut

public void ZoomOut()
Zoom Out on drawing with a fixed factor of 20%


Zoom

public void Zoom(double zoomfactor)
Zoom over a drawing with a given factor

Parameters:
zoomfactor - zoom factor in absolute value, current viewport is 100% = 1.0

ZoomWindow

public void ZoomWindow()
Zoom by dragging a window


ZoomWindow

public void ZoomWindow(boolean single_only)
Zoom by dragging a window

Parameters:
single_only - parameter to control if only one window dragging is allowed

ZoomRect

public void ZoomRect()
Zoom by dragging a window


ZoomExtends

public void ZoomExtends()
Zoom Extends; the extents on all visible layers are calculated and zoom onto


ZoomExtents

public void ZoomExtents()
Zoom Extents; the extents on all visible layers are calculated and zoom onto


ZoomExtents

public void ZoomExtents(java.lang.String layerList)
Zoom Extents; the extents on layers in a list are calculated and zoom onto

Parameters:
layerList - list of the layers which extents are calcualted, layers are ; separated

ZoomExtents

public void ZoomExtents(java.lang.String layerList,
                        int zoomfactor)
Zoom Extents; the extents on layers in a list are calculated and zoom onto, but with a relative zoomfactor

Parameters:
layerList - list of the layers which extents are calcualted
zoomfactor - zoomfactor in % based on the extents zoomwindow

DrawingExtents

public int[] DrawingExtents()
Drawing Extents; calcluate the extents of the drawing

Returns:
array with values corresponding to the rectangle used in zoom extents: x,y width, height

CurrentViewport

public int[] CurrentViewport()
CurrentViewport; returns the coordinate of the current viewport

Returns:
array with values corresponding to the rectangle used in current viewport: x,y width, height

ZoomWindow

public void ZoomWindow(int ax,
                       int ay,
                       int width,
                       int height,
                       int zoomfactor)
Zoom Window; zooms to a window defined with a lower left coordinate set, with width and height in database coordinates given, with a relative zoom factor

Parameters:
ax - lower left x
ay - lower left y
ax - width
ay - height
zoomfactor - zoomfactor in % based on the extents zoomwindow

ZoomSmoothlyToExtents

public void ZoomSmoothlyToExtents(java.lang.String layerList,
                                  int zoomfactor,
                                  int steps)
Zoom Smoothly to Extents; the extents on layers in a list are calculated and zoomed smoothly onto, but with a relative zoomfactor

Parameters:
layerList - list of the layers which extents are calcualted
zoomfactor - zoomfactor in % based on the extents zoomwindow
steps - number of distinct views in the zoom process

KeyEvent

public boolean KeyEvent(java.awt.Event evt)

APIKeyCodeEvent

public boolean APIKeyCodeEvent(int keyCode)
APIKeyCodeEvent; key events trapped in HTML can be passed over to CADViewer

Parameters:
int - the value of event.keyCode

keyPressed

public void keyPressed(java.awt.event.KeyEvent key)
Specified by:
keyPressed in interface java.awt.event.KeyListener

keyReleased

public void keyReleased(java.awt.event.KeyEvent key)
Specified by:
keyReleased in interface java.awt.event.KeyListener

keyTyped

public void keyTyped(java.awt.event.KeyEvent key)
Specified by:
keyTyped in interface java.awt.event.KeyListener

AddKeyListener

public void AddKeyListener(java.awt.event.KeyListener listener)

PanUp

public void PanUp()
Pan Up


PanDown

public void PanDown()
Pan Down


PanLeft

public void PanLeft()
Pan Left


PanRight

public void PanRight()
Pan Right


RedrawCanvas

public void RedrawCanvas()
Redraw the current canvas; no change of zoom factor


Pan

public void Pan()
Activate interactive panning


ZoomInOut

public void ZoomInOut()
Activate the interactive ZoomIn/ZoomOut method


RedlinesOnOff

public void RedlinesOnOff()

RedlinesOn

public void RedlinesOn()

SaveStickyNotesRedlines

public void SaveStickyNotesRedlines()

GetExternalPrintDone

public boolean GetExternalPrintDone()

SetExternalPrintDone

public void SetExternalPrintDone(boolean status)

Print

public void Print()
Call the Print method


Print

public void Print(boolean forceWhiteBackground,
                  boolean forceBlackWhite,
                  boolean printRedlines,
                  boolean portraitLandscape)
Calls the print method. - if parameter is active, calls the system print routine directly

Parameters:
forceWhiteBackground - boolean, true to force background to white, false otherwise
forceBlackWhite - boolean,true to set colors to black and white only, false otherwise
printRedlines - boolean,true if redlines shall be printed, false otherwise
portraitLandscape - boolean,true if portrait, false if landscape

PrintDirect

public void PrintDirect(java.lang.Boolean forceWhiteBackground,
                        java.lang.Boolean forceBlackWhite,
                        java.lang.Boolean printRedlines,
                        java.lang.Boolean portraitLandscape)
Calls the print method. - if parameter is active, calls the system print routine directly

Parameters:
forceWhiteBackground - Boolean, true to force background to white, false otherwise
forceBlackWhite - Boolean,true to set colors to black and white only, false otherwise
printRedlines - Boolean, true if redlines shall be printed, false otherwise
portraitLandscape - Boolean,true if portrait, false if landscape

CVwait

public void CVwait(int n)

OpenFile

public void OpenFile()
Call the OpenFile method, depending on settings it will either open the local file-manager or load files from Server


OpenFile_

public void OpenFile_()
Call the OpenFile method, depending on settings it will either open the local file-manager or load files from Server, finish with Garbage Collection


CopyFile

public int CopyFile()
Sets the checkJavaScriptEventThread.SetSaveFile();


CopyFile_

public int CopyFile_()
Sets the checkJavaScriptEventThread.SetSaveFile();


CopyFile

public int CopyFile(java.lang.String url)
Copies the current file into a new file,

Parameters:
url - name of the new name of the file, use protocols http:// and file:/

UrlOnOff

public void UrlOnOff()
Calls the interactive Hyperlink On/Off method


UrlOnOff

public void UrlOnOff(boolean on)
Sets the Hyperlink highlight to either on or off

Parameters:
on - hyperlink status

UrlOnOffColorStatic

public void UrlOnOffColorStatic(java.lang.String rr,
                                java.lang.String gg,
                                java.lang.String bb)
Sets the Hyperlink static highlight color

Parameters:
rr - red component, 0-255
gg - green component, 0-255
bb - blue component, 0-255

UrlOnOffColorDynamic

public void UrlOnOffColorDynamic(java.lang.String rr,
                                 java.lang.String gg,
                                 java.lang.String bb)
Sets the Hyperlink dynamic highlight color

Parameters:
rr - red component, 0-255
gg - green component, 0-255
bb - blue component, 0-255

UrlOnOffStatic

public void UrlOnOffStatic(boolean onoff)
Activates alternatively deactivates static Hyperlink color

Parameters:
onoff - on/off status

GetViews

public void GetViews()
Activates the interactive GetViews method for DWF views selection


GetViewsList

public java.lang.String GetViewsList()
Returns a list with all views in the current page

Returns:
String containing a list with views

GetPages

public void GetPages()
Activates the interactive Getpages method for multiple DWF page selection


GetPageNumber

public int GetPageNumber()
Get the current page number of the page that is displayed on the canvas


SetPageNumber

public void SetPageNumber(int index)
Set the current page number of the page for display

Parameters:
index - page number

GetMultiPagesArray

public java.util.Vector GetMultiPagesArray()
Get all multipages in the drawing


GetMultiPagesNames

public java.util.Vector GetMultiPagesNames()
Get all multipage names in the drawing


Measurement

public void Measurement()
Activates the interactive Measurement method


MeasurementScale

public void MeasurementScale()
Activates the interactive Scale method as part of the Measurement method


MeasurementCalibrate

public void MeasurementCalibrate()
Activates the interactive Calibrate method as part of the Measurement method


TurnALayerOn

public int TurnALayerOn(java.lang.String layerName)
Turns a single layer on

Parameters:
layerName - name of layer

OnLayers

public void OnLayers(java.lang.String onlayers)
Turns on a list of layers

Parameters:
layerList - list of the layers, layers are ; separated

OffLayers

public void OffLayers(java.lang.String offlayers)
Turns off a list of layers

Parameters:
layerList - list of the layers, layers are ; separated

RetrieveOnLayers

public java.lang.String RetrieveOnLayers()
Exports a list of on layers

Returns:
A string with turned on layers, layers are ; separated

RetrieveOffLayers

public java.lang.String RetrieveOffLayers()
Exports a list of off layers

Returns:
A string with turned off layers, layers are ; separated

AllLayersOff

public void AllLayersOff()
Turns all layers off


AllLayersOn

public void AllLayersOn()
Turns all layers on


IsLayerOn

public boolean IsLayerOn(java.lang.String layer)
Checks if a layer is on, returns true if the layer is on, false otherwise

Parameters:
layer - the layer to be checked
Returns:
returns true if the layer is on, false otherwise

IsLayerOff

public boolean IsLayerOff(java.lang.String layer)
Checks if a layer is off, returns true if the layer is off, false otherwise

Parameters:
layer - the layer to be checked
Returns:
returns true if the layer is off, false otherwise

ToggleLayer

public void ToggleLayer(java.lang.String layer)
Toggle a layer.If the layer is off, it is turned on.If the layer is off, it is turned on.

Parameters:
layer - the layer to be toggled

HideLayerSetInLayerCommand

public void HideLayerSetInLayerCommand(java.lang.String prefix)
Hide a set of layers with a given prefix from within the layer command list of layers

Parameters:
prefix - layer prefix

ResetLayerSetInLayerCommand

public void ResetLayerSetInLayerCommand()
Resets the set of hidden layers from the layer command list of layers


ConvertHexStringtoInt

public int ConvertHexStringtoInt(java.lang.String str)
Converts a hex number to int; help method for use with color settings


SetColorLayers

public void SetColorLayers(java.lang.String listLayers,
                           java.lang.String rr,
                           java.lang.String gg,
                           java.lang.String bb)
Sets the color of a list of layers

Parameters:
layerList - list of the layers, layers are ; separated
rr - red component, 0-255
gg - green component, 0-255
bb - blue component, 0-255

ColorLayers

public void ColorLayers(java.lang.String listLayers,
                        java.lang.String r,
                        java.lang.String g,
                        java.lang.String b)
Sets the color of a list of layers

Parameters:
layerList - list of the layers, layers are ; separated
rr - red component, in hex
gg - green component, in hex
bb - blue component, in hex

SetLayerColor

public void SetLayerColor(java.lang.String listLayers,
                          java.lang.String rr,
                          java.lang.String gg,
                          java.lang.String bb)
Sets the color of a list of layers

Parameters:
layerList - list of the layers, layers are ; separated
rr - red component, 0-255
gg - green component, 0-255
bb - blue component, 0-255

ChangeTextOnLayer

public void ChangeTextOnLayer(java.lang.String layerList,
                              java.lang.String originalText,
                              java.lang.String newText)
Change a specified text objects on a list of layers

Parameters:
layerList - list of the layers, layers are ; separated
originalText - the original text string
newText - the new text string

SetTextOnLayer

public void SetTextOnLayer(java.lang.String layerList,
                           int textNodeIndex,
                           java.lang.String newText)
Set a specified text objects on a list of layers

Parameters:
layerList - list of the layers, layers are ; separated
textNodeIndex - the index of the text object on a layer to be changed
newText - the new text string

SetTextOnLayer

public void SetTextOnLayer(java.lang.String layerList,
                           int textNodeIndex,
                           java.lang.String newText,
                           boolean redraw)
Set a specified text objects on a list of layers, controlled redraw

Parameters:
layerList - list of the layers, layers are ; separated
textNodeIndex - the index of the text object on a layer to be changed
newText - the new text string
redraw - set redraw on/off

SetTextOnLayer

public void SetTextOnLayer(java.lang.String layerList,
                           int textNodeIndex,
                           java.lang.String newText,
                           boolean redraw,
                           int r,
                           int g,
                           int b)
Set a specified text objects on a list of layers, controlled redraw

Parameters:
layerList - list of the layers, layers are ; separated
textNodeIndex - the index of the text object on a layer to be changed
newText - the new text string
redraw - set redraw on/off
r,g,b - sets the color code of the text object

SetTextOnLayer

public void SetTextOnLayer(java.lang.String layerList,
                           int textNodeIndex,
                           java.lang.String newText,
                           boolean redraw,
                           int r,
                           int g,
                           int b,
                           java.lang.String font)
Set a specified text objects on a list of layers, controlled redraw

Parameters:
layerList - list of the layers, layers are ; separated
textNodeIndex - the index of the text object on a layer to be changed
newText - the new text string
redraw - set redraw on/off
r,g,b - sets the color code of the text object
font - sets the font of the text object

SetAllTextColorFontOnLayer

public void SetAllTextColorFontOnLayer(java.lang.String layerList,
                                       boolean redraw,
                                       int r,
                                       int g,
                                       int b,
                                       java.lang.String font)
Set a specified text objects color and font on a list of layers, controlled redraw

Parameters:
layerList - list of the layers, layers are ; separated
redraw - set redraw on/off
r,g,b - sets the color code of the text objects
font - sets the font of the text objects

FillPolylineOnLayer

public void FillPolylineOnLayer(java.lang.String layerList,
                                int polygonNodeIndex,
                                int r,
                                int g,
                                int b)
Fills a specific polyline object on a list of layers with a new color

Parameters:
layerList - list of the layers, layers are ; separated
polygonNodeIndex - the index of the polygon object on a layer to be changed
r - red component, 0-255
g - green component, 0-255
b - blue component, 0-255

FillPolylineOnLayer

public void FillPolylineOnLayer(java.lang.String layerList,
                                int polygonNodeIndex,
                                int r,
                                int g,
                                int b,
                                int alpha)
Fills a specific polyline object on a list of layers with a new color

Parameters:
layerList - list of the layers, layers are ; separated
polygonNodeIndex - the index of the polygon object on a layer to be changed
r - red component, 0-255
g - green component, 0-255
b - blue component, 0-255
alpha - component, 0-255

FillPolylineOnLayer

public void FillPolylineOnLayer(java.lang.String layerList,
                                int polygonNodeIndex,
                                int r,
                                int g,
                                int b,
                                int alpha,
                                int polygon_order)
Fills a specific polyline object on a list of layers with a new color

Parameters:
layerList - list of the layers, layers are ; separated
polygonNodeIndex - the index of the polygon object on a layer to be changed
r - red component, 0-255
g - green component, 0-255
b - blue component, 0-255
alpha - component, 0-255
polygon - sort order, integer above zero

FillPolylineOnLayer

public void FillPolylineOnLayer(java.lang.String layerList,
                                int polygonNodeIndex,
                                int r,
                                int g,
                                int b,
                                int alpha,
                                int polygon_order,
                                int clean_polygon_space)
Fills a specific polyline object on a list of layers with a new color

Parameters:
layerList - list of the layers, layers are ; separated
polygonNodeIndex - the index of the polygon object on a layer to be changed
r - red component, 0-255
g - green component, 0-255
b - blue component, 0-255
alpha - component, 0-255
polygon_order - polygon sort order, integer above zero
clean_polygonspace - 1 if cleaning of file, 0 otherwise

SetUrlAlternateText

public void SetUrlAlternateText(int UrlId,
                                java.lang.String alternateText)
Sets the alternate highlight text for a hyperlink

Parameters:
UrlId, - the Id of the Url
alternateText, - the highlight text

SetUrlAlternateText

public void SetUrlAlternateText(java.lang.String urlsubstring,
                                java.lang.String alternateText)
Sets the alternate highlight text for a hyperlink, the hyperlink is searched based on a string expression that is a substring of the hyperlink.

Parameters:
object, - a substring of the hyperlink
alternateText, - the highlight text

SetUrlPolygonColor

public void SetUrlPolygonColor(int UrlId,
                               int r,
                               int g,
                               int b)
Fills polyline objects associated with an Url with a new color

Parameters:
UrlId, - the Url Id number
r - red component, 0-255
g - green component, 0-255
b - blue component, 0-255

SetUrlPolygonColor

public void SetUrlPolygonColor(java.lang.String urlsubstring,
                               int r,
                               int g,
                               int b)
Fills polyline objects associated with an Url string with a new color

Parameters:
UrlId, - the Url Sring or substring
r - red component, 0-255
g - green component, 0-255
b - blue component, 0-255

RemoveUrlPolygonColor

public void RemoveUrlPolygonColor(int UrlId)
Remove fills in polyline objects associated with an Url

Parameters:
UrlId, - the Url Id number

RemoveUrlPolygonColor

public void RemoveUrlPolygonColor(java.lang.String urlsubstring)
Remove fills in polyline objects associated with an Url string or substring

Parameters:
String, - a substring in the Url expression

FillAllPolylinesOnLayer

public void FillAllPolylinesOnLayer(java.lang.String layerList,
                                    int r,
                                    int g,
                                    int b)
Fills all polyline objects on a list of layers with a new color

Parameters:
layerList - list of the layers, layers are ; separated
r - red component, 0-255
g - green component, 0-255
b - blue component, 0-255

FillAllPolylinesOnLayer

public void FillAllPolylinesOnLayer(java.lang.String layerList,
                                    int r,
                                    int g,
                                    int b,
                                    boolean redraw)
Fills all polyline objects on a list of layers with a new color, redraw after fill can be turned on/off

Parameters:
layerList - list of the layers, layers are ; separated
r - red component, 0-255
g - green component, 0-255
b - blue component, 0-255
redraw - boolean

RemoveFillAllPolylinesOnLayer

public void RemoveFillAllPolylinesOnLayer(java.lang.String layerList)
Remove all fills


RemoveFillAllPolylinesOnLayer

public void RemoveFillAllPolylinesOnLayer(java.lang.String layerList,
                                          boolean redraw)
Remove all fills, redraw controlled


BWBackground

public void BWBackground()
Change background to black and white


TextSearch

public void TextSearch()
Activate interactive Text Search method


ObjectSearch

public void ObjectSearch()
Activate interactive Object Search method


Rotate

public void Rotate(java.lang.String type)
Activate interactive Rotate method

Parameters:
type - use parameters rotate, mirrorX, mirrorY, reset

ShowAbout

public void ShowAbout()
Activate interactive Show About method


ShowHelp

public void ShowHelp()
Activate interactive Show Help method


RedlineSaveFile

public int RedlineSaveFile(java.lang.String url,
                           java.lang.String layerName)
Save a redline file

Parameters:
url - redline file name, use protocols http:// or file:/
layerName - name of the redline layer

RedlineSaveFile_2ndURL

public int RedlineSaveFile_2ndURL(java.lang.String url)
Save a redline file to a location on the server determined with the 2ndURL applet parameter

Parameters:
url - redline file name, use protocols http:// or file:/

RedlineSaveFile

public int RedlineSaveFile()
Calls the interactive Save Redline method


RedlineOpenFile

public int RedlineOpenFile()
Calls the interactive Open Redline method


RedlineOpenFile_

public int RedlineOpenFile_()
Calls the interactive Open Redline method


RedlineOpenFile

public int RedlineOpenFile(java.lang.String fileName)
Open a redline file

Parameters:
url - redline file name, use protocols http:// or file:/

RedlineOpenFile

public int RedlineOpenFile(java.lang.String fileName,
                           boolean ReadOnly)
Open a redline file in read only mode

Parameters:
url - redline file name, use protocols http:// or file:/
ReadOnly - readonly status

RedlineSaveFile_

public void RedlineSaveFile_()
Calls the interactive Save Redline method


RedlineSaveFile_

public int RedlineSaveFile_(java.lang.String url)
Save a redline file on the server determined with the 2ndURL applet parameter

Parameters:
url - redline file name, use protocols http:// or file:/

RedlineSaveFile

public int RedlineSaveFile(java.lang.String fileName)
Save a redline file

Parameters:
url - redline file name, use protocols http:// or file:/

ChangeBackground

public void ChangeBackground()
Calls the interactive Change Background method


ShowLayers

public void ShowLayers()
Calls the interactive Show Layers method


GetPreviousScreen

public void GetPreviousScreen()
Calls the interactive Get Previous Screen method


GetNextScreen

public void GetNextScreen()
Calls the interactive Get Next Screen method


SetWaterMark

public void SetWaterMark(java.lang.String waterMark)
Sets a custom defined watermark on the Canvas

Parameters:
waterMark - string expression

SetWaterMarkColor

public void SetWaterMarkColor(int r,
                              int g,
                              int b)
Sets the watermark color, overwrites settings done via the parameter interface

Parameters:
r - red component
g - green component
b - blue component

SetWaterMarkFontSize

public void SetWaterMarkFontSize(int size)
Sets the watermark font size, overwrites settings done via the parameter interface

Parameters:
size - font size in pixels

SetWaterMarkLocation_percentage

public void SetWaterMarkLocation_percentage(int location)
Sets the watermark location as percentage of canvas height, overwrites settings done via the parameter interface

Parameters:
location - value between 0 and 100

TurnPreloadedRedlinesOn

public void TurnPreloadedRedlinesOn()
Turn all preloaded redlines on, independent of redline icon menu is active or note


RedlineSelect

public void RedlineSelect()

RedlineLine

public void RedlineLine()
Calls the interactive Draw Redline Lines method


RedlineRectangle

public void RedlineRectangle()
Calls the interactive Draw Redline Rectangle method


RedlineRectangle_AddHyperlink

public void RedlineRectangle_AddHyperlink()
Calls the interactive Draw Redline Rectangle method with AddHyperlink


RedlineRectangle_AddHyperlink_ReleaseRemotely

public void RedlineRectangle_AddHyperlink_ReleaseRemotely()

RedlineCircle

public void RedlineCircle()
Calls the interactive Draw Redline Circle method


RedlineTriangle

public void RedlineTriangle()
Calls the interactive Draw Redline Triangle method


RedlineEllipse

public void RedlineEllipse()
Calls the interactive Draw Redline Ellipse method


RedlineHexagon

public void RedlineHexagon()
Calls the interactive Draw Redline Hexagon method


RedlineCloud

public void RedlineCloud()
Calls the interactive Draw Redline Cloud method


RedlinePolyline

public void RedlinePolyline()
Calls the interactive Draw Redline Polyline method


RedlinePolyline_AddHyperlink

public void RedlinePolyline_AddHyperlink()
Calls the interactive Draw Redline Polyline with Add Hyperlink


RedlinePolyline_AddHyperlink_ReleaseRemotely

public void RedlinePolyline_AddHyperlink_ReleaseRemotely()

RedlinePolylineArrow

public void RedlinePolylineArrow()
Calls the interactive Draw Redline Polyline Arrow method


RedlineFreehand

public void RedlineFreehand()
Calls the interactive Draw Redline Freehand method


RedlineText

public void RedlineText()
Calls the interactive Draw Redline Text method


RedlineHighlight

public void RedlineHighlight()
Calls the interactive Draw Redline Highlight method


RedlineSelectObject

public void RedlineSelectObject()
Calls the interactive Draw Redline Select Object method


RedlineURL

public void RedlineURL()
Calls the interactive Draw Redline URL method


RedlineURL_Url

public void RedlineURL_Url(java.lang.String Url)
The interactive Draw Redline URL method can via the parameter: be enabled to set a layer name to which the redline is associated. Three methods, RedlineURL_Url,RedlineURL_tooltip, RedlineURL_layerName, allows the user to control the Url, Url comment and layer name in this process.

Parameters:
Url - hyperlink to be displayed in RedlineUrl menu

RedlineURL_Url_tooltip

public void RedlineURL_Url_tooltip(java.lang.String Url_tooltip)
The interactive Draw Redline URL method can via the parameter: be enabled to set a layer name to which the redline is associated. Three methods, RedlineURL_Url,RedlineURL_tooltip, RedlineURL_layerName, allows the user to control the Url, Url comment and layer name in this process.

Parameters:
Url - hyperlink tooltip to be displayed in RedlineURL menu

RedlineURL_layerName

public void RedlineURL_layerName(java.lang.String Url_layerName)
The interactive Draw Redline URL method can via the parameter: be enabled to set a layer name to which the redline is associated. Three methods, RedlineURL_Url,RedlineURL_tooltip, RedlineURL_layerName, allows the user to control the Url, Url comment and layer name in this process.

Parameters:
Url - layer name to be displayed in RedlineURL menu

RedlineURL_selectLastDrawnRedline

public void RedlineURL_selectLastDrawnRedline(boolean flag)
The interactive Draw Redline URL method can associated with the last drawn redline instead of going through a redline selection process

Parameters:
flag - true to use last drawn redline, false to select redline via selection tool

RedlineThickness

public void RedlineThickness()
Calls the interactive Draw Redline Thickness method


RedlineDelete

public void RedlineDelete()
Calls the interactive Redline Delete method


RedlineDeleteAll

public void RedlineDeleteAll()
Calls the interactive Redline Delete All method


RedlineUndo

public void RedlineUndo()
Calls the interactive Redline Undo method


RedlineRedo

public void RedlineRedo()
Calls the interactive Redline Redo method


GetNamedView

public boolean GetNamedView(java.lang.String namedView)
Display a specific named view

Parameters:
namedView - name of the view Returns false if the Named View does not exist

Collaborator

public void Collaborator()
Activate the interactive Collaborator method

Parameters:
namedView - name of the view

GetFrame

public void GetFrame()
Get the current Frame


RedlineColor

public void RedlineColor(java.lang.String color)
set the color of the current redline

Parameters:
color - string containing (r,g,b) of redline

RedlineThickness

public void RedlineThickness(int thickness)
set the thickness of the current redline

Parameters:
thickness - sets the thickness of the redline in pixels

CountingOnOff

public void CountingOnOff()
Activates the interactive method to count objects on the canvas


StartStopCounter

public void StartStopCounter()
Exports the count value out to the JavaScript method defined in the parameters, and resets the counter


DeleteCount

public void DeleteCount()
Removes the last count symbol from canvas


RedoCount

public void RedoCount()
Redo the last count symbol on convas


UndoCount

public void UndoCount()
Undo the last count action


ActionUnits_screenCoordPoints

public java.util.Vector ActionUnits_screenCoordPoints()
Exports the current units, as a vector in screen coordinate points


ActionUnits_scaledCoordPoints

public java.util.Vector ActionUnits_scaledCoordPoints()
Exports the current units, as a vector in scaled coordinate points


ActionUnits_UnitsName

public java.lang.String ActionUnits_UnitsName()
Exports the current units name


CustomFunction

public void CustomFunction(java.lang.String command)

OpenDrawingWithRedline

public void OpenDrawingWithRedline(java.lang.String Url)
Opens a drawing with a redline

Parameters:
Url - string expression with the name of the dwf file, use http:// or file:/

GetFrame

public void GetFrame(java.lang.String name)
Get the frame associated with a given file

Parameters:
name - the name of the file from the parameter list

SearchText

public int SearchText(java.lang.String searchText,
                      java.lang.String scaleString)
Searches and zoom in on a text object

Parameters:
searchText - the seach sting object
scaleString - zoomfactor to use in zooming in on search string

SetAppletParameter

public void SetAppletParameter(java.lang.String param,
                               java.lang.String value)
Sets the applet parameters dynamically

Parameters:
param - name of the applet parameter
value - the value of the parameter

SetStatusStingJS

public void SetStatusStingJS(java.lang.String status)
Status message for JS methods

Parameters:
status - - string message

SetMaxCountJS

public void SetMaxCountJS(int count)
max click count for VQ JS method

Parameters:
count - - click counter

GetObjectNode_org

public void GetObjectNode_org(java.awt.Event evt)
Private method


Redraw

public void Redraw()
Redraws the canvas, similar to the Java asynchronious call to repaint()


RepaintCanvas

public void RepaintCanvas()
Redraws the canvas, similar to the Java asynchronious call to repaint()


UpdateCanvas

public boolean UpdateCanvas(boolean wait)
Updates the canvas, similar to the Java call to update(g), if the paint method is free, update(g) will will execute paint(g)

Parameters:
boolean, - true if wait for paint to be free, false to check if paint is free and abort if occupied
Returns:
true if paint(g) is free to be exectured, false otherwise

UpdateCanvas

public boolean UpdateCanvas()
Updates the canvas, similar to the Java call to update(g), if the paint method is free, update(g) will will execute paint(g)

Returns:
true if paint(g) is free to be exectured, false otherwise

ResetCurrentObjectNode

public void ResetCurrentObjectNode()
Private method


DrawTooltip

public void DrawTooltip(java.lang.String name,
                        java.awt.Event evt)
Private method


GetObjectOnMouseOver

public WidgetObjectNode GetObjectOnMouseOver(java.awt.Event evt)
Private method


SetJavascriptCalled

public void SetJavascriptCalled(boolean flag)
Tell CADViewer that a Javascript method has been called (development purposes)


GetJavascriptCalled

public boolean GetJavascriptCalled()
Ask CADViewer if a Javascript method has been called (development purposes)


GetBackgroundColor

public java.awt.Color GetBackgroundColor()
Get the current background color; the method returns a color object


SetBackgroundColor

public void SetBackgroundColor(int r,
                               int g,
                               int b)
Set the current background color

Parameters:
r - red component, 1-255
g - green component, 1-255
b - blue component, 1-255

ChangeObjectNodeColor

public void ChangeObjectNodeColor(int objectNode,
                                  java.awt.Color c,
                                  int flag)
Change the color of an Object Node

Parameters:
objectNode - the number of the object node in the list of Object Nodes
c - the color of the object node
flag - 0: redraw all 1: draw one object only

ChangeObjectNodeColor

public void ChangeObjectNodeColor(int objectNode,
                                  int r,
                                  int g,
                                  int b,
                                  int flag)
Change the color of an Object Node

Parameters:
objectNode - the number of the object node in the list of Object Nodes
r - red component, 1-255
g - green component, 1-255
b - blue component, 1-255
flag - 0: redraw all 1: draw one object only

DrawOneObject

public void DrawOneObject(WidgetObjectNode w)
Private method


GetObjectNodeList

public java.util.Vector GetObjectNodeList()
Returns in a vector the list of all Object Nodes and their graphical content as defined in the DWF drawing


GetObjectNodeList

public java.util.Vector GetObjectNodeList(int id)
Returns in a vector the graphical objects corresponding to a specific Object Node

Parameters:
id - the node number

GetObjectNodeListOnLayer

public java.util.Vector GetObjectNodeListOnLayer(java.lang.String layerName)
Returns in a vector the graphical objects corresponding to a specific Layer

Parameters:
id - the node number

GetObjectNodeAmount

public int GetObjectNodeAmount()
Returns the amount of Object Nodes in the DWF drawing


GetObjectNodeListPipe

public java.lang.String GetObjectNodeListPipe(int id)
Returns in a string the graphical objects corresponding to a specific Object Node

Parameters:
id - the object node number

GetObjectNodeListPipe

public java.lang.String GetObjectNodeListPipe()
Returns in a string the list of all Object Nodes and their graphical content as defined in the DWF drawing


GetObjectNodeAttributes

public java.util.Vector GetObjectNodeAttributes(int id)
Returns in a vector all attributes associated with a given Object Node

Parameters:
id - the object node number

GetAllObjectNodeAttributes

public java.util.Vector GetAllObjectNodeAttributes()
Returns in a vector all attributes for all nodes


GetObjectNodeText

public java.util.Vector GetObjectNodeText(int id)
Returns in a vector all text associated with a given Object Node

Parameters:
id - the object node number

GetAllObjectNodeText

public java.util.Vector GetAllObjectNodeText()
Returns in a vector all text for all nodes


ReturnObjectNodeTextId

public int ReturnObjectNodeTextId(java.lang.String text_str)
Returns in a vector the number of an Object Node that contains a specific text string

Parameters:
text_str - the text string to search for inside object nodes

ShowOneObjectNode

public void ShowOneObjectNode(int id,
                              int flag)
Display an Object Node

Parameters:
id - the object node number to display
flag - 0: redraw all 1: draw one object only

HideOneObjectNode

public void HideOneObjectNode(int id,
                              int flag)
Hide an Object Node

Parameters:
id - the object node number to hide
flag - 0: redraw all 1: draw one object only

ShowHideOneObjectNode

public void ShowHideOneObjectNode(int id,
                                  boolean flag,
                                  int redraw)
Show or Hide an Object Node

Parameters:
id - the object node number to show or hide
flag - true to show, false to hide
redraw - 0: redraw all 1: draw one object only

CleanVectors

public void CleanVectors()
Clean system vectors


ShowAllObjectNodes

public void ShowAllObjectNodes()
Display all object nodes


HideAllObjectNodes

public void HideAllObjectNodes()
Hide all object nodes


GetLoadStart

public boolean GetLoadStart()
Get the status from CADViewer if a file has started to load or not. Note that a call back Java Script method can be defined through the parameter:


GetLoadDone

public boolean GetLoadDone()
Get the status from CADViewer if a file is loaded or not. Note that a call back Java Script method can be defined through the parameter:


WaitForLoadDone

public boolean WaitForLoadDone()
Wait for LoadDone to finish. Note that a call back Java Script method can be defined through the parameter:


WaitForRedraw

public boolean WaitForRedraw()
Wait for Redraw to finish.


FindTempDir

public java.lang.String FindTempDir()
Finds and returns a user specific temporary directory on the client.

Returns:
a sting expression

SaveAndConvertDwfWithAPIModifications

public boolean SaveAndConvertDwfWithAPIModifications(java.lang.String fileName,
                                                     boolean blackwhite,
                                                     boolean whitebackground,
                                                     boolean landscapeportrait)
Export screen view as a DWF to the server, if parameter is set: On the server it is converted based on the settings in: and converted image is placed in:

Parameters:
fileName - filename to use on server, extension on server is generated based on conversion parameter format
blackwhite - force output in black-white
whitebackground - force background to white
landscapeportrait - true for landscape, false for portrait
Returns:
true if export is successful and false if export fails

SaveDwfWithAPIModifications

public boolean SaveDwfWithAPIModifications(java.lang.String fileName)
Export screen view as a DWF to the server, if parameter is set:

Parameters:
fileName - filename to use on server
Returns:
true if export is successful and false if export fails

SaveDwfWithAPIModifications

public boolean SaveDwfWithAPIModifications(java.lang.String fileName,
                                           boolean saveNamedLayersOnly,
                                           java.lang.String namedLayers,
                                           boolean saveOffLayers)
Export screen view as a DWF to the server, if parameter is set:

Parameters:
fileName - filename to use on server
saveNamedLayersOnly - flag to tell if a list of layers to be saved only
namedLayers - list of files to be saved
saveOffLayers - falg to tell if off layers are to be saved, alternatively they are not saved
Returns:
true if export is successful and false if export fails

SaveDwfWithAPIModifications

public boolean SaveDwfWithAPIModifications(java.lang.String cgi_parameter,
                                           java.lang.String fileName_location,
                                           java.lang.String filepath_parameter,
                                           boolean saveNamedLayersOnly,
                                           java.lang.String namedLayers,
                                           boolean saveOffLayers)
Export screen view as a DWF to the server, if parameter is set:

Parameters:
cgi_parameter - Url for the cgi/servlet on server
fileName_parameter - filename and extension for to use on server
filepath_parameter - path to use on server for second conversion call, after file is saved on server
saveNamedLayersOnly - flag to tell if a list of layers to be saved only
namedLayers - list of files to be saved
saveOffLayers - falg to tell if off layers are to be saved, alternatively they are not saved
Returns:
true if export is successful and false if export fails

GetDwfWithAPIModifications

public java.lang.String GetDwfWithAPIModifications(boolean saveNamedLayersOnly,
                                                   java.lang.String namedLayers,
                                                   boolean saveOffLayers)
Capture screen view as a DWF:

Parameters:
saveNamedLayersOnly - flag to tell if a list of layers to be saved only
namedLayers - list of files to be saved
saveOffLayers - falg to tell if off layers are to be saved, alternatively they are not saved
Returns:
String containing a DWF with screen view

CreateTargetSymbol

public boolean CreateTargetSymbol(java.lang.String targetID,
                                  java.lang.String targetLayerName,
                                  java.lang.String templateLayer)
Create a Target symbol:

Parameters:
targetID: - the target ID name that will appear in target symbol
targetLayerName: - name of the layer where the Target will be placed
templateLayer: - name of the layer where the template target resides
Returns:
true if create target is successful and false if create target fails

screenToJpeg

public int screenToJpeg(java.lang.String fileName)
Export screen display to a jpeg image on the server

Parameters:
filepath - the jpeg output file path
Returns:
1 if export is successful and 0 if export fails

screenToJpegLocal

public int screenToJpegLocal(java.lang.String fileName)
Export screen display to a local jpg file

Parameters:
filepath - the jpeg output file path
Returns:
1 if export is successful and 0 if export fails

screenToPngLocal

public int screenToPngLocal(java.lang.String fileName)
Export screen display to a local png file

Parameters:
filepath - the jpeg output file path
Returns:
1 if export is successful and 0 if export fails

screenToJpeg

public byte[] screenToJpeg()
Export screen display to a jpg image and output to a byte array

Returns:
byte array representation of the jpeg

screenToJpegUserSizeToServer

public void screenToJpegUserSizeToServer(int width,
                                         int height,
                                         java.lang.String fileLocation)
Export screen display to a jpg image and saves it on the server The size of the jpg image is user controlled The location of the server side Script or Servlet is read in from the parameter: save_screenshot_to_url

Parameters:
width - of the output image
height - of the output image
String - the server side file lcation of the image including filename.ext

screenToJpegUserSize

public java.lang.String screenToJpegUserSize(int width,
                                             int height)
Export screen display to a jpg image and saves it locally, returns the location of the file. The size of the jpg image is user controlled

Parameters:
width - of the output image
height - of the output image
Returns:
String the location of the image

screenToJpegUserSizeAsByteArray

public byte[] screenToJpegUserSizeAsByteArray(int width,
                                              int height)
Export screen display to a jpg image and output to a byte array, the size of the jpg image is user controlled

Parameters:
width - of the output image
height - of the output image
Returns:
byte array representation of the jpeg

screenToImage

public java.awt.Image screenToImage()
Export screen display to an image

Returns:
image representation of the screen

getPSICVLicenseKey

public java.lang.String getPSICVLicenseKey()
                                    throws java.lang.Exception
Application specific cryptographic classes - no public use

Throws:
java.lang.Exception

setPSICVLicenseResponse

public void setPSICVLicenseResponse(java.lang.String encrypted)
Application specific cryptographic classes - no public use


getIsLicensed

public boolean getIsLicensed()
Application specific cryptographic classes - no public use


getMessage

public java.lang.String getMessage()
Application specific cryptographic classes - no public use


getData

public byte[] getData(java.net.URL url)
Get byte array of data from a drawing via its URL


OpenFile_

public void OpenFile_(java.net.URL url)
Display a new drawing

Parameters:
url - an url of a DWF file

OpenFile

public void OpenFile(byte[] data)
Display a new drawing

Parameters:
data - the raw DWF data

OpenFile

public void OpenFile(java.net.URL url)

AddActionListener

public void AddActionListener(RemoteListener listener)

addHyperlinkListener

public void addHyperlinkListener(HyperlinkListener listener)
Add a hyperlink listener to CADViewer component The listener will be called once the user triggers a hyperlink in the diagram. CADViewer component should call "hyperlinkTriggered(String url)" once the user activates a hyperlink and pass the textual representation of the link to the method.

Parameters:
listener - a class that implements HyperlinkListener interface
See Also:
HyperlinkListener

addRedlineListener

public void addRedlineListener(RedlineListener listener)
Add a redline listener to CADViewer component

Parameters:
listener - a class that implements RedlineListener interface
See Also:
RedlineListener

GetObjectNodeColor

public java.awt.Color GetObjectNodeColor(int objectNode)

GetObjectNode

public int GetObjectNode(java.awt.Event evt)

SetViewerApplet

public void SetViewerApplet()

SetCVSecurityManager

public void SetCVSecurityManager()

RetrieveUrlPageViewNamesOnCurrentPage

public java.lang.String RetrieveUrlPageViewNamesOnCurrentPage()
Retrive all hyperlinks Page and View names within the current page of drawing

Returns:
String list with all hyperlink Pages and Views the list is arranged in triplets: page=Page, view=View, text=HighlightText; page=Page, view=View, text=HighlightText;

RetrieveTextAndCoordinatesOnCurrentPage

public java.lang.String RetrieveTextAndCoordinatesOnCurrentPage()
Retrive all Text objects with their coordinates within the current page of drawing

Returns:
String list with all Text objects with their coordinate sets the list is arranged in triplets: text=textobject, x=xcord, y=ycord=; text=textobject, x=xcord, y=ycord;

SetPageView

public void SetPageView(java.lang.String page,
                        java.lang.String view)
Opens a given Page in the DWF with a set View

Parameters:
page - Page name
view - View name

SetRedlineStickyNoteScaleFactor

public void SetRedlineStickyNoteScaleFactor(double factor)
Controls the scale factor for the redline moveable notes default is 1.0, so a value of 10.0 will magnify the moveable redline box with a factor 10.

Parameters:
factor - scale

MakeRedlineStickyNote

public void MakeRedlineStickyNote()
Call MakeRedlineStickyNote


LayerOffInteractive

public void LayerOffInteractive(java.lang.String layerGroup)
Call LayerOffInteractive

Parameters:
layerGroup - a string expression that the layer must contain in order for the layer to be selectable

LayerOffInteractive

public void LayerOffInteractive(java.lang.String layerGroup,
                                java.lang.String excludeLayers)
Call LayerOffInteractive

Parameters:
layerGroup - a string expression that the layer must contain in order for the layer to be selectable
excludeLayers - , a group of layers that cannot be selected

LayerOffInteractive_ReleaseRemotely

public void LayerOffInteractive_ReleaseRemotely()

TurnOffLinkShapes

public void TurnOffLinkShapes()

LinkShapes

public void LinkShapes(java.lang.String layerGroup,
                       java.lang.String excludeLayers,
                       boolean multipleExecution)

SetLinkShapesValues

public void SetLinkShapesValues(int alpha_value,
                                int polygon_order,
                                int clean_polygon_space,
                                int unselect_no_link_r,
                                int unselect_no_link_g,
                                int unselect_no_link_b,
                                int unselect_link_r,
                                int unselect_link_g,
                                int unselect_link_b,
                                int select_no_link_r,
                                int select_no_link_g,
                                int select_no_link_b,
                                int select_link_r,
                                int select_link_g,
                                int select_link_b)

LinkShape

public void LinkShape(java.lang.String layer,
                      java.lang.String javaScriptMethodName,
                      java.lang.String userFriendlyName,
                      int r,
                      int g,
                      int b,
                      int alpha,
                      int polygon_order,
                      int clean_polygon_space)

LinkShape

public void LinkShape(java.lang.String layer,
                      java.lang.String javaScriptMethodName,
                      java.lang.String userFriendlyName,
                      int r,
                      int g,
                      int b,
                      int alpha,
                      int polygon_order)

LinkShape

public void LinkShape(java.lang.String layer,
                      java.lang.String javaScriptMethodName,
                      java.lang.String userFriendlyName,
                      int r,
                      int g,
                      int b,
                      int alpha)

LinkShape

public void LinkShape(java.lang.String layer,
                      java.lang.String javaScriptMethodName,
                      java.lang.String userFriendlyName,
                      int r,
                      int g,
                      int b)

UnlinkShapes

public void UnlinkShapes(java.lang.String layerGroup)