gUpdateMessage-class {iSPlot} | R Documentation |
gUpdateMessage is a class to represent an update message. When one of the components in the model-view-controller paradigm needs to tell another component to be updated, an update message is created. For example, when the data changes, it needs to tell the views to be updated and thus, a gUpdateViewMessage object is created. Both gUpdateViewMessage and gUpdateDataMessage classes are inherited from gUpdateMessage. Although, gUpdateMessage is not a virtual class, currently no objects of class gUpdateMessage are created in package, iSPlot.
Objects can be created by calls of the form new("gUpdateMessage", ...)
.
type
:mData
:
Class "gMessage"
, directly.
mData
slottype
slot Elizabeth Whalen
gMessage-class
,
gUpdateViewMessage-class
,
gUpdateDataMessage-class
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 vMessage<-new("gAddViewMessage", dataName="USArrests", type="plotView", plotType="sPlotView", dfRows = 1:nrow(USArrests), dfColumns = 1:2) handleMessage(vMessage) # now set the view mode to Highlight using the ViewMode menu # then click on a point in the plot and a gUpdateMessage will be # created and handled (both to update the data and the view) # you can see this by looking at the data after you click on a point x<-getData(type="dataframe", name="USArrests") }