Inherits from
- HasPrivateTraits: enthought.traits.has_traits.HasPrivateTraits
Attributes
- bottom_margin
Amount of margin added to bottom side of track:
bottom_margin = StyleDelegate
- category
Category of Contacts that the track manages:
category = ContactCategory
- center
Offset to the center of the track:
center = OffsetXY
- component
The component the track is managing contacts for:
component = Instance(OMComponent)
- contact_spacing
Amount of space between contacts in the same group:
contact_spacing = StyleDelegate
- contacts
List of all Contacts that the track manages:
contacts = Property
- group_spacing
Amount of space between groups:
group_spacing = StyleDelegate
- group_style
The style to use for new track groups when they are created:
group_style = Instance(OMTrackGroupStyle, default_track_group_style)
- groups
List of track groups containing the Contacts that the track manages:
groups = List(OMTrackGroup)
- left_margin
Amount of margin added to left side of track:
left_margin = StyleDelegate
- links
List of all links connected to the associated component:
links = Property
- min_size
Minimum size of the track and all of its contacts:
min_size = Property
- name
Name of the track:
name = Str
- order
Sorting order for the Contacts ('add' = order the Contacts are added in):
order = StyleDelegate
- orientation
Layout orientation of the track:
orientation = TrackOrientation
- origin
Origin of the track relative to its containing component:
origin = OffsetXY
- position
Position of the track relative to the associated component:
position = TrackPosition
- right_margin
Amount of margin added to right side of track:
right_margin = StyleDelegate
- size
Total size of the track and all of its contacts:
size = SizeXY
- sort
Sorting direction for the Contacts:
sort = StyleDelegate
- style
The style to use for the track:
style = Instance(OMTrackStyle, default_track_style)
- top_margin
Amount of margin added to top side of track:
top_margin = StyleDelegate
Inherited from base classes
Method summary
- add_contacts(self, *contacts)
- components_at(self, x, y)
- draw(self, gc)
- get_contacts(self, name = None, category = None, group = None)
- remove_contacts(self, *contacts)
Inherited from base classes
- __deepcopy__(self, memo)
- __getstate__(self)
- __prefix_trait__(self, name)
- __reduce_ex__(self, protocol)
- __setstate__(self, state)
- 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
- add_contacts(self, *contacts)
Adds a list of Contacts to the track.
- components_at(self, x, y)
Returns the components that contain a specified (x,y) point.
- draw(self, gc)
Draws all of the groups.
- get_contacts(self, name = None, category = None, group = None)
Gets the list of Contacts in the track that match an optionally specified name, category and/or group. If no arguments are specified, it returns all Contacts associated with the track; otherwise it returns all Contacts whose name, category or group match the specified value.
- remove_contacts(self, *contacts)
Removes a list of Contacts from the tracks.