growingdot.ctxt

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

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