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)

add(node)

Add a node to the view.

notify_view(message)

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

remove(nid)

Remove a node from the view.

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.