⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 canvas.ctxt

📁 objects first with java: a practical introduction using bluej 英国爱丁堡大学java教程源代码
💻 CTXT
字号:
#BlueJ class contextcomment0.target=class\ Canvascomment0.text=\nCanvas\ is\ a\ class\ to\ allow\ for\ simple\ graphical\ drawing\ on\ a\ canvas.\nThis\ is\ a\ modification\ of\ the\ general\ purpose\ Canvas,\ specially\ made\ for\nthe\ BlueJ\ "shapes"\ example.\ \n\n@author\:\ Bruce\ Quig\n@author\:\ Michael\ Kolling\ (mik)\n\n@version\:\ 1.6\ (shapes)\n\ncomment1.target=objectscomment10.target=graphiccomment11.params=gcomment11.target=void\ paint(Graphics)comment12.target=canvasSingletoncomment13.params=title\ width\ height\ bgColourcomment13.target=Canvas(String,int,int,Color)comment13.text=\nCreate\ a\ Canvas.\n@param\ title\ \ title\ to\ appear\ in\ Canvas\ Frame\n@param\ width\ \ the\ desired\ width\ for\ the\ canvas\n@param\ height\ \ the\ desired\ height\ for\ the\ canvas\n@param\ bgClour\ \ the\ desired\ background\ colour\ of\ the\ canvas\n\ncomment14.target=shapescomment15.params=millisecondscomment15.target=void\ wait(int)comment15.text=\nWait\ for\ a\ specified\ number\ of\ milliseconds\ before\ finishing.\nThis\ provides\ an\ easy\ way\ to\ specify\ a\ small\ delay\ which\ can\ be\nused\ when\ producing\ animations.\n@param\ \ milliseconds\ \ the\ number\ \n\ncomment16.params=comment16.target=void\ redraw()comment16.text=\nRedraw\ ell\ shapes\ currently\ on\ the\ Canvas.\n\ncomment17.params=visiblecomment17.target=void\ setVisible(boolean)comment17.text=\nSet\ the\ canvas\ visibility\ and\ brings\ canvas\ to\ the\ front\ of\ screen\nwhen\ made\ visible.\ This\ method\ can\ also\ be\ used\ to\ bring\ an\ already\nvisible\ canvas\ to\ the\ front\ of\ other\ windows.\n@param\ visible\ \ boolean\ value\ representing\ the\ desired\ visibility\ of\nthe\ canvas\ (true\ or\ false)\ \n\ncomment18.target=canvasImagecomment19.target=backgroundColourcomment2.params=comment2.target=Canvas\ getCanvas()comment2.text=\nFactory\ method\ to\ get\ the\ canvas\ singleton\ object.\n\ncomment20.params=colorStringcomment20.target=void\ setForegroundColor(String)comment20.text=\nSet\ the\ foreground\ colour\ of\ the\ Canvas.\n@param\ \ newColour\ \ \ the\ new\ colour\ for\ the\ foreground\ of\ the\ Canvas\ \n\ncomment21.params=referenceObjectcomment21.target=void\ erase(Object)comment21.text=\nErase\ a\ given\ shape's\ from\ the\ screen.\n@param\ \ referenceObject\ \ the\ shape\ object\ to\ be\ erased\ \n\ncomment22.params=comment22.target=void\ erase()comment22.text=\nErase\ the\ whole\ canvas.\ (Does\ not\ repaint.)\n\ncomment3.params=graphiccomment3.target=void\ draw(Graphics2D)comment4.target=colorStringcomment5.target=shapecomment6.params=shape\ colorcomment6.target=ShapeDescription(Shape,String)comment7.target=canvascomment8.params=referenceObject\ color\ shapecomment8.target=void\ draw(Object,String,Shape)comment8.text=\nDraw\ a\ given\ shape\ onto\ the\ canvas.\n@param\ \ referenceObject\ \ an\ object\ to\ define\ identity\ for\ this\ shape\n@param\ \ color\ \ \ \ \ \ \ \ \ \ \ \ the\ color\ of\ the\ shape\n@param\ \ shape\ \ \ \ \ \ \ \ \ \ \ \ the\ shape\ object\ to\ be\ drawn\ on\ the\ canvas\n\ncomment9.target=framenumComments=23

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -