Files
G4G0-1/Semester 1/Programming 1/Java/examples/shapes/Triangle.ctxt
2024-01-15 20:14:10 +00:00

39 lines
2.0 KiB
Plaintext

#BlueJ class context
comment0.target=Triangle()
comment0.text=\nCreate\ a\ new\ triangle\ at\ default\ position\ with\ default\ color.\n\n
comment1.target=void\ makeVisible()
comment1.text=\nMake\ this\ triangle\ visible.\ If\ it\ was\ already\ visible,\ do\ nothing.\n\n
comment10.params=distance
comment10.target=void\ slowMoveVertical(int)
comment10.text=\nSlowly\ move\ the\ triangle\ vertically\ by\ 'distance'\ pixels.\n\n
comment11.params=newHeight\ newWidth
comment11.target=void\ changeSize(int,\ int)
comment11.text=\nChange\ the\ size\ to\ the\ new\ size\ (in\ pixels).\ Size\ must\ be\ >\=\ 0.\n\n
comment12.params=newColor
comment12.target=void\ changeColor(String)
comment12.text=\nChange\ the\ color.\ Valid\ colors\ are\ "red",\ "yellow",\ "blue",\ "green",\n"magenta"\ and\ "black".\n\n
comment13.target=void\ draw()
comment13.text=Draw\ the\ triangle\ with\ current\ specifications\ on\ screen.\n\n
comment14.target=void\ erase()
comment14.text=Erase\ the\ triangle\ on\ screen.\n\n
comment2.target=void\ makeInvisible()
comment2.text=\nMake\ this\ triangle\ invisible.\ If\ it\ was\ already\ invisible,\ do\ nothing.\n\n
comment3.target=void\ moveRight()
comment3.text=\nMove\ the\ triangle\ a\ few\ pixels\ to\ the\ right.\n\n
comment4.target=void\ moveLeft()
comment4.text=\nMove\ the\ triangle\ a\ few\ pixels\ to\ the\ left.\n\n
comment5.target=void\ moveUp()
comment5.text=\nMove\ the\ triangle\ a\ few\ pixels\ up.\n\n
comment6.target=void\ moveDown()
comment6.text=\nMove\ the\ triangle\ a\ few\ pixels\ down.\n\n
comment7.params=distance
comment7.target=void\ moveHorizontal(int)
comment7.text=\nMove\ the\ triangle\ horizontally\ by\ 'distance'\ pixels.\n\n
comment8.params=distance
comment8.target=void\ moveVertical(int)
comment8.text=\nMove\ the\ triangle\ vertically\ by\ 'distance'\ pixels.\n\n
comment9.params=distance
comment9.target=void\ slowMoveHorizontal(int)
comment9.text=\nSlowly\ move\ the\ triangle\ horizontally\ by\ 'distance'\ pixels.\n\n
numComments=15