Inherits from
- Component: enthought.enable.component.Component
Attributes
- bounds
The location and size of the component (override of Component definition):
bounds = Property
- category
The category that the contact is associated with (e.g. 'input', 'output'):
category = ContactCategory
- center
Offset to the center of the contact when the label is included:
center = Property
- controller
The controller for the contact:
controller = Instance('enthought.enable.om.OMContactController')
- data
Contact data (to help controller relate contact back to object model):
data = Any
- group
The group that the contact is associated with (e.g. 'porosity'):
group = ContactGroup
- image
The name of the image used to represent the contact:
image = Str('=contact')
- image_center
Offset to the center of the contact image (excluding the label):
image_center = OffsetXY
- image_map
The dictionary mapping the contact state to an image name:
image_map = StyleDelegate
- image_size
Size of the contact image (excluding the label):
image_size = SizeXY
- label
The label for the contact:
label = Property
- label_color
The color used to display the label text:
label_color = StyleDelegate
- label_font
The font used to display the label:
label_font = StyleDelegate
- label_offset
The offset of the label from the contact:
label_offset = StyleDelegate
- label_position
The position of the label relative to the contact (and component edge):
label_position = StyleDelegate
- label_rotate
Should the label be rotated if the contact is on the top or bottom edge?
label_rotate = StyleDelegate
- links
The set of links the contact is connected to:
links = List
- max_links
Maximum number of links that can be connected:
max_links = Int(1)
- name
The name of the contact:
name = Str
- origin
Origin of the contact relative to its containing component:
origin = OffsetXY
- position
Location of the contact relative to the component it is contained in:
position = ContactPosition
- show_status
Show status information?
show_status = StyleDelegate
- show_tooltip
Show tooltip information?
show_tooltip = StyleDelegate
- size
Size of the contact (including the label):
size = Property
- style
The style to use for drawing the contact:
style = Instance(OMContactStyle, default_contact_style)
- tooltip
The tooltip for the contact:
tooltip = Str
- traits_view
traits_view = View([ [ 'label', '_', 'label_color{Color}@', '_', 'label_font{Font}@', 'label_position{Position}', 'label_offset{Offset}@', 'label_rotate{Rotate}', '|[Label]' ], [ 'position', 'image', '|[Contact]' ] ], help = False, handler = om_handler)
- type
Type of data that is accepted (input) or produced (output):
type = Any
Inherited from base classes
- left_dclick
- left_down
- left_up
- middle_dclick
- middle_down
- middle_up
- mouse_move
- mouse_wheel
- on_trait_event
- pre_left_dclick
- pre_left_down
- pre_left_up
- pre_middle_dclick
- pre_middle_down
- pre_middle_up
- pre_mouse_move
- pre_mouse_wheel
- pre_right_dclick
- pre_right_down
- pre_right_up
- pre_window_enter
- pre_window_leave
- right_dclick
- right_down
- right_up
- trait_added
- trait_modified
- window_enter
- window_leave
- wrappers
Method summary
- __getstate__(self)
- __init__(self, **traits)
- __setstate__(self, state)
- connected_hover_left_down(self, event)
- connected_hover_left_up(self, event)
- connected_hover_mouse_move(self, event)
- connected_mouse_move(self, event)
- edit(self)
- partially_connected_hover_left_dclick(self, event)
- partially_connected_hover_left_down(self, event)
- partially_connected_hover_left_up(self, event)
- partially_connected_hover_mouse_move(self, event)
- partially_connected_mouse_move(self, event)
- push_state(self, state)
- restore_state(self)
- unconnected_hover_left_dclick(self, event)
- unconnected_hover_left_down(self, event)
- unconnected_hover_left_up(self, event)
- unconnected_hover_mouse_move(self, event)
- unconnected_mouse_move(self, event)
- update(self)
Inherited from base classes
- __deepcopy__(self, memo)
- __prefix_trait__(self, name)
- __reduce_ex__(self, protocol)
- add_class_trait(cls, name, *trait)
- add_trait(self, name, *trait)
- add_trait_category(cls, category)
- add_trait_listener(self, object, prefix = '')
- all_trait_names(self)
- base_trait(self, name)
- class_default_traits_view(cls)
- class_editable_traits(cls)
- class_trait_names(cls, **metadata)
- class_trait_view(cls, name = None, view_element = None)
- class_trait_view_elements(cls)
- class_traits(cls, **metadata)
- clone_traits(self, traits = None, memo = None, copy = None, **metadata)
- configure_traits(self, filename = None, view = None, kind = None, edit = True, context = None, handler = None, id = '', scrollable = None, **args)
- copy_traits(self, other, traits = None, memo = None, copy = None, **metadata)
- copyable_trait_names(self, **metadata)
- default_traits_view(self)
- edit_traits(self, view = None, parent = None, kind = None, context = None, handler = None, id = '', scrollable = None, **args)
- editable_traits(self)
- get(self, *names, **metadata)
- on_trait_change(self, handler, name = None, remove = False, dispatch = 'same')
- print_traits(self, show_help = False, **metadata)
- remove_trait(self, name)
- remove_trait_listener(self, object, prefix = '')
- reset_traits(self, traits = None, **metadata)
- set(self, trait_change_notify = True, **traits)
- set_trait_dispatch_handler(cls, name, klass, override = False)
- sync_trait(self, trait_name, object, alias = None, mutual = True, remove = False)
- trait(self, name, force = False, copy = False)
- trait_context(self)
- trait_monitor(cls, handler, remove = False)
- trait_names(self, **metadata)
- trait_subclasses(cls, all = False)
- trait_view(self, name = None, view_element = None)
- trait_view_elements(self)
- trait_views(self, klass = None)
- traits(self, **metadata)
- validate_trait(self, name, value)
Methods
- __getstate__(self)
- __init__(self, **traits)
Initializes the object.
- __setstate__(self, state)
- connected_hover_left_down(self, event)
- connected_hover_left_up(self, event)
- connected_hover_mouse_move(self, event)
- connected_mouse_move(self, event)
- edit(self)
- partially_connected_hover_left_dclick(self, event)
- partially_connected_hover_left_down(self, event)
- partially_connected_hover_left_up(self, event)
- partially_connected_hover_mouse_move(self, event)
- partially_connected_mouse_move(self, event)
- push_state(self, state)
- restore_state(self)
- unconnected_hover_left_dclick(self, event)
- unconnected_hover_left_down(self, event)
- unconnected_hover_left_up(self, event)
- unconnected_hover_mouse_move(self, event)
- unconnected_mouse_move(self, event)
- update(self)