|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
java.applet.Applet
ViewerApplet
public class ViewerApplet
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 |
---|
public static java.lang.String copyright
public java.lang.String fileName
public java.lang.String fileType
public APIModuleAdapter apiModuleAdapter
Constructor Detail |
---|
public ViewerApplet()
Method Detail |
---|
public void stop()
stop
in class java.applet.Applet
public java.awt.Panel GetViewerPanel()
public void start()
start
in class java.applet.Applet
public void ResetStickyNotesAndRedNotes()
public ViewerControls GetViewerControls()
public java.net.URL GetFileURL()
public java.net.URL GetCurrentURL()
public java.lang.String GetAllWidgetsWithUrl()
public java.lang.String GetAllWidgetsWithUrlObjectNames()
public java.lang.String GetAllUrlScriptObjectNames()
public double getX_DWG()
public double getY_DWG()
public double getUnitsX()
public double getUnitsY()
public int getX()
getX
in class java.awt.Component
public int getY()
getY
in class java.awt.Component
public int getViewWidth_DWG()
public int getViewHeight_DWG()
public int getViewWidth()
public int getViewHeight()
public int getCenterX()
public int getCenterY()
public void centerViewOn_DWG(double x, double y, double width, double height)
public boolean APIcommandCurrentlyActive()
none,
- returns true if command is activepublic void ResetAPIcommand()
public void SetStickyNoteUser(java.lang.String userName)
public void SetStickyNoteUserID(java.lang.String id)
public void SetStickyNoteAssetID(java.lang.String id)
public void centerViewOn_DWG(int x, int y, int width, int height)
public int getWorldWindowX()
public int getWorldWindowY()
public int getWorldWindowWidth()
public int getWorldWindowHeight()
public void centerViewOnWorldWindow(int x, int y, int width, int height)
public void CenterViewport_Percentage(int x_percentage, int y_percentage, int width_percentage, int height_percentage)
public void centerViewOn(int x, int y, int width, int height)
public void centerViewOn_DWG(double zoomScale, double x, double y)
zoomScale
- zoom scale in percentagex,y
- location where the drawing is centeredpublic void centerViewOn_DWG(double zoomScale, int x, int y)
zoomScale
- zoom scale in percentagex,y
- location where the drawing is centeredpublic void centerViewOn(double zoomScale, int x, int y)
zoomScale
- zoom scale in percentagex,y
- location where the drawing is centeredpublic int x_DWGtoDWF(double x, double y)
x,y
- location in DWG coordinates
public int y_DWGtoDWF(double x, double y)
x,y
- location in DWG coordinates
public int[] xy_DWGtoDWF(double x, double y)
x,y
- location in DWG coordinates
public void OpenFile(byte[] fileArray, java.lang.String fileName)
fileArray
- byte array containing the filefileName
- name of filepublic void ResetAll()
public void OpenFile(java.lang.String fileName)
fileName
- name of file to be opened, use protocols http:// or file:/public void OpenFilesOverlaid(java.lang.String fileName1, java.lang.String fileName2)
public void OpenOverlayFile(java.lang.String fileName, boolean sendtoback)
public void Set_polylinesWithUrl_counter()
public void OpenOverlayFile(java.lang.String file, boolean sendtoback, boolean dummy)
public void OpenOverlayFile(java.lang.String file, boolean sendtoback, boolean dummy, int clean_polygon_space)
public void PrintJsApi(java.lang.String fileName, java.lang.String orientation)
fileName
- name of file to be opened, use protocols http:// or file:/orientation
- Landscape or Portraitpublic void CheckDefinedCompressedData(byte[] array)
fileArray
- byte array containing the filepublic boolean AddDotMarker(int x, int y, int rad, int r, int g, int b, java.lang.String layerName)
x
- x-cordiate in database coordinatesy
- y-cordiate in database coordinatesrad
- radius in database coordinatesr
- color r componentg
- color g componentb
- color b componentlayerName
- name of the layer the dot is placedpublic boolean AddDotMarker(int x, int y, int rad, int r, int g, int b, java.lang.String layerName, boolean toBack)
x
- x-cordiate in database coordinatesy
- y-cordiate in database coordinatesrad
- radius in database coordinatesr
- color r componentg
- color g componentb
- color b componentlayerName
- name of the layer the dot is placedtoBack
- true to send marker to back, false to keep it on toppublic boolean RemoveDotMarker(int x, int y, int r, java.lang.String layerName)
x
- x-cordiate in database coordinatesy
- y-cordiate in database coordinatesr
- radius in database coordinateslayerName
- name of the layer the dot is placedpublic boolean AddTextMarker(int x, int y, int h, int a, java.lang.String str, int r, int g, int b, java.lang.String layerName)
x
- x-cordiate in database coordinatesy
- y-cordiate in database coordinatesh
- height in database coordinatesa
- rotation angle of text in degreesstr
- text object as a sting expressionr
- color r componentg
- color g componentb
- color b componentlayerName
- name of the layer where the text is placedpublic 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)
x
- x-cordiate in database coordinatesy
- y-cordiate in database coordinatesh
- height in database coordinatesa
- rotation angle of text in degreesstr
- text object as a sting expressionr
- color r componentg
- color g componentb
- color b componentlayerName
- name of the layer where the text is placedtoBack
- true to send marker to back, false to keep it on toppublic void ZoomIn()
public void ZoomOut()
public void Zoom(double zoomfactor)
zoomfactor
- zoom factor in absolute value, current viewport is 100% = 1.0public void ZoomWindow()
public void ZoomWindow(boolean single_only)
single_only
- parameter to control if only one window dragging is allowedpublic void ZoomRect()
public void ZoomExtends()
public void ZoomExtents()
public void ZoomExtents(java.lang.String layerList)
layerList
- list of the layers which extents are calcualted, layers are ; separatedpublic void ZoomExtents(java.lang.String layerList, int zoomfactor)
layerList
- list of the layers which extents are calcualtedzoomfactor
- zoomfactor in % based on the extents zoomwindowpublic int[] DrawingExtents()
public int[] CurrentViewport()
public void ZoomWindow(int ax, int ay, int width, int height, int zoomfactor)
ax
- lower left xay
- lower left yax
- widthay
- heightzoomfactor
- zoomfactor in % based on the extents zoomwindowpublic void ZoomSmoothlyToExtents(java.lang.String layerList, int zoomfactor, int steps)
layerList
- list of the layers which extents are calcualtedzoomfactor
- zoomfactor in % based on the extents zoomwindowsteps
- number of distinct views in the zoom processpublic boolean KeyEvent(java.awt.Event evt)
public boolean APIKeyCodeEvent(int keyCode)
int
- the value of event.keyCodepublic void keyPressed(java.awt.event.KeyEvent key)
keyPressed
in interface java.awt.event.KeyListener
public void keyReleased(java.awt.event.KeyEvent key)
keyReleased
in interface java.awt.event.KeyListener
public void keyTyped(java.awt.event.KeyEvent key)
keyTyped
in interface java.awt.event.KeyListener
public void AddKeyListener(java.awt.event.KeyListener listener)
public void PanUp()
public void PanDown()
public void PanLeft()
public void PanRight()
public void RedrawCanvas()
public void Pan()
public void ZoomInOut()
public void RedlinesOnOff()
public void RedlinesOn()
public void SaveStickyNotesRedlines()
public boolean GetExternalPrintDone()
public void SetExternalPrintDone(boolean status)
public void Print()
public void Print(boolean forceWhiteBackground, boolean forceBlackWhite, boolean printRedlines, boolean portraitLandscape)
forceWhiteBackground
- boolean, true to force background to white, false otherwiseforceBlackWhite
- boolean,true to set colors to black and white only, false otherwiseprintRedlines
- boolean,true if redlines shall be printed, false otherwiseportraitLandscape
- boolean,true if portrait, false if landscapepublic void PrintDirect(java.lang.Boolean forceWhiteBackground, java.lang.Boolean forceBlackWhite, java.lang.Boolean printRedlines, java.lang.Boolean portraitLandscape)
forceWhiteBackground
- Boolean, true to force background to white, false otherwiseforceBlackWhite
- Boolean,true to set colors to black and white only, false otherwiseprintRedlines
- Boolean, true if redlines shall be printed, false otherwiseportraitLandscape
- Boolean,true if portrait, false if landscapepublic void CVwait(int n)
public void OpenFile()
public void OpenFile_()
public int CopyFile()
public int CopyFile_()
public int CopyFile(java.lang.String url)
url
- name of the new name of the file, use protocols http:// and file:/public void UrlOnOff()
public void UrlOnOff(boolean on)
on
- hyperlink statuspublic void UrlOnOffColorStatic(java.lang.String rr, java.lang.String gg, java.lang.String bb)
rr
- red component, 0-255gg
- green component, 0-255bb
- blue component, 0-255public void UrlOnOffColorDynamic(java.lang.String rr, java.lang.String gg, java.lang.String bb)
rr
- red component, 0-255gg
- green component, 0-255bb
- blue component, 0-255public void UrlOnOffStatic(boolean onoff)
onoff
- on/off statuspublic void GetViews()
public java.lang.String GetViewsList()
public void GetPages()
public int GetPageNumber()
public void SetPageNumber(int index)
index
- page numberpublic java.util.Vector GetMultiPagesArray()
public java.util.Vector GetMultiPagesNames()
public void Measurement()
public void MeasurementScale()
public void MeasurementCalibrate()
public int TurnALayerOn(java.lang.String layerName)
layerName
- name of layerpublic void OnLayers(java.lang.String onlayers)
layerList
- list of the layers, layers are ; separatedpublic void OffLayers(java.lang.String offlayers)
layerList
- list of the layers, layers are ; separatedpublic java.lang.String RetrieveOnLayers()
public java.lang.String RetrieveOffLayers()
public void AllLayersOff()
public void AllLayersOn()
public boolean IsLayerOn(java.lang.String layer)
layer
- the layer to be checked
public boolean IsLayerOff(java.lang.String layer)
layer
- the layer to be checked
public void ToggleLayer(java.lang.String layer)
layer
- the layer to be toggledpublic void HideLayerSetInLayerCommand(java.lang.String prefix)
prefix
- layer prefixpublic void ResetLayerSetInLayerCommand()
public int ConvertHexStringtoInt(java.lang.String str)
public void SetColorLayers(java.lang.String listLayers, java.lang.String rr, java.lang.String gg, java.lang.String bb)
layerList
- list of the layers, layers are ; separatedrr
- red component, 0-255gg
- green component, 0-255bb
- blue component, 0-255public void ColorLayers(java.lang.String listLayers, java.lang.String r, java.lang.String g, java.lang.String b)
layerList
- list of the layers, layers are ; separatedrr
- red component, in hexgg
- green component, in hexbb
- blue component, in hexpublic void SetLayerColor(java.lang.String listLayers, java.lang.String rr, java.lang.String gg, java.lang.String bb)
layerList
- list of the layers, layers are ; separatedrr
- red component, 0-255gg
- green component, 0-255bb
- blue component, 0-255public void ChangeTextOnLayer(java.lang.String layerList, java.lang.String originalText, java.lang.String newText)
layerList
- list of the layers, layers are ; separatedoriginalText
- the original text stringnewText
- the new text stringpublic void SetTextOnLayer(java.lang.String layerList, int textNodeIndex, java.lang.String newText)
layerList
- list of the layers, layers are ; separatedtextNodeIndex
- the index of the text object on a layer to be changednewText
- the new text stringpublic void SetTextOnLayer(java.lang.String layerList, int textNodeIndex, java.lang.String newText, boolean redraw)
layerList
- list of the layers, layers are ; separatedtextNodeIndex
- the index of the text object on a layer to be changednewText
- the new text stringredraw
- set redraw on/offpublic void SetTextOnLayer(java.lang.String layerList, int textNodeIndex, java.lang.String newText, boolean redraw, int r, int g, int b)
layerList
- list of the layers, layers are ; separatedtextNodeIndex
- the index of the text object on a layer to be changednewText
- the new text stringredraw
- set redraw on/offr,g,b
- sets the color code of the text objectpublic void SetTextOnLayer(java.lang.String layerList, int textNodeIndex, java.lang.String newText, boolean redraw, int r, int g, int b, java.lang.String font)
layerList
- list of the layers, layers are ; separatedtextNodeIndex
- the index of the text object on a layer to be changednewText
- the new text stringredraw
- set redraw on/offr,g,b
- sets the color code of the text objectfont
- sets the font of the text objectpublic void SetAllTextColorFontOnLayer(java.lang.String layerList, boolean redraw, int r, int g, int b, java.lang.String font)
layerList
- list of the layers, layers are ; separatedredraw
- set redraw on/offr,g,b
- sets the color code of the text objectsfont
- sets the font of the text objectspublic void FillPolylineOnLayer(java.lang.String layerList, int polygonNodeIndex, int r, int g, int b)
layerList
- list of the layers, layers are ; separatedpolygonNodeIndex
- the index of the polygon object on a layer to be changedr
- red component, 0-255g
- green component, 0-255b
- blue component, 0-255public void FillPolylineOnLayer(java.lang.String layerList, int polygonNodeIndex, int r, int g, int b, int alpha)
layerList
- list of the layers, layers are ; separatedpolygonNodeIndex
- the index of the polygon object on a layer to be changedr
- red component, 0-255g
- green component, 0-255b
- blue component, 0-255alpha
- component, 0-255public void FillPolylineOnLayer(java.lang.String layerList, int polygonNodeIndex, int r, int g, int b, int alpha, int polygon_order)
layerList
- list of the layers, layers are ; separatedpolygonNodeIndex
- the index of the polygon object on a layer to be changedr
- red component, 0-255g
- green component, 0-255b
- blue component, 0-255alpha
- component, 0-255polygon
- sort order, integer above zeropublic void FillPolylineOnLayer(java.lang.String layerList, int polygonNodeIndex, int r, int g, int b, int alpha, int polygon_order, int clean_polygon_space)
layerList
- list of the layers, layers are ; separatedpolygonNodeIndex
- the index of the polygon object on a layer to be changedr
- red component, 0-255g
- green component, 0-255b
- blue component, 0-255alpha
- component, 0-255polygon_order
- polygon sort order, integer above zeroclean_polygonspace
- 1 if cleaning of file, 0 otherwisepublic void SetUrlAlternateText(int UrlId, java.lang.String alternateText)
UrlId,
- the Id of the UrlalternateText,
- the highlight textpublic void SetUrlAlternateText(java.lang.String urlsubstring, java.lang.String alternateText)
object,
- a substring of the hyperlinkalternateText,
- the highlight textpublic void SetUrlPolygonColor(int UrlId, int r, int g, int b)
UrlId,
- the Url Id numberr
- red component, 0-255g
- green component, 0-255b
- blue component, 0-255public void SetUrlPolygonColor(java.lang.String urlsubstring, int r, int g, int b)
UrlId,
- the Url Sring or substringr
- red component, 0-255g
- green component, 0-255b
- blue component, 0-255public void RemoveUrlPolygonColor(int UrlId)
UrlId,
- the Url Id numberpublic void RemoveUrlPolygonColor(java.lang.String urlsubstring)
String,
- a substring in the Url expressionpublic void FillAllPolylinesOnLayer(java.lang.String layerList, int r, int g, int b)
layerList
- list of the layers, layers are ; separatedr
- red component, 0-255g
- green component, 0-255b
- blue component, 0-255public void FillAllPolylinesOnLayer(java.lang.String layerList, int r, int g, int b, boolean redraw)
layerList
- list of the layers, layers are ; separatedr
- red component, 0-255g
- green component, 0-255b
- blue component, 0-255redraw
- booleanpublic void RemoveFillAllPolylinesOnLayer(java.lang.String layerList)
public void RemoveFillAllPolylinesOnLayer(java.lang.String layerList, boolean redraw)
public void BWBackground()
public void TextSearch()
public void ObjectSearch()
public void Rotate(java.lang.String type)
type
- use parameters rotate, mirrorX, mirrorY, resetpublic void ShowAbout()
public void ShowHelp()
public int RedlineSaveFile(java.lang.String url, java.lang.String layerName)
url
- redline file name, use protocols http:// or file:/layerName
- name of the redline layerpublic int RedlineSaveFile_2ndURL(java.lang.String url)
url
- redline file name, use protocols http:// or file:/public int RedlineSaveFile()
public int RedlineOpenFile()
public int RedlineOpenFile_()
public int RedlineOpenFile(java.lang.String fileName)
url
- redline file name, use protocols http:// or file:/public int RedlineOpenFile(java.lang.String fileName, boolean ReadOnly)
url
- redline file name, use protocols http:// or file:/ReadOnly
- readonly statuspublic void RedlineSaveFile_()
public int RedlineSaveFile_(java.lang.String url)
url
- redline file name, use protocols http:// or file:/public int RedlineSaveFile(java.lang.String fileName)
url
- redline file name, use protocols http:// or file:/public void ChangeBackground()
public void ShowLayers()
public void GetPreviousScreen()
public void GetNextScreen()
public void SetWaterMark(java.lang.String waterMark)
waterMark
- string expressionpublic void SetWaterMarkColor(int r, int g, int b)
r
- red componentg
- green componentb
- blue componentpublic void SetWaterMarkFontSize(int size)
size
- font size in pixelspublic void SetWaterMarkLocation_percentage(int location)
location
- value between 0 and 100public void TurnPreloadedRedlinesOn()
public void RedlineSelect()
public void RedlineLine()
public void RedlineRectangle()
public void RedlineRectangle_AddHyperlink()
public void RedlineRectangle_AddHyperlink_ReleaseRemotely()
public void RedlineCircle()
public void RedlineTriangle()
public void RedlineEllipse()
public void RedlineHexagon()
public void RedlineCloud()
public void RedlinePolyline()
public void RedlinePolyline_AddHyperlink()
public void RedlinePolyline_AddHyperlink_ReleaseRemotely()
public void RedlinePolylineArrow()
public void RedlineFreehand()
public void RedlineText()
public void RedlineHighlight()
public void RedlineSelectObject()
public void RedlineURL()
public void RedlineURL_Url(java.lang.String Url)
Url
- hyperlink to be displayed in RedlineUrl menupublic void RedlineURL_Url_tooltip(java.lang.String Url_tooltip)
Url
- hyperlink tooltip to be displayed in RedlineURL menupublic void RedlineURL_layerName(java.lang.String Url_layerName)
Url
- layer name to be displayed in RedlineURL menupublic void RedlineURL_selectLastDrawnRedline(boolean flag)
flag
- true to use last drawn redline, false to select redline via selection toolpublic void RedlineThickness()
public void RedlineDelete()
public void RedlineDeleteAll()
public void RedlineUndo()
public void RedlineRedo()
public boolean GetNamedView(java.lang.String namedView)
namedView
- name of the view
Returns false if the Named View does not existpublic void Collaborator()
namedView
- name of the viewpublic void GetFrame()
public void RedlineColor(java.lang.String color)
color
- string containing (r,g,b) of redlinepublic void RedlineThickness(int thickness)
thickness
- sets the thickness of the redline in pixelspublic void CountingOnOff()
public void StartStopCounter()
public void DeleteCount()
public void RedoCount()
public void UndoCount()
public java.util.Vector ActionUnits_screenCoordPoints()
public java.util.Vector ActionUnits_scaledCoordPoints()
public java.lang.String ActionUnits_UnitsName()
public void CustomFunction(java.lang.String command)
public void OpenDrawingWithRedline(java.lang.String Url)
Url
- string expression with the name of the dwf file, use http:// or file:/public void GetFrame(java.lang.String name)
name
- the name of the file from the parameter listpublic int SearchText(java.lang.String searchText, java.lang.String scaleString)
searchText
- the seach sting objectscaleString
- zoomfactor to use in zooming in on search stringpublic void SetAppletParameter(java.lang.String param, java.lang.String value)
param
- name of the applet parametervalue
- the value of the parameterpublic void SetStatusStingJS(java.lang.String status)
status
- - string messagepublic void SetMaxCountJS(int count)
count
- - click counterpublic void GetObjectNode_org(java.awt.Event evt)
public void Redraw()
public void RepaintCanvas()
public boolean UpdateCanvas(boolean wait)
boolean,
- true if wait for paint to be free, false to check if paint is free and abort if occupied
public boolean UpdateCanvas()
public void ResetCurrentObjectNode()
public void DrawTooltip(java.lang.String name, java.awt.Event evt)
public WidgetObjectNode GetObjectOnMouseOver(java.awt.Event evt)
public void SetJavascriptCalled(boolean flag)
public boolean GetJavascriptCalled()
public java.awt.Color GetBackgroundColor()
public void SetBackgroundColor(int r, int g, int b)
r
- red component, 1-255g
- green component, 1-255b
- blue component, 1-255public void ChangeObjectNodeColor(int objectNode, java.awt.Color c, int flag)
objectNode
- the number of the object node in the list of Object Nodesc
- the color of the object nodeflag
- 0: redraw all 1: draw one object onlypublic void ChangeObjectNodeColor(int objectNode, int r, int g, int b, int flag)
objectNode
- the number of the object node in the list of Object Nodesr
- red component, 1-255g
- green component, 1-255b
- blue component, 1-255flag
- 0: redraw all 1: draw one object onlypublic void DrawOneObject(WidgetObjectNode w)
public java.util.Vector GetObjectNodeList()
public java.util.Vector GetObjectNodeList(int id)
id
- the node numberpublic java.util.Vector GetObjectNodeListOnLayer(java.lang.String layerName)
id
- the node numberpublic int GetObjectNodeAmount()
public java.lang.String GetObjectNodeListPipe(int id)
id
- the object node numberpublic java.lang.String GetObjectNodeListPipe()
public java.util.Vector GetObjectNodeAttributes(int id)
id
- the object node numberpublic java.util.Vector GetAllObjectNodeAttributes()
public java.util.Vector GetObjectNodeText(int id)
id
- the object node numberpublic java.util.Vector GetAllObjectNodeText()
public int ReturnObjectNodeTextId(java.lang.String text_str)
text_str
- the text string to search for inside object nodespublic void ShowOneObjectNode(int id, int flag)
id
- the object node number to displayflag
- 0: redraw all 1: draw one object onlypublic void HideOneObjectNode(int id, int flag)
id
- the object node number to hideflag
- 0: redraw all 1: draw one object onlypublic void ShowHideOneObjectNode(int id, boolean flag, int redraw)
id
- the object node number to show or hideflag
- true to show, false to hideredraw
- 0: redraw all 1: draw one object onlypublic void CleanVectors()
public void ShowAllObjectNodes()
public void HideAllObjectNodes()
public boolean GetLoadStart()
public boolean GetLoadDone()
public boolean WaitForLoadDone()
public boolean WaitForRedraw()
public java.lang.String FindTempDir()
public boolean SaveAndConvertDwfWithAPIModifications(java.lang.String fileName, boolean blackwhite, boolean whitebackground, boolean landscapeportrait)
fileName
- filename to use on server, extension on server is generated based on conversion parameter formatblackwhite
- force output in black-whitewhitebackground
- force background to whitelandscapeportrait
- true for landscape, false for portrait
public boolean SaveDwfWithAPIModifications(java.lang.String fileName)
fileName
- filename to use on server
public boolean SaveDwfWithAPIModifications(java.lang.String fileName, boolean saveNamedLayersOnly, java.lang.String namedLayers, boolean saveOffLayers)
fileName
- filename to use on serversaveNamedLayersOnly
- flag to tell if a list of layers to be saved onlynamedLayers
- list of files to be savedsaveOffLayers
- falg to tell if off layers are to be saved, alternatively they are not saved
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)
cgi_parameter
- Url for the cgi/servlet on serverfileName_parameter
- filename and extension for to use on serverfilepath_parameter
- path to use on server for second conversion call, after file is saved on serversaveNamedLayersOnly
- flag to tell if a list of layers to be saved onlynamedLayers
- list of files to be savedsaveOffLayers
- falg to tell if off layers are to be saved, alternatively they are not saved
public java.lang.String GetDwfWithAPIModifications(boolean saveNamedLayersOnly, java.lang.String namedLayers, boolean saveOffLayers)
saveNamedLayersOnly
- flag to tell if a list of layers to be saved onlynamedLayers
- list of files to be savedsaveOffLayers
- falg to tell if off layers are to be saved, alternatively they are not saved
public boolean CreateTargetSymbol(java.lang.String targetID, java.lang.String targetLayerName, java.lang.String templateLayer)
targetID:
- the target ID name that will appear in target symboltargetLayerName:
- name of the layer where the Target will be placedtemplateLayer:
- name of the layer where the template target resides
public int screenToJpeg(java.lang.String fileName)
filepath
- the jpeg output file path
public int screenToJpegLocal(java.lang.String fileName)
filepath
- the jpeg output file path
public int screenToPngLocal(java.lang.String fileName)
filepath
- the jpeg output file path
public byte[] screenToJpeg()
public void screenToJpegUserSizeToServer(int width, int height, java.lang.String fileLocation)
width
- of the output imageheight
- of the output imageString
- the server side file lcation of the image including filename.extpublic java.lang.String screenToJpegUserSize(int width, int height)
width
- of the output imageheight
- of the output image
public byte[] screenToJpegUserSizeAsByteArray(int width, int height)
width
- of the output imageheight
- of the output image
public java.awt.Image screenToImage()
public java.lang.String getPSICVLicenseKey() throws java.lang.Exception
java.lang.Exception
public void setPSICVLicenseResponse(java.lang.String encrypted)
public boolean getIsLicensed()
public java.lang.String getMessage()
public byte[] getData(java.net.URL url)
public void OpenFile_(java.net.URL url)
url
- an url of a DWF filepublic void OpenFile(byte[] data)
data
- the raw DWF datapublic void OpenFile(java.net.URL url)
public void AddActionListener(RemoteListener listener)
public void addHyperlinkListener(HyperlinkListener listener)
listener
- a class that implements HyperlinkListener interfaceHyperlinkListener
public void addRedlineListener(RedlineListener listener)
listener
- a class that implements RedlineListener interfaceRedlineListener
public java.awt.Color GetObjectNodeColor(int objectNode)
public int GetObjectNode(java.awt.Event evt)
public void SetViewerApplet()
public void SetCVSecurityManager()
public java.lang.String RetrieveUrlPageViewNamesOnCurrentPage()
public java.lang.String RetrieveTextAndCoordinatesOnCurrentPage()
public void SetPageView(java.lang.String page, java.lang.String view)
page
- Page nameview
- View namepublic void SetRedlineStickyNoteScaleFactor(double factor)
factor
- scalepublic void MakeRedlineStickyNote()
public void LayerOffInteractive(java.lang.String layerGroup)
layerGroup
- a string expression that the layer must contain in order for the layer to be selectablepublic void LayerOffInteractive(java.lang.String layerGroup, java.lang.String excludeLayers)
layerGroup
- a string expression that the layer must contain in order for the layer to be selectableexcludeLayers
- , a group of layers that cannot be selectedpublic void LayerOffInteractive_ReleaseRemotely()
public void TurnOffLinkShapes()
public void LinkShapes(java.lang.String layerGroup, java.lang.String excludeLayers, boolean multipleExecution)
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)
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)
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)
public void LinkShape(java.lang.String layer, java.lang.String javaScriptMethodName, java.lang.String userFriendlyName, int r, int g, int b, int alpha)
public void LinkShape(java.lang.String layer, java.lang.String javaScriptMethodName, java.lang.String userFriendlyName, int r, int g, int b)
public void UnlinkShapes(java.lang.String layerGroup)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |