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

📄 driver.ctxt

📁 Java程序设计(美) David D. Riley著 机械工业出版社 书籍配套 代码
💻 CTXT
字号:
#BlueJ class contextcomment0.target=class\ Drivercomment0.text=Author\:\ David\ D.\ Riley\nDate\:\ Jan,\ 2005\nCoffee\ Cup\ Program\ (Figure\ 4.26)\n\ncomment1.target=redCupcomment2.params=comment2.target=Driver()comment2.text=post\:\ta\ window\ is\ created\ \nand\ \ redCup\ is\ repositioned\ at\ the\ top\ center\ of\ window\nand\ \ blueCup\ is\ repositioned\ at\ the\ bottom\ center\ of\ window\ \n\ncomment3.target=blueCupcomment4.params=comment4.target=void\ leftAction()comment4.text=pre\:\tredCup\ instantiated\ \ and\ \ blueCup\ instantiated\t\npost\:\tredCup.getY()\ \=\=\ redCup.getY()@pre\ +\ 5\nand\ \ blueCup.getY()\ \=\=\ blueCup.getY()@pre\ -\ 5\ \n\ncomment5.params=ccomment5.target=Container\ newCup(Color)comment5.text=post\:\tresult\ is\ a\ new\ Container\ with\ a\ coffee\ cup\ colored\ c\ on\ top\nand\ \ result.getWidth()\ \=\=\ 40\ \ \ and\ \ \ result.getHeight()\ \=\=\ 20\ \n\ncomment6.params=comment6.target=void\ rightAction()comment6.text=pre\:\tredCup\ instantiated\ \ and\ \ blueCup\ instantiated\t\npost\:\tredCup.getX()\ \=\=\ redCup.getX()@pre\ -\ 10\nand\ \ blueCup.getX()\ \=\=\ blueCup.getX()@pre\ +\ 10\ \n\ncomment7.target=windowcomment8.params=comment8.target=void\ midAction()comment8.text=pre\:\tredCup\ instantiated\ \ and\ \ blueCup\ instantiated\t\npost\:\tredCup\ is\ repositioned\ at\ the\ top\ center\ of\ window\nand\ \ blueCup\ is\ repositioned\ at\ the\ bottom\ center\ of\ window\ \n\nnumComments=9

⌨️ 快捷键说明

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