RCanvasPainter

RCanvasPainter

(private) new RCanvasPainter()

Painter class for RCanvas

Source:

Methods

(async, private) activateGed() → {Promise}

Function used to activate GED

Source:
Returns:

when GED is there

Type
Promise

(private) activateStatusBar()

Show/toggle event status bar

Source:

(private) canStatusBar()

Check if status bar can be toggled

Source:

(async) changeLayout() → {Promise}

Changes layout

Source:
Returns:

indicating when finished

Type
Promise

cleanup()

Cleanup canvas painter

Source:

(private) clickPadButton()

Handle pad button click event

Source:

(private) closeWebsocket()

Close websocket connection to canvas

Source:

(async, private) drawInSidePanel()

Draw in side panel

Source:

(async, private) drawProjection()

Draw projection for specified histogram

Source:

getLayoutKind()

Returns layout kind

Source:

(private) getUi5PanelData()

Get view data for ui5 panel

Source:

hasEventStatus()

returns true when event status area exist for the canvas

Source:

hasGed()

Returns true if GED is present on the canvas

Source:

(private) onWebsocketClosed()

Hanler for websocket close event

Source:

(private) onWebsocketMsg()

Hanler for websocket message

Source:

(private) onWebsocketOpened()

Hanler for websocket open event

Source:

(private) processChanges()

Method informs that something was changed in the canvas

Description:
  • used to update information on the server (when used with web6gui)

Source:

processDrawableReply()

Process reply from request to RDrawable

Source:

(private) produceJSON()

produce JSON for RCanvas, which can be used to display canvas once again

Source:

(private) removeGed()

Function used to de-activate GED

Source:

resizeBrowser()

resize browser window to get requested canvas sizes

Source:

saveCanvasAsFile()

Function called when canvas menu item Save is called

Source:

(private) sendSaveCommand()

Send command to server to save canvas with specified name

Description:
  • Should be only used in web-based canvas

Source:

(private) sendWebsocket()

Send message via web socket

Source:

setLayoutKind()

Set canvas layout kind

Source:

(private) showCanvasStatus()

Show online canvas status

Source:

(private) showMessage()

Show message

Description:
  • Used normally with web-based canvas and handled in ui5

Source:

(async) showSection()

Show specified section in canvas

Source:

submitDrawableRequest()

Submit request to RDrawable object on server side

Source:

submitExec()

Submit executable command for given painter

Source:

(async, private) submitMenuRequest()

Submit menu request

Source:

(private) testUI5()

Checks if canvas shown inside ui5 widget

Description:
  • Function should be used only from the func which supposed to be replaced by ui5

Source:

(async, private) toggleProjection() → {Promise}

Toggle projection

Source:
Returns:

indicating when ready

Type
Promise

(private) useWebsocket()

Use provided connection for the web canvas

Source:

websocketTimeout()

set, test or reset timeout of specified name

Description:
  • Used to prevent overloading of websocket for specific function

Source:

(async, static) draw()

draw RCanvas object

Source: