Inherits from
- GraphicsContext: enthought.kiva.backend_svg.GraphicsContext
Method summary
- __init__(self, size_or_ary, dpi = 72.0, *args, **kw)
- clip_to_rect(self, x, y, width, height)
- render_component(self, component, container_coords = False)
Inherited from base classes
- clear(self, size)
- device_destroy_clipping_path(self)
- device_fill_points(self, points, mode)
- device_set_clipping_path(self, x, y, width, height)
- device_show_text(self, text)
- device_stroke_points(self, points, mode)
- device_update_fill_state(self)
- device_update_line_state(self)
- get_full_text_extent(self, text)
- height(self)
- render(self, format)
- save(self, filename)
- set_font(self, font)
- width(self)
Methods
- __init__(self, size_or_ary, dpi = 72.0, *args, **kw)
- clip_to_rect(self, x, y, width, height)
Offsets the coordinate frame by (0.5, 0.5) and increases the actual size of the image by 1 pixel in each dimension.
Overrides Kiva GraphicsContext.
- render_component(self, component, container_coords = False)
Renders the given component.
Parameters
- component : Component
- The component to be rendered.
- container_coords : Boolean
- Whether to use coordinates of the component's container
Description
If container_coords is False, then the (0,0) coordinate of this graphics context corresponds to the lower-left corner of the component's outer_bounds. If container_coords is True, then the method draws the component as it appears inside its container, i.e., it treats (0,0) of the graphics context as the lower-left corner of the container's outer bounds.