A Discrete-Event Network Simulator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
visualizer.core.Node Class Reference
+ Inheritance diagram for visualizer.core.Node:

Public Member Functions

def __init__
def add_link
def get_position
def has_mobility
def on_enter_notify_event
def on_leave_notify_event
def remove_link
def set_color
def set_label
def set_position
def set_size
def set_svg_icon
def tooltip_query

Public Attributes



 highlighted = property(_get_highlighted, _set_highlighted)
 selected = property(_get_selected, _set_selected)

Private Member Functions

def _get_highlighted
def _get_selected
def _set_highlighted
def _set_selected
def _update_appearance
def _update_position
def _update_svg_position

Private Attributes


Static Private Attributes

dictionary __gsignals__

Detailed Description

Definition at line 69 of file core.py.

Member Function Documentation

def visualizer.core.Node.set_svg_icon (   self,
  width = None,
  height = None,
  align_x = 0.5,
  align_y = 0.5 
Set a background SVG icon for the node.

@param file_base_name: base file name, including .svg
extension, of the svg file.  Place the file in the folder

@param width: scale to the specified width, in meters
@param width: scale to the specified height, in meters

@param align_x: horizontal alignment of the icon relative to
the node position, from 0 (icon fully to the left of the node)
to 1.0 (icon fully to the right of the node)

@param align_y: vertical alignment of the icon relative to the
node position, from 0 (icon fully to the top of the node) to
1.0 (icon fully to the bottom of the node)

Definition at line 103 of file core.py.

References visualizer.core.Node._highlighted, visualizer.core.Node._label, visualizer.core.Node._selected, visualizer.core.Node._size, visualizer.core.Node._update_appearance(), visualizer.core.Node._update_svg_position(), visualizer.core.Node.highlighted, visualizer.core.Node.node_index, visualizer.core.Node.svg_align_x, visualizer.core.Node.svg_align_y, and visualizer.core.Node.svg_item.

Member Data Documentation

dictionary visualizer.core.Node.__gsignals__
Initial value:
1 = {
3  # signal emitted whenever a tooltip is about to be shown for the node
4  # the first signal parameter is a python list of strings, to which information can be appended
5  'query-extra-tooltip-info': (gobject.SIGNAL_RUN_LAST, None, (object,)),
7  }

Definition at line 71 of file core.py.

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