⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 robot.ctxt

📁 Java程序设计(美) David D. Riley著 机械工业出版社 书籍配套 代码
💻 CTXT
字号:
#BlueJ class contextcomment0.target=class\ Robotcomment1.params=scomment1.target=void\ setImage(String)comment1.text=post\:\ \ \ Upon\ repaint\ the\ image\ displayed\ will\ be\ given\ by\ the\ \nfile\ with\ complete\ pathname\ specified\ as\ s\ \n(Note\ that\ the\ file\ should\ be\ a\ gif\ or\ jpeg\ encoding.)\ \ \n\ncomment10.params=comment10.target=boolean\ canStep()comment10.text=post\:\ \ \ result\ \=\=\ the\ robot\ can\ step\ forward\ in\ the\ current\ direction\ \ncomment11.target=upcomment12.target=downcomment13.params=comment13.target=void\ rotateClockwise()comment13.text=post\:\ \ \ direction\ is\ changed\ to\ represent\ a\ 90\ degree\ clockwise\ turn\ \ncomment14.params=gcomment14.target=void\ paint(Graphics)comment15.params=rccomment15.target=Robot(RoadCourse)comment15.text=pre\:\ \ \ \ a\ proper\ JPEG\ image\ file\ must\ be\ in\ file\ /graphics/RoboDown.jpg\ in\ the\nsame\ folder\ as\ the\ current\ .class\ file\npost\:\ \ \ an\ pylon\ image\ is\ instantiated\nand\ \ getX()\ \=\=\ 0\ \ \ and\ \ getY()\ \=\=\ 0\ \ \ \nand\ \ getWidth()\ \=\=\ 72\ \ AND\ \ getHeight()\ \=\=\ 72\nand\ \ direction\ \=\=\ right\nand\ \ column\ \=\=\ 0\ (leftmost\ column\ on\ test\ range)\nand\ \ row\ \=\=\ 0\ (top\ rown\ on\ test\ range)\ \nand\ \ theCourse\ \=\=\ rc\ \n\ncomment16.target=contentcomment17.target=rightcomment18.target=directioncomment19.target=xDeltacomment2.target=tickCountcomment20.target=clockcomment3.target=yDeltacomment4.target=columncomment5.params=comment5.target=void\ moveByOneStep()comment5.text=post\:\ \ \ canStep()@pre\ implies\ the\ robot\ steps\ forward\ one\ unit\ \ncomment6.target=leftcomment7.target=theCoursecomment8.params=ecomment8.target=void\ actionPerformed(ActionEvent)comment9.target=rownumComments=21

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -