first commit
This commit is contained in:
44
Semester 1/Programming 1/Java/examples/shapes/Circle.ctxt
Normal file
44
Semester 1/Programming 1/Java/examples/shapes/Circle.ctxt
Normal file
@@ -0,0 +1,44 @@
|
||||
#BlueJ class context
|
||||
comment0.target=Circle()
|
||||
comment0.text=\nCreate\ a\ new\ circle\ at\ default\ position\ with\ default\ color.\n\n
|
||||
comment1.params=x\ y
|
||||
comment1.target=Circle(int,\ int)
|
||||
comment10.params=distance
|
||||
comment10.target=void\ moveHorizontal(int)
|
||||
comment10.text=\nMove\ the\ circle\ horizontally\ by\ 'distance'\ pixels.\n\n
|
||||
comment11.params=distance
|
||||
comment11.target=void\ moveVertical(int)
|
||||
comment11.text=\nMove\ the\ circle\ vertically\ by\ 'distance'\ pixels.\n\n
|
||||
comment12.params=distance
|
||||
comment12.target=void\ slowMoveHorizontal(int)
|
||||
comment12.text=\nSlowly\ move\ the\ circle\ horizontally\ by\ 'distance'\ pixels.\n\n
|
||||
comment13.params=distance
|
||||
comment13.target=void\ slowMoveVertical(int)
|
||||
comment13.text=\nSlowly\ move\ the\ circle\ vertically\ by\ 'distance'\ pixels.\n\n
|
||||
comment14.params=newDiameter
|
||||
comment14.target=void\ changeSize(int)
|
||||
comment14.text=\nChange\ the\ size\ to\ the\ new\ size\ (in\ pixels).\ Size\ must\ be\ >\=\ 0.\n\n
|
||||
comment15.params=newColor
|
||||
comment15.target=void\ changeColor(String)
|
||||
comment15.text=\nChange\ the\ color.\ Valid\ colors\ are\ "red",\ "yellow",\ "blue",\ "green",\n"magenta"\ and\ "black".\n\n
|
||||
comment16.target=void\ draw()
|
||||
comment16.text=Draw\ the\ circle\ with\ current\ specifications\ on\ screen.\n\n
|
||||
comment17.target=void\ erase()
|
||||
comment17.text=Erase\ the\ circle\ on\ screen.\n\n
|
||||
comment2.params=x\ y\ col
|
||||
comment2.target=Circle(int,\ int,\ String)
|
||||
comment3.params=x\ y\ col\ d
|
||||
comment3.target=Circle(int,\ int,\ String,\ int)
|
||||
comment4.target=void\ makeVisible()
|
||||
comment4.text=\nMake\ this\ circle\ visible.\ If\ it\ was\ already\ visible,\ do\ nothing.\n\n
|
||||
comment5.target=void\ makeInvisible()
|
||||
comment5.text=\nMake\ this\ circle\ invisible.\ If\ it\ was\ already\ invisible,\ do\ nothing.\n\n
|
||||
comment6.target=void\ moveRight()
|
||||
comment6.text=\nMove\ the\ circle\ a\ few\ pixels\ to\ the\ right.\n\n
|
||||
comment7.target=void\ moveLeft()
|
||||
comment7.text=\nMove\ the\ circle\ a\ few\ pixels\ to\ the\ left.\n\n
|
||||
comment8.target=void\ moveUp()
|
||||
comment8.text=\nMove\ the\ circle\ a\ few\ pixels\ up.\n\n
|
||||
comment9.target=void\ moveDown()
|
||||
comment9.text=\nMove\ the\ circle\ a\ few\ pixels\ down.\n\n
|
||||
numComments=18
|
Reference in New Issue
Block a user