A Discrete-Event Network Simulator
API
visualizer.svgitem.SvgItem Class Reference

SvgItem class. More...

+ Inheritance diagram for visualizer.svgitem.SvgItem:
+ Collaboration diagram for visualizer.svgitem.SvgItem:

Public Member Functions

def __init__ (self, x, y, rsvg_handle, kwargs)
 
def do_get_property (self, pspec)
 Get Property. More...
 
def do_set_property (self, pspec, value)
 Set Property. More...
 
def do_simple_is_item_at (self, x, y, cr, is_pointer_event)
 Simple Is Item At function. More...
 
def do_simple_paint (self, cr, bounds)
 Simple Paint function. More...
 
def do_simple_update (self, cr)
 Simple Update function. More...
 

Public Attributes

 bounds_x1
 minimum x More...
 
 bounds_x2
 maximum x More...
 
 bounds_y1
 minimum y More...
 
 bounds_y2
 maximum y More...
 
 custom_height
 custom height More...
 
 custom_width
 custom width More...
 
 handle
 handle More...
 
 height
 height More...
 
 sx
 x step More...
 
 sy
 y step More...
 
 width
 width More...
 
 x
 x More...
 
 y
 y More...
 

Private Member Functions

def _size_changed (self)
 Size Changed function. More...
 

Static Private Attributes

dictionary __gproperties__
 setup our custom properties More...
 

Detailed Description

SvgItem class.

Definition at line 9 of file svgitem.py.

Constructor & Destructor Documentation

def visualizer.svgitem.SvgItem.__init__ (   self,
  x,
  y,
  rsvg_handle,
  kwargs 
)
Initializer
@param self this object

Definition at line 72 of file svgitem.py.

Member Function Documentation

def visualizer.svgitem.SvgItem._size_changed (   self)
private
def visualizer.svgitem.SvgItem.do_simple_update (   self,
  cr 
)

Simple Update function.

Parameters
selfthis object
crrendered
Returns
none

Definition at line 190 of file svgitem.py.

Member Data Documentation

visualizer.svgitem.SvgItem.__gproperties__
staticprivate

setup our custom properties

Definition at line 38 of file svgitem.py.

visualizer.svgitem.SvgItem.bounds_x1

minimum x

Definition at line 197 of file svgitem.py.

visualizer.svgitem.SvgItem.bounds_x2

maximum x

Definition at line 199 of file svgitem.py.

visualizer.svgitem.SvgItem.bounds_y1

minimum y

Definition at line 198 of file svgitem.py.

visualizer.svgitem.SvgItem.bounds_y2

maximum y

Definition at line 200 of file svgitem.py.

visualizer.svgitem.SvgItem.custom_height

custom height

Definition at line 87 of file svgitem.py.

Referenced by visualizer.svgitem.SvgItem._size_changed(), and visualizer.svgitem.SvgItem.do_set_property().

visualizer.svgitem.SvgItem.custom_width

custom width

Definition at line 86 of file svgitem.py.

Referenced by visualizer.svgitem.SvgItem._size_changed(), and visualizer.svgitem.SvgItem.do_set_property().

visualizer.svgitem.SvgItem.handle

handle

Definition at line 83 of file svgitem.py.

visualizer.svgitem.SvgItem.sx
visualizer.svgitem.SvgItem.sy

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