Files
G4G0-1/Semester 1/Programming 1/Java/Chapter01/House with Two Suns/Person.ctxt
2024-01-15 20:14:10 +00:00

48 lines
2.1 KiB
Plaintext

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