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

Description Objects from the Class Slots Methods Author(s) See Also


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.



a character string describing what data are shown in the view


an object of class "GtkWindow" that holds the view


a number that tells what number view this is (for example, the first view created will have winNum=1)



Sets the dataName slot


Returns the dataName slot


Sets the win slot


Returns the win slot


Sets the winNum slot


Returns the winNum slot

Also, all view objects will have two methods, redrawView and updateView, that will define how a view should be redrawn when the underlying data has changed. The redrawView method will completely redraw the view, while the updateView method will only redraw the parts of the view that have changed. Both of these methods, redrawView and updateView, will be defined in packages that use this package, such as iSPlot and iSNetwork. Also, all views will have an identifyView method that will identify an object (such as a point, a node, a row, etc.) on the view given some location on the view (such as the user coordinates).


Elizabeth Whalen

See Also

plotView-class, sPlotView-class, spreadView-class

MVCClass documentation built on Nov. 8, 2020, 5:53 p.m.