Public Member Functions | Public Attributes | Static Public Attributes | Static Private Attributes | List of all members
smach_viewer.xdot.xdot.DotWidget Class Reference
Inheritance diagram for smach_viewer.xdot.xdot.DotWidget:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self)
 
def animate_to (self, x, y)
 
def begin_print (self, operation, context)
 
def draw_page (self, operation, context, page_nr)
 
def get_current_pos (self)
 
def get_drag_action (self, event)
 
def get_element (self, x, y)
 
def get_jump (self, x, y)
 
def get_url (self, x, y)
 
def is_click (self, event, click_fuzz=4, click_timeout=1.0)
 
def on_area_button_press (self, area, event)
 
def on_area_button_release (self, area, event)
 
def on_area_motion_notify (self, area, event)
 
def on_area_scroll_event (self, area, event)
 
def on_area_size_allocate (self, area, allocation)
 
def on_click (self, element, event)
 
def on_draw (self, widget, cr)
 
def on_key_press_event (self, widget, event)
 
def on_print (self, action=None)
 
def on_zoom_100 (self, action)
 
def on_zoom_fit (self, action)
 
def on_zoom_in (self, action)
 
def on_zoom_out (self, action)
 
def reload (self)
 
def run_filter (self, dotcode)
 
def set_current_pos (self, x, y)
 
def set_dotcode (self, dotcode, filename=None)
 
def set_filter (self, filter)
 
def set_highlight (self, items)
 
def set_xdotcode (self, xdotcode)
 
def update (self)
 
def window2graph (self, x, y)
 
def zoom_image (self, zoom_ratio, center=False, pos=None)
 
def zoom_to_area (self, x1, y1, x2, y2)
 
def zoom_to_fit (self)
 

Public Attributes

 animation
 
 drag_action
 
 filter
 
 graph
 
 highlight
 
 last_mtime
 
 openfilename
 
 presstime
 
 pressx
 
 pressy
 
 x
 
 y
 
 zoom_ratio
 
 zoom_to_fit_on_resize
 

Static Public Attributes

string filter = 'dot'
 
int POS_INCREMENT = 100
 
 print_settings = None
 
float ZOOM_INCREMENT = 1.25
 
int ZOOM_TO_FIT_MARGIN = 12
 

Static Private Attributes

dictionary __gsignals__
 

Detailed Description

GTK widget that draws dot graphs.

Definition at line 1540 of file xdot.py.

Constructor & Destructor Documentation

◆ __init__()

def smach_viewer.xdot.xdot.DotWidget.__init__ (   self)

Definition at line 1550 of file xdot.py.

Member Function Documentation

◆ animate_to()

def smach_viewer.xdot.xdot.DotWidget.animate_to (   self,
  x,
  y 
)

Definition at line 1913 of file xdot.py.

◆ begin_print()

def smach_viewer.xdot.xdot.DotWidget.begin_print (   self,
  operation,
  context 
)

Definition at line 1815 of file xdot.py.

◆ draw_page()

def smach_viewer.xdot.xdot.DotWidget.draw_page (   self,
  operation,
  context,
  page_nr 
)

Definition at line 1819 of file xdot.py.

◆ get_current_pos()

def smach_viewer.xdot.xdot.DotWidget.get_current_pos (   self)

Definition at line 1672 of file xdot.py.

◆ get_drag_action()

def smach_viewer.xdot.xdot.DotWidget.get_drag_action (   self,
  event 
)

Definition at line 1829 of file xdot.py.

◆ get_element()

def smach_viewer.xdot.xdot.DotWidget.get_element (   self,
  x,
  y 
)

Definition at line 1927 of file xdot.py.

◆ get_jump()

def smach_viewer.xdot.xdot.DotWidget.get_jump (   self,
  x,
  y 
)

Definition at line 1935 of file xdot.py.

◆ get_url()

def smach_viewer.xdot.xdot.DotWidget.get_url (   self,
  x,
  y 
)

