updateViews              package:iSPlot              R Documentation

_U_p_d_a_t_e_s _a_l_l _V_i_e_w_s _A_f_t_e_r _t_h_e _D_a_t_a _C_h_a_n_g_e_s

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

     updateViews is called from the handleMessage method of class, 
     gUpdateDataMessage, after a change has been made to the data.  
     updateViews creates an object of class, gUpdateViewMessage, and
     calls the method, handleMessage, so that the views are updated to
     reflect the change in the data.

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

     updateViews(dfName, type, rowName = c())

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

  dfName: the data name, a character string 

    type: the type of change the data underwent, can be either "reset",
          "add", "modify" or "delete" 

 rowName: the row name or index that was changed (i.e. what points
          changed) 

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

     Elizabeth Whalen

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

     'gUpdateDataMessage-class', 'gUpdateViewMessage-class',
     'updatePlots', 'updateSpread'

_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(type = "plotView", dataName = "USArrests", 
                    plotType = "sPlotView", dfRows = 1:nrow(USArrests), 
                    dfColumns = 1:2)  
         # now set the view mode
         setHighlightMode()

         # now click on a point on the plot and that will cause updateViews
         # to be called - you can tell it was called because the plot
         # will change
       }

