Inherits from
- Container: enthought.enable.container.Container
- PlotComponent: enthought.chaco.plot_component.PlotComponent
Attributes
- auto_size
Overrides the Enable auto_size trait (which will be deprecated in the future)
auto_size = False
- draw_order
draw_order = DEFAULT_DRAWING_ORDER
- fit_components
Dimensions in which this frame can resize to fit its components. This is similar to the resizable trait on PlotComponent. Chaco plot frames use this attribute in preference to the Enable auto_size attribute (which is overridden to be False by default).
fit_components = Enum('', 'h', 'v', 'hv')
- slot_names
A named list of places/positions/"slots" on the frame where PlotComponents can place themselves. Subclasses must redefine this trait with the appropriate values. Note that by default, __getattr__ treats these slot names as attributes on the class so they can be directly accessed. This is a class attribute.
slot_names = ()
Inherited from base classes
- accepts_focus
- active_tool
- aspect_ratio
- auto_center
- auto_handle_event
- backbuffer_padding
- bgcolor
- border_color
- border_dash
- border_visible
- border_width
- bounds
- classes
- components
- container
- container_under_layers
- controller
- cursor_color
- cursor_style
- default_size
- draw_layer
- draw_valid
- drawn_outer_bounds
- drawn_outer_position
- event_state
- fill_padding
- fit_window
- get
- height
- hpadding
- id
- inset_border
- intercept_events
- invisible_layout
- layout_controller
- layout_needed
- on_trait_event
- outer_bounds
- outer_height
- outer_position
- outer_width
- outer_x
- outer_x2
- outer_y
- outer_y2
- overlay_border
- overlays
- padding
- padding_accepts_focus
- padding_bottom
- padding_left
- padding_right
- padding_top
- pointer
- position
- resizable
- resolver
- set
- tools
- tooltip
- trait_added
- trait_modified
- underlays
- unified_draw
- use_backbuffer
- use_draw_order
- use_selection
- viewports
- visible
- vpadding
- width
- window
- wrappers
- x
- x2
- y
- y2
Method summary
- __getattr__(self, name)
- __init__(self, **kw)
- __setattr__(self, name, value)
- add_to_slot(self, slot, component, stack = 'overlay')
- do_layout(self, size = None, force = False)
- draw(self, gc, view_bounds = None, mode = 'normal')
- get_slot(self, slotname)
- post_load(self, path = None)
- set_slot(self, slotname, container)
Inherited from base classes
- __components_changed(self, event)
- __components_items_changed(self, event)
- __deepcopy__(self, memo)
- __getstate__(self)
- __prefix_trait__(self, name, is_set)
- __reduce_ex__(self, protocol)
- __setstate__(self, state, trait_change_notify = True)
- add(self, *components)
- 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)
- as_coordinates(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)
- cleanup(self, window)
- clone_traits(self, traits = None, memo = None, copy = None, **metadata)
- compact(self)
- components_at(self, x, y)
- 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)
- dispatch(self, event, suffix)
- draw_select_box(self, gc, position, bounds, width, dash, inset, color, bgcolor, marker_size)
- edit_traits(self, view = None, parent = None, kind = None, context = None, handler = None, id = '', scrollable = None, **args)
- editable_traits(self)
- get_absolute_coords(self, *coords)
- get_event_transform(self, event = None, suffix = '')
- get_preferred_size(self)
- has_traits_interface(self, *interfaces)
- insert(self, index, component)
- invalidate_and_redraw(self)
- invalidate_draw(self, damaged_regions = None, self_relative = False)
- is_in(self, x, y)
- lower_component(self, component)
- normal_mouse_leave(self, event)
- on_trait_change(self, handler, name = None, remove = False, dispatch = 'same', priority = False, deferred = False)
- print_traits(self, show_help = False, **metadata)
- raise_component(self, component)
- remove(self, *components)
- remove_trait(self, name)
- remove_trait_listener(self, object, prefix = '')
- request_redraw(self)
- reset_traits(self, traits = None, **metadata)
- set_outer_bounds(self, ndx, val)
- set_outer_position(self, ndx, val)
- 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_get(self, *names, **metadata)
- trait_monitor(cls, handler, remove = False)
- trait_names(self, **metadata)
- trait_set(self, trait_change_notify = True, **traits)
- trait_setq(self, **traits)
- 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
- __getattr__(self, name)
- __init__(self, **kw)
- __setattr__(self, name, value)
- add_to_slot(self, slot, component, stack = 'overlay')
Adds a component to the named slot using the given stacking mode. The valid modes are: 'overlay', 'left', 'right', 'top', 'bottom'.
- do_layout(self, size = None, force = False)
Tells this frame to do layout at a given size.
Overrides PlotComponent. If this frame needs to fit components in at least one dimension, then it checks whether any of them need to do layout; if so, the frame needs to do layout also.
- draw(self, gc, view_bounds = None, mode = 'normal')
Draws the plot frame.
Frames are the topmost Chaco component that knows about layout, and they are the start of the layout pipeline. When they are asked to draw, they can assume that their own size has been set properly and this in turn drives the layout of the contained components within the trame.
- get_slot(self, slotname)
Returns the container in the named slot.
- post_load(self, path = None)
- set_slot(self, slotname, container)
Sets the named slot to use the given container. container can be None.