Definition at line 1931 of file xdot.py.

◆ is_click()

def smach_viewer.xdot.xdot.DotWidget.is_click (   self,
  event,
  click_fuzz = 4,
  click_timeout = 1.0 
)

Definition at line 1852 of file xdot.py.

◆ on_area_button_press()

def smach_viewer.xdot.xdot.DotWidget.on_area_button_press (   self,
  area,
  event 
)

Definition at line 1841 of file xdot.py.

◆ on_area_button_release()

def smach_viewer.xdot.xdot.DotWidget.on_area_button_release (   self,
  area,
  event 
)

Definition at line 1870 of file xdot.py.

◆ on_area_motion_notify()

def smach_viewer.xdot.xdot.DotWidget.on_area_motion_notify (   self,
  area,
  event 
)

Definition at line 1905 of file xdot.py.

◆ on_area_scroll_event()

def smach_viewer.xdot.xdot.DotWidget.on_area_scroll_event (   self,
  area,
  event 
)

Definition at line 1894 of file xdot.py.

◆ on_area_size_allocate()

def smach_viewer.xdot.xdot.DotWidget.on_area_size_allocate (   self,
  area,
  allocation 
)

Definition at line 1909 of file xdot.py.

◆ on_click()

def smach_viewer.xdot.xdot.DotWidget.on_click (   self,
  element,
  event 
)
Override this method in subclass to process
click events. Note that element can be None
(click on empty space).

Definition at line 1864 of file xdot.py.

◆ on_draw()

def smach_viewer.xdot.xdot.DotWidget.on_draw (   self,
  widget,
  cr 
)

Definition at line 1655 of file xdot.py.

◆ on_key_press_event()

def smach_viewer.xdot.xdot.DotWidget.on_key_press_event (   self,
  widget,
  event 
)

Definition at line 1750 of file xdot.py.

◆ on_print()

def smach_viewer.xdot.xdot.DotWidget.on_print (   self,
  action = None 
)

Definition at line 1802 of file xdot.py.

◆ on_zoom_100()

def smach_viewer.xdot.xdot.DotWidget.on_zoom_100 (   self,
  action 
)

Definition at line 1745 of file xdot.py.

◆ on_zoom_fit()

def smach_viewer.xdot.xdot.DotWidget.on_zoom_fit (   self,
  action 
)

Definition at line 1742 of file xdot.py.

◆ on_zoom_in()

def smach_viewer.xdot.xdot.DotWidget.on_zoom_in (   self,
  action 
)

Definition at line 1736 of file xdot.py.

◆ on_zoom_out()

def smach_viewer.xdot.xdot.DotWidget.on_zoom_out (   self,
  action 
)

Definition at line 1739 of file xdot.py.

◆ reload()

def smach_viewer.xdot.xdot.DotWidget.reload (   self)

Definition at line 1638 of file xdot.py.

◆ run_filter()

def smach_viewer.xdot.xdot.DotWidget.run_filter (   self,
  dotcode 
)

Definition at line 1586 of file xdot.py.

◆ set_current_pos()

def smach_viewer.xdot.xdot.DotWidget.set_current_pos (   self,
  x,
  y 
)

Definition at line 1675 of file xdot.py.

◆ set_dotcode()

def smach_viewer.xdot.xdot.DotWidget.set_dotcode (   self,
  dotcode,
  filename = None 
)

Definition at line 1612 of file xdot.py.

◆ set_filter()

def smach_viewer.xdot.xdot.DotWidget.set_filter (   self,
  filter 
)

Definition at line 1583 of file xdot.py.

◆ set_highlight()

def smach_viewer.xdot.xdot.DotWidget.set_highlight (   self,
  items 
)

Definition at line 1680 of file xdot.py.

◆ set_xdotcode()

def smach_viewer.xdot.xdot.DotWidget.set_xdotcode (   self,
  xdotcode 
)

Definition at line 1632 of file xdot.py.

◆ update()

def smach_viewer.xdot.xdot.DotWidget.update (   self)

