找回密码
 注册
查看: 680|回复: 0

R语言 MVCClass包 genView-class()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-26 07:41:09 | 显示全部楼层 |阅读模式
genView-class(MVCClass)
genView-class()所属R语言包:MVCClass

                                        Class "genView": A virtual class to describe a view  
                                         类“genView”:一个虚拟的类来描述视图

                                         译者:生物统计家园网 机器人LoveR

描述----------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.
genView是一个虚拟的所有视图类继承自类。所有意见将包含什么窗口(插槽胜)它们存储在信息,数据(插槽dataName)中显示视图,并显示视图窗口(插槽winNum)。


类的对象----------Objects from the Class----------

A virtual Class: No objects may be created from it.
可以从它创建一个虚拟类:无对象。


插槽----------Slots----------




dataName: a character string describing what data are shown
dataName:一个字符串描述什么样的数据显示




win: an object of class "GtkWindow" that holds the
win:"GtkWindow"类的对象,持有




winNum: a number that tells what number view this is (for
winNum:一个数字,告诉这是什么数目(


方法----------Methods----------




dataName<- Sets the dataName slot
dataName < - 设置dataName插槽




dataName Returns the dataName slot
dataName返回dataName插槽




win<- Sets the win slot
赢得< - 设置win插槽




win Returns the win slot
赢得返回win插槽




winNum<- Sets the winNum slot
winNum < - 设置winNum插槽




winNum Returns the winNum slot
winNum返回winNum插槽

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).   
此外,所有的视图对象有两种方法,redrawView和UpdateView的,将定义一个视图应该如何重绘时,底层的数据已经改变。 redrawView方法将完全重绘的看法,而有UpdateView的方法将只重绘已更改的部分。这两种方法,redrawView和UpdateView的,包中,使用这个包,如iSPlot和iSNetwork的,将被定义。此外,所有意见将有identifyView方法,在一些位置上的观点(如用户坐标)的观点,将确定一个对象(如一个点,节点,行等)。


作者(S)----------Author(s)----------


Elizabeth Whalen



参见----------See Also----------

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

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-2-3 00:45 , Processed in 0.025755 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表