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

📄 growingdot.ctxt

📁 Java程序设计(美) David D. Riley著 机械工业出版社 书籍配套 代码
💻 CTXT
字号:
#BlueJ class contextcomment0.target=class\ GrowingDotcomment0.text=Class\ Invariant\:\t\nredDot.getWidth()\ \=\=\ redDot.getHeight()\nand\ \ redDot.getX()\ \=\=\ 100\ -\ redDot.getWidth()/2\nand\ \ redDot.getY()\ \=\=\ 100\ -\ redDot.getHeight()/2\ \n\ncomment1.target=darknesscomment2.params=comment2.target=GrowingDot()comment2.text=post\:\tredDot\ is\ added\ on\ this\ \nand\ startBtn\ \!\=\ null\nand\ this\ is\ colored\ black\nand\ clock\ is\ scheduled\ for\ 0.1\ sec.\ repeated\ events\ \ \n\ncomment3.target=clockcomment4.target=redDotcomment5.target=startBtncomment6.params=ecomment6.target=void\ actionPerformed(ActionEvent)comment6.text=pre\:\tredDot\ \!\=\ null\ \ <br>\npost\:\t(redDot@pre.getWidth()\ \=\=\ 200)\ implies\nredDot\ is\ resized\ to\ 4\ by\ 4\ and\ this\ recolored\ to\ black\nand\ \ (redDot@pre.getWidth()\ \!\=\ 200)\ implies\n(\ redDot\ resize\ to\ 2\ by\ 2\ larger\ than\ redDot@pre\nand\ this\ is\ recolored\ whiter\ )\ \n\nnumComments=7

⌨️ 快捷键说明

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