viewEnv                package:iSPlot                R Documentation

_A_n _e_n_v_i_r_o_n_m_e_n_t _t_o _s_t_o_r_e _v_i_e_w _i_n_f_o_r_m_a_t_i_o_n

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

     viewEnv is an environment that stores information about views,
     including  scatterplots and spreadsheets.  Currently, the
     variables stored in  viewEnv are activeView, curIDpoint,
     mainTitleColor, and viewList.   viewEnv pertains to storing
     information for the view in the  model-view-controller paradigm.

_D_e_t_a_i_l_s:

     activeView is the view that is currently active.  The active view
     will be in the gtk window that has focus.

     curIDpoint is the point on a plot that was last identified.  This
     is  stored so that the text of the identified point can be removed
     once  the mouse has moved away from that point (this is done only
     in identify  mode).  curIDpoint is a list that contains the
     closestXY and the  closestPoint.  closestXY is a list with
     elements x and y, giving the  (x,y) location of the point and
     closestPoint is the row name of the  closest point.  curIDpoint
     stores the list returned from the function  identifyPoint.

     mainTitleColor is the color of the main title text on the plots.  
     Currently, all plot titles are set to the view mode.  The default
     for  mainTitleColor is "red".

     viewList is a list where each element is an object that is
     inherited from genView, such as sPlotView or spreadView. 
     sPlotView contains information about a scatterplot such as device
     number, plotting parameters, etc. spreadView contains information
     about a spreadsheet such as the gtk clist. See the view objects
     (genView, plotView, sPlotView and spreadView) for  more
     information.  Each time a new view is created, it is added to 
     viewList.  Similarly, each time a view is destroyed, the view
     object that  pertained to that view is removed from viewList.

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

       # list the environment variables in viewEnv
       ls(env=viewEnv)
       # return one of the environment variables
       get("mainTitleColor",viewEnv)

