driver.ctxt

来自「Java程序设计(美) David D. Riley著 机械工业出版社 书籍配套」· CTXT 代码 · 共 23 行

CTXT
23
字号
#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 + =
减小字号Ctrl + -
显示快捷键?