📄 driver.ctxt
字号:
#BlueJ class contextcomment0.target=class\ Drivercomment0.text=Author\:\ David\ D.\ Riley\nDate\:\ Jan,\ 2005\nHistogram\ Program\ (Figure\ 5.28)\n\ncomment1.params=r\ ccomment1.target=void\ redrawOneBar(Rectangle,int)comment1.text=pre\:\tr\ is\ constructed\npost\:\tthe\ y\ and\ height\ attributes\ of\ r\ are\ adjusted\ to\ a\ new\ height\ of\nmaxBarHeight\ *\ (c/(leftClickCount+midClickCount+rightClickCount))\ \n\ncomment10.params=comment10.target=void\ rightAction()comment10.text=pre\:\tleftBar,\ midBar\ and\ rightBar\ are\ constructed\npost\:\trightClickCount\ \=\=\ rightClickCount@pre\ +\ 1\nand\ all\ bars\ of\ the\ histogram\ are\ properly\ updated\ \ \n\ncomment11.target=leftClickCountcomment12.target=rightClickCountcomment13.target=midBarcomment14.params=comment14.target=void\ midAction()comment14.text=pre\:\tleftBar,\ midBar\ and\ rightBar\ are\ constructed\npost\:\tmidClickCount\ \=\=\ midClickCount@pre\ +\ 1\nand\ all\ bars\ of\ the\ histogram\ are\ properly\ updated\ \ \n\ncomment15.params=comment15.target=Driver()comment15.text=post\:\tA\ window\ is\ displayed\ that\ contains\ a\ histogram\ of\ the\nnumber\ of\ times\ that\ each\ window\ button\ is\ clicked\nas\ a\ percentage\ of\ the\ total\ number\ of\ such\ clicks.\ \ \n\ncomment2.params=comment2.target=void\ leftAction()comment2.text=pre\:\tleftBar,\ midBar\ and\ rightBar\ are\ constructed\npost\:\tleftClickCount\ \=\=\ leftClickCount@pre\ +\ 1\nand\ all\ bars\ of\ the\ histogram\ are\ properly\ updated\ \ \n\ncomment3.target=histoWincomment4.target=leftBarcomment5.target=midClickCountcomment6.params=comment6.target=void\ redrawHistogram()comment6.text=pre\:\tleftBar,\ midBar\ and\ rightBar\ are\ constructed\npost\:\tall\ bars\ of\ the\ histogram\ are\ properly\ updated\ \n\ncomment7.target=maxBarHeightcomment8.target=rightBarcomment9.params=jcomment9.target=Rectangle\ newBar(int)comment9.text=post\:\tresult\ is\ a\ filled\ blue\ rectangle\ \nand\ \ result.getWidth()\ \=\=\ 100\ \ and\ \ result.getX()\ \=\=\ j\ \n\nnumComments=16
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -