updateViews {iSPlot} | R Documentation

## Updates all Views After the Data Changes

### Description

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.

### Usage

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

### Arguments

`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)

### Author(s)

Elizabeth Whalen

### See Also

`gUpdateDataMessage-class`, `gUpdateViewMessage-class`, `updatePlots`, `updateSpread`

### Examples

      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
      }

[Package iSPlot version 1.0.7 Index]