📄 triangle.ctxt
字号:
#BlueJ class contextcomment0.target=class\ Trianglecomment0.text=\nA\ triangle\ that\ can\ be\ manipulated\ and\ that\ draws\ itself\ on\ a\ canvas.\n\n@author\ \ Michael\ Kolling\ and\ David\ J.\ Barnes\n@version\ 1.0\ \ (15\ July\ 2000)\n\ncomment1.params=comment1.target=void\ moveLeft()comment1.text=\nMove\ the\ triangle\ a\ few\ pixels\ to\ the\ left.\n\ncomment10.target=heightcomment11.params=comment11.target=void\ makeInvisible()comment11.text=\nMake\ this\ triangle\ invisible.\ If\ it\ was\ already\ invisible,\ do\ nothing.\n\ncomment12.target=widthcomment13.target=isVisiblecomment14.target=yPositioncomment15.target=colorcomment16.params=comment16.target=Triangle()comment16.text=\nCreate\ a\ new\ triangle\ at\ default\ position\ with\ default\ color.\n\ncomment17.params=comment17.target=void\ moveUp()comment17.text=\nMove\ the\ triangle\ a\ few\ pixels\ up.\n\ncomment18.params=newColorcomment18.target=void\ changeColor(String)comment18.text=\nChange\ the\ color.\ Valid\ colors\ are\ "red",\ "yellow",\ "blue",\ "green",\n"magenta"\ and\ "black".\n\ncomment19.params=comment19.target=void\ erase()comment19.text=Erase\ the\ triangle\ on\ screen.\n\ncomment2.params=newHeight\ newWidthcomment2.target=void\ changeSize(int,int)comment2.text=\nChange\ the\ size\ to\ the\ new\ size\ (in\ pixels).\ Size\ must\ be\ >\=\ 0.\n\ncomment20.params=distancecomment20.target=void\ slowMoveVertical(int)comment20.text=\nSlowly\ move\ the\ triangle\ vertically\ by\ 'distance'\ pixels.\n\ncomment21.params=distancecomment21.target=void\ moveVertical(int)comment21.text=\nMove\ the\ triangle\ vertically\ by\ 'distance'\ pixels.\n\ncomment3.params=distancecomment3.target=void\ slowMoveHorizontal(int)comment3.text=\nSlowly\ move\ the\ triangle\ horizontally\ by\ 'distance'\ pixels.\n\ncomment4.target=xPositioncomment5.params=comment5.target=void\ moveRight()comment5.text=\nMove\ the\ triangle\ a\ few\ pixels\ to\ the\ right.\n\ncomment6.params=comment6.target=void\ makeVisible()comment6.text=\nMake\ this\ triangle\ visible.\ If\ it\ was\ already\ visible,\ do\ nothing.\n\ncomment7.params=comment7.target=void\ moveDown()comment7.text=\nMove\ the\ triangle\ a\ few\ pixels\ down.\n\ncomment8.params=distancecomment8.target=void\ moveHorizontal(int)comment8.text=\nMove\ the\ triangle\ horizontally\ by\ 'distance'\ pixels.\n\ncomment9.params=comment9.target=void\ draw()comment9.text=Draw\ the\ triangle\ with\ current\ specifications\ on\ screen.\n\nnumComments=22
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -