Class: Notifier

Notifier

new Notifier(jboard)

A change notifier class that can listen to changes in a Board and keep multiple Canvas board views up to date.
Parameters:
Name Type Description
jboard Board The board to listen to.
Source:

Methods

addCanvas(jcanvas)

Add a canvas to notify list.
Parameters:
Name Type Description
jcanvas Canvas The canvas to add.
Source:

changeBoard(board)

Change the board to listen to. Notifier will stop listening previous board, start listening new one and trigger full redraw of canvas.
Parameters:
Name Type Description
board Board New board to listen to.
Source: