45e2042ce0bd740f2647ffa1f5244eaa3235f474,enthought/chaco/simple_plot_frame.py,SimplePlotFrame,_draw_component,#SimplePlotFrame#Any#Any#Any#,65

Before Change


            // Translate to our .position, because even though we are supposed
            // to be a top-level Chaco component, we might still be contained
            // within other Enable components.
            gc.translate_ctm(*self.position)
            gc.save_state()
            self.center.draw(gc, view_bounds, mode)
            gc.restore_state()
        finally:
            gc.restore_state()
        return

After Change


        This method is preserved for backwards compatibility with _old_draw().
        Overrides PlotComponent.
        
        with gc:
            // Translate to our .position, because even though we are supposed
            // to be a top-level Chaco component, we might still be contained
            // within other Enable components.
            gc.translate_ctm(*self.position)
            with gc:
                self.center.draw(gc, view_bounds, mode)
        return

    def get_preferred_size(self):
         Returns the size (width,height) that is preferred for this component.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: enthought/chaco
Commit Name: 45e2042ce0bd740f2647ffa1f5244eaa3235f474
Time: 2010-12-19
Author: warren.weckesser@651a555e-23ca-0310-84fe-ca9f7c59d2ea
File Name: enthought/chaco/simple_plot_frame.py
Class Name: SimplePlotFrame
Method Name: _draw_component


Project Name: enthought/chaco
Commit Name: 4c96280f3b91a5ef7b63dc572012f273c7ca0b46
Time: 2010-10-10
Author: warren.weckesser@651a555e-23ca-0310-84fe-ca9f7c59d2ea
File Name: examples/chaco_trait_editor.py
Class Name: RangeKnobsOverlay
Method Name: _circle


Project Name: enthought/chaco
Commit Name: 4179b7f166ba980ed226cdbe52984965f1b335c4
Time: 2010-12-19
Author: warren.weckesser@651a555e-23ca-0310-84fe-ca9f7c59d2ea
File Name: enthought/chaco/tools/regression_lasso.py
Class Name: RegressionOverlay
Method Name: _draw_component


Project Name: enthought/chaco
Commit Name: 45e2042ce0bd740f2647ffa1f5244eaa3235f474
Time: 2010-12-19
Author: warren.weckesser@651a555e-23ca-0310-84fe-ca9f7c59d2ea
File Name: enthought/chaco/simple_plot_frame.py
Class Name: SimplePlotFrame
Method Name: _draw_component