gAddViewMessage-class {iSPlot} | R Documentation |
gAddViewMessage is a class to represent an add view message. Whenever a view needs to be added, a gAddViewMessage object is created and the handleMessage method is called to act on the message. Currently, the two places where views can be added are the View Data and Plot Data menu options under the File menu. A gAddViewMessage object can add either a scatterplot or spreadsheet view, though new views may be added in the future. gAddViewMessage inherits from the class, gAddMessage, which inherits from the virtual class, gMessage.
Objects can be created by calls of the form new("gAddViewMessage", dataName, type, ...)
.
When creating a gAddViewMessage, the dataName parameter will fill the
dataName slot, the type parameter will fill the type slot, and any
parameters in the ... parameter will fill the mData slot. dataName
will be the name of the data that the view will show. type indicates
whether the view will be "plotView" or "spreadView". mData is any extra
information the view may need.
type
:dataName
:mData
:
Class "gAddMessage"
, directly.
Class "gMessage"
, by class "gAddMessage"
.
type
slot Elizabeth Whalen
gAddMessage-class
,
gAddDataMessage-class
if (interactive()) { createControlWindow() # should load data through Open Data or Open File under the File menu data("USArrests") dMessage<-new("gAddDataMessage", data="USArrests") handleMessage(dMessage) # 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) # check the class class(vMessage) }