plopp.core.View#

class plopp.core.View(*nodes)[source]#

A (typically graphical) representation of the data. A view must be attached to one or more Node. Upon receiving a notification from a parent node, it usually requests data from that node in order to display it visually.

Parameters:

*nodes (Node) – The nodes that are attached to the view.

__init__(*nodes)[source]#

Methods

__init__(*nodes)

notify_view(message)

When a notification is received, request data from the corresponding parent node and update the relevant artist.

render()

At the end of figure creation, this function is called to request data from all parent nodes and draw the figure.

update(*args, **kwargs)

Update function which is called when a notification is received.

Attributes

id

The unique id of the view.