genView-class {iSPlot}R Documentation

Class "genView": A virtual class to describe a view

Description

genView is a virtual class that all view classes inherit from. All views will contain the information of what window (slot win) they are stored in, what data (slot dataName) is shown in the view, and the number of the window (slot winNum) that shows the view.

Objects from the Class

A virtual Class: No objects may be created from it.

Slots

dataName:
a character string describing what data is shown in the view
win:
an object of class "GtkWindow" that holds the view
winNum:
a number that tells what number view this is (for example, the first view created will have winNum=1)

Methods

dataName
Returns the dataName slot
dataName<-
Sets the dataName slot
win
Returns the win slot
win<-
Sets the win slot
winNum
Returns the winNum slot
winNum<-
Sets the winNum slot

Author(s)

Elizabeth Whalen

See Also

plotView-class, sPlotView-class, spreadView-class, setControlEnvDefaults

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) 
    # this will create an object of class, sPlotView, which inherits from
    # genView
    is(get("viewList",viewEnv)[[1]],"genView")  
  }

[Package iSPlot version 1.0.3 Index]