Q2NSViz 0.1.0
Q2NS trace visualizer
Loading...
Searching...
No Matches
q2nsviz.logic.Node Class Reference

A network node with a canvas-relative position. More...

Static Public Attributes

str label
 
float x_pct
 
float y_pct
 
bool has_explicit_position = False
 

Detailed Description

A network node with a canvas-relative position.

Parameters
labelUnique identifier used in events and displayed on the canvas.
x_pctHorizontal position as a percentage [0, 100] of the layout area.
y_pctVertical position as a percentage [0, 100] of the layout area.
has_explicit_positionTrue when (x, y) were set by a createNode event; False triggers the automatic circular layout.

Definition at line 26 of file logic.py.

Member Data Documentation

◆ has_explicit_position

bool q2nsviz.logic.Node.has_explicit_position = False
static

Definition at line 40 of file logic.py.

◆ label

str q2nsviz.logic.Node.label
static

Definition at line 37 of file logic.py.

◆ x_pct

float q2nsviz.logic.Node.x_pct
static

Definition at line 38 of file logic.py.

◆ y_pct

float q2nsviz.logic.Node.y_pct
static

Definition at line 39 of file logic.py.


The documentation for this class was generated from the following file: