def METHOD_NAME(self, container):
    self.viewer = self.pipeline.get('viewer')
    fr = Widgets.Frame("Rotate")
    captions = (('Rotate:', 'label', 'Rotate', 'entryset'),
                ('_sp1', 'spacer', 'hbox1', 'hbox')
                )
    w, b = Widgets.build_info(captions, orientation='vertical')
    b.rotate.set_tooltip("Rotate the image around the pan position")
    b.rotate.set_text(str(self._rot_deg))
    b.rotate.add_callback('activated', self.rotate_cb)
    b.clip = Widgets.CheckBox("Clip")
    b.clip.set_state(self._clip)
    b.clip.set_tooltip("Clip rotated image")
    b.clip.add_callback('activated', self.clip_cb)
    b.hbox1.add_widget(b.clip, stretch=0)
    b.add_alpha = Widgets.CheckBox("Add alpha")
    b.add_alpha.set_state(self._add_alpha)
    b.add_alpha.set_tooltip("Add alpha channel to rotated image")
    b.add_alpha.add_callback('activated', self.add_alpha_cb)
    b.hbox1.add_widget(b.add_alpha, stretch=0)
    b.copy_from_viewer = Widgets.Button("Copy from viewer")
    b.copy_from_viewer.set_tooltip("Copy rotation setting from viewer")
    b.copy_from_viewer.add_callback('activated', self.copy_from_viewer_cb)
    b.hbox1.add_widget(b.copy_from_viewer, stretch=0)
    b.hbox1.add_widget(Widgets.Label(''), stretch=1)
    self.w.update(b)
    fr.set_widget(w)
    container.set_widget(fr)
    self.viewer = self.pipeline.get('viewer')
    self.canvas.set_surface(self.viewer)
    self.canvas.register_for_cursor_drawing(self.viewer)
    self.rot_obj = self.dc.Crosshair(100, 100)