Inherits from
- ToolTip: enthought.chaco.tooltip.ToolTip
Attributes
- arrow_color
The color of the arrow.
arrow_color = ColorTrait('black') - arrow_max_length
The maximum length of the arrow before it will be drawn. By default, the arrow will be drawn regardless of how long it is.
arrow_max_length = Float(inf)
- arrow_min_length
The minimum length of the arrow before it will be drawn. By default, the arrow will be drawn regardless of how short it is.
arrow_min_length = Float(0)
- arrow_root
The position of the base of the arrow on the label. If this is 'auto', then the label uses label_position. Otherwise, it treats the label as if it were at the label position indicated by this attribute.
arrow_root = Trait('auto', 'auto', 'top left', 'top right', 'bottom left', 'bottom right', 'center')
- arrow_size
The length of the arrowhead, in screen points (e.g., pixels).
arrow_size = Float(5)
- arrow_visible
Draw an arrow from the label to the data point? Only used if data_point is not None.
arrow_visible = Bool(True)
- clip_to_plot
Does the label clip itself against the main plot area? If not, then the label draws into the padding area (where axes typically reside).
clip_to_plot = Bool(True)
- custom_symbol
The symbol to use if marker is set to "custom". This attribute must be a compiled path for the given Kiva context.
custom_symbol = Any
- data_point
The point in data space where this label should anchor itself.
data_point = Trait(None, None, Tuple, List, Array)
- label_format
The format string that determines the label's text. This string is formatted using a dict containing the keys 'x' and 'y', corresponding to data space values.
label_format = Str('(%(x)f, %(y)f)')
- label_position
The location of the data label relative to the data point.
label_position = LabelPositionTrait
- marker
The type of marker to use. This is a mapped trait using strings as the keys.
marker = marker_trait
- marker_color
The color of the inside of the marker.
marker_color = ColorTrait('red') - marker_line_color
The color out of the border drawn around the marker.
marker_line_color = ColorTrait('black') - marker_line_width
The thickness, in pixels, of the outline to draw around the marker. If this is 0, no outline will be drawn.
marker_line_width = Float(1.0)
- marker_size
The pixel size of the marker (doesn't include the thickness of the outline).
marker_size = Int(4)
- marker_visible
Mark the point on the data that this label refers to?
marker_visible = Bool(True)
Inherited from base classes
- above_space
- accepts_focus
- active_tool
- aspect_ratio
- auto_center
- auto_handle_event
- backbuffer_padding
- below_space
- bgcolor
- border_color
- border_dash
- border_padding
- border_visible
- border_width
- bounds
- classes
- container
- controller
- corner_point
- cursor_color
- cursor_style
- draw_order
- draw_valid
- drawn_outer_bounds
- drawn_outer_position
- event_state
- fill_padding
- font
- get
- height
- hpadding
- id
- inset_border
- invisible_layout
- layout_needed
- left_space
- line_spacing
- lines
- 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
- right_space
- rotate_angle
- set
- text_color
- 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
- overlay(self, component, gc, view_bounds = None, mode = 'normal')
Inherited from base classes
- __deepcopy__(self, memo)
- __font_metrics_provider_default(self)
- __getstate__(self)
- __prefix_trait__(self, name, is_set)
- __reduce_ex__(self, protocol)
- __setstate__(self, state, trait_change_notify = True)
- 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)
- 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)
- do_layout(self, size = None, force = False)
- draw(self, gc, view_bounds = None, mode = 'normal')
- 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)
- foo_anytrait_changed(self, name, old, new)
- get_absolute_coords(self, *coords)
- get_event_transform(self, event = None, suffix = '')
- get_preferred_size(self)
- has_traits_interface(self, *interfaces)
- invalidate_and_redraw(self)
- invalidate_draw(self, damaged_regions = None, self_relative = False)
- is_in(self, x, y)
- on_trait_change(self, handler, name = None, remove = False, dispatch = 'same', priority = False, deferred = False)
- print_traits(self, show_help = False, **metadata)
- 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
- overlay(self, component, gc, view_bounds = None, mode = 'normal')
Draws the tooltip overlaid on another component.
Overrides ToolTip.