createGtkDev             package:iSPlot             R Documentation

_A_d_d_s _a _G_t_k _D_e_v_i_c_e _o_n _a _G_t_k _w_i_n_d_o_w

_D_e_s_c_r_i_p_t_i_o_n:

     createGtkDev adds a gtk device on a gtk window and adds a callback
     for the focus event.  When the window has focus, the gtk device in
     the  window will be active.  Rulers are also added to the gtk
     window in  this function so that the location of the mouse can be
     recorded at  all times - this is needed for the motion event.

_U_s_a_g_e:

     createGtkDev(w)

_A_r_g_u_m_e_n_t_s:

       w: the gtk window 

_V_a_l_u_e:

     win: the gtk window

  drArea: the gtk drawing area

_A_u_t_h_o_r(_s):

     Elizabeth Whalen

_S_e_e _A_l_s_o:

     'addDrawingArea', 'createPlotView'

_E_x_a_m_p_l_e_s:

       if (interactive())
       {
         createControlWindow()
         # should load data through Open Data or Open File under the File menu
         data(USArrests)
         loadDFData(USArrests,"USArrests")
         # plotting the data should occur through Plot Data under 
         # the Display menu
         # createView will call createPlotView, which will call createGtkDev
         # to add a gtk device to the gtk window
         createView(type = "plotView", dataName = "USArrests", 
                    plotType = "sPlotView", dfRows = 1:nrow(USArrests), 
                    dfColumns = 1:2) 
       }

