picture.ctxt
来自「objects first with java: a practical int」· CTXT 代码 · 共 21 行
CTXT
21 行
#BlueJ class contextcomment0.target=class\ Picturecomment0.text=\nThis\ class\ represents\ a\ simple\ picture.\ You\ can\ draw\ the\ picture\ using\nthe\ draw\ method.\ But\ wait,\ there's\ more\:\ being\ an\ electronic\ picture,\ it\ncan\ be\ changed.\ You\ can\ set\ it\ to\ black-and-white\ display\ and\ back\ to\ncolors\ (only\ after\ it's\ been\ drawn,\ of\ course).\n\nThis\ class\ was\ written\ as\ an\ early\ example\ for\ teaching\ Java\ with\ BlueJ.\n\n@author\ \ Michael\ Kolling\ and\ David\ J.\ Barnes\n@version\ 1.1\ \ (24\ May\ 2001)\n\ncomment1.params=comment1.target=void\ draw()comment1.text=\nDraw\ this\ picture.\n\ncomment2.target=wallcomment3.params=comment3.target=void\ setColor()comment3.text=\nChange\ this\ picture\ to\ use\ color\ display\n\ncomment4.params=comment4.target=void\ setBlackAndWhite()comment4.text=\nChange\ this\ picture\ to\ black/white\ display\n\ncomment5.target=suncomment6.target=roofcomment7.params=comment7.target=Picture()comment7.text=\nConstructor\ for\ objects\ of\ class\ Picture\n\ncomment8.target=windownumComments=9
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?