-
Notifications
You must be signed in to change notification settings - Fork 0
SimpleNodePainter
The SimpleNodePainter is the main plugin to visualize a sensor network, since it is responsible for the illustration of the nodes themselves. The configuration page can be seen below.
There are two ways to illustrate a node ("normal" and "extended"). Therefore, one must define which is the default one. The normal way to display a node is just to write its ID into a rectangle. Color and line width of this rectangle can be configured as well. The extended illustration shows some additional information which must be defined in the "common string formatter" field and the table below. See StringFormatter for more information.
The image below shows a small network with three nodes. Node 1 is displayed in normal mode, while node 2 and 3 are in extended mode. As one can see, the common string formatter is responsible for the illustration of the time in the extended mode while the speed and the temp values are specific to a semantic type.
It is possible to switch between the display modes with a double-click on the node. If a node is in front of another and one wants to bring the node from the background to the foreground, this can be done with a right-mouse-button-click on the area of the node in the background. This includes the hidden area of the background node. In case there is more than one button in the background of another, this click will bring the node to the foreground, that was the furthest in the background.
The SimpleNodePainter does not need metric information, since it displays the node just at the position that the active NodePositioner provides. This can be either an instance of the PositionPacketNodePositioner or the SpringEmbedderPositioner.