Definition at line 1647 of file xdot.py.

◆ window2graph()

def smach_viewer.xdot.xdot.DotWidget.window2graph (   self,
  x,
  y 
)

Definition at line 1917 of file xdot.py.

◆ zoom_image()

def smach_viewer.xdot.xdot.DotWidget.zoom_image (   self,
  zoom_ratio,
  center = False,
  pos = None 
)

Definition at line 1685 of file xdot.py.

◆ zoom_to_area()

def smach_viewer.xdot.xdot.DotWidget.zoom_to_area (   self,
  x1,
  y1,
  x2,
  y2 
)

Definition at line 1704 of file xdot.py.

◆ zoom_to_fit()

def smach_viewer.xdot.xdot.DotWidget.zoom_to_fit (   self)

Definition at line 1720 of file xdot.py.

Member Data Documentation

◆ __gsignals__

dictionary smach_viewer.xdot.xdot.DotWidget.__gsignals__
staticprivate
Initial value:
= {
'clicked' : (GObject.SIGNAL_RUN_LAST, None, (str, object))
}

Definition at line 1544 of file xdot.py.

◆ animation

smach_viewer.xdot.xdot.DotWidget.animation

Definition at line 1578 of file xdot.py.

◆ drag_action

smach_viewer.xdot.xdot.DotWidget.drag_action

Definition at line 1579 of file xdot.py.

◆ filter [1/2]

string smach_viewer.xdot.xdot.DotWidget.filter = 'dot'
static

Definition at line 1548 of file xdot.py.

◆ filter [2/2]

smach_viewer.xdot.xdot.DotWidget.filter

Definition at line 1584 of file xdot.py.

◆ graph

smach_viewer.xdot.xdot.DotWidget.graph

Definition at line 1553 of file xdot.py.

◆ highlight

smach_viewer.xdot.xdot.DotWidget.highlight

Definition at line 1581 of file xdot.py.

◆ last_mtime

smach_viewer.xdot.xdot.DotWidget.last_mtime

Definition at line 1571 of file xdot.py.

◆ openfilename

smach_viewer.xdot.xdot.DotWidget.openfilename

Definition at line 1554 of file xdot.py.

◆ POS_INCREMENT

int smach_viewer.xdot.xdot.DotWidget.POS_INCREMENT = 100
static

Definition at line 1748 of file xdot.py.

◆ presstime

smach_viewer.xdot.xdot.DotWidget.presstime

Definition at line 1580 of file xdot.py.

◆ pressx

smach_viewer.xdot.xdot.DotWidget.pressx

Definition at line 1848 of file xdot.py.

◆ pressy

smach_viewer.xdot.xdot.DotWidget.pressy

Definition at line 1849 of file xdot.py.

◆ print_settings

smach_viewer.xdot.xdot.DotWidget.print_settings = None
static

Definition at line 1801 of file xdot.py.

◆ x

smach_viewer.xdot.xdot.DotWidget.x

Definition at line 1676 of file xdot.py.

◆ y

smach_viewer.xdot.xdot.DotWidget.y

Definition at line 1575 of file xdot.py.

◆ ZOOM_INCREMENT

float smach_viewer.xdot.xdot.DotWidget.ZOOM_INCREMENT = 1.25
static

Definition at line 1733 of file xdot.py.

◆ zoom_ratio

smach_viewer.xdot.xdot.DotWidget.zoom_ratio

Definition at line 1576 of file xdot.py.

◆ ZOOM_TO_FIT_MARGIN

int smach_viewer.xdot.xdot.DotWidget.ZOOM_TO_FIT_MARGIN = 12
static

Definition at line 1734 of file xdot.py.

◆ zoom_to_fit_on_resize

smach_viewer.xdot.xdot.DotWidget.zoom_to_fit_on_resize

Definition at line 1577 of file xdot.py.


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


smach_viewer
Author(s): Jonathan Bohren
autogenerated on Thu Feb 20 2025 03:09:09