Package conduit :: Package gtkui :: Module Canvas :: Class ConnectorCanvasItem
[hide private]

Class ConnectorCanvasItem

source code


Instance Methods [hide private]
 
__init__(self, parent, fromX, fromY, toX, toY, twoway, conversionExists) source code
 
_build_widget(self) source code
 
_draw_arrow_ends(self) source code
 
_draw_path(self)
Builds a SVG path statement.
source code
 
get_styled_item_names(self) source code
 
get_style_properties(self, specifier) source code
 
resize_connector_width(self, dw)
Adjusts the size of the connector.
source code
 
reconnect(self, fromX, fromY, toX, toY) source code
 
set_color(self, color) source code
 
set_two_way(self, twoway) source code

Inherited from _CanvasItem: get_bottom, get_height, get_left, get_right, get_top, get_width

Inherited from _CanvasItem (private): _automatic_style_updater

Inherited from _StyleMixin: get_gtk_style, get_style_color_int_rgb, get_style_color_int_rgba, get_style_color_rgb, get_style_color_rgba

Inherited from _StyleMixin (private): _get_colors_and_state

Class Variables [hide private]
  CONNECTOR_RADIUS = 30
  CONNECTOR_YOFFSET = 20
  CONNECTOR_TEXT_XPADDING = 5
  CONNECTOR_TEXT_YPADDING = 10
  LINE_WIDTH = 4.0

Inherited from _CanvasItem: RECTANGLE_RADIUS

Method Details [hide private]

__init__(self, parent, fromX, fromY, toX, toY, twoway, conversionExists)
(Constructor)

source code 
Overrides: _CanvasItem.__init__

_draw_path(self)

source code 
Builds a SVG path statement. This represents the (optionally) curved connector between a datasource and datasink. Then assigns the path to the internal path object

get_styled_item_names(self)

source code 
Overrides: _CanvasItem.get_styled_item_names

get_style_properties(self, specifier)

source code 
Overrides: _CanvasItem.get_style_properties

resize_connector_width(self, dw)

source code 
Adjusts the size of the connector. Used when the window is resized
Parameters:
  • dw (int) - The change in width

set_color(self, color)

source code 
Parameters:
  • color (string) - The connectors new color

set_two_way(self, twoway)

source code 
Parameters:
  • color (string) - The connectors new color