- 1、本文档共6页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
注释案例
注释案例
注释样例
以下是SUN提供的注释样例,以供参考
/**
* Graphics is the abstract base class for all graphics contexts
* which allow an application to draw onto components realized on
* various devices or onto off-screen images.
* A Graphics object encapsulates the state information needed
* for the various rendering operations that Java supports. This
* state information includes:
* ul
* liThe Component to draw on
* liA translation origin for rendering and clipping coordinates
* liThe current clip
* liThe current color
* liThe current font
* liThe current logical pixel operation function (XOR or Paint)
* liThe current XOR alternation color
* (see a href=#setXORModesetXORMode/a)
* /ul
* p
* Coordinates are infinitely thin and lie between the pixels of the
* output device.
* Operations which draw the outline of a figure operate by traversing
* along the infinitely thin path with a pixel-sized pen that hangs
* down and to the right of the anchor point on the path.
* Operations which fill a figure operate by filling the interior
* of the infinitely thin path.
* Operations which render horizontal text render the ascending
* portion of the characters entirely above the baseline coordinate.
* p
* Some important points to consider are that drawing a figure that
* covers a given rectangle will occupy one extra row of pixels on
* the right and bottom edges compared to filling a figure that is
* bounded by that same rectangle.
* Also, drawing a horizontal line along the same y coordinate as
* the baseline of a line of text will draw the line entirely below
* the text except for any descenders.
* Both of these properties are due to the pen hanging down and to
* the right from the path that it traverses.
* p
* All coordinates which appear as arguments to the methods of this
* Graphics object are considered relative to the translation origin
* of this Graphics object prior to the invocation of the method.
* All rendering operations modify only pixels whic
您可能关注的文档
- 植入式广告整合营销《丑女无敌》全案解析.doc
- 植物大战僵尸代码.doc
- 椎动脉型颈椎病临床治疗进展.doc
- 楼价飙涨,普通商品房企业培训标准3年不变.doc
- 楼盘形象包装技巧(上篇).doc
- 概念图在初中英语阅读教学中的运用与研究.doc
- 概念营销的大众传播-语言权力的广告行为分析.doc
- 概括中心思想十四法.doc
- 概率论与数理理论.doc
- 概率论与数理统计考点汇总.doc
- 高中三年:如何高效利用高考真题.docx
- 幼儿园家委会工作计划.docx
- 2025高考作文备考冲刺:跟着官媒写作文,人民网关注的思辨主题,思辨时评!.docx
- 6.4+国家监察机关+课件-2024-2025学年统编版道德与法治八年级下册.pptx
- 3.1+公民基本权利+课件-2024-2025学年统编版道德与法治八年级下册 (1).pptx
- 5.1+根本政治制度+课件-2024-2025学年统编版道德与法治八年级下册.pptx
- 2025年中考语文写作分类专项复习:《小作文教学梳理》课件.pptx
- 专题12 自拟论题类开放式小论文题(解析版)-2025年中考历史答题技巧与模板构建.docx
- 2.2+加强宪法监督+课件-2024-2025学年统编版道德与法治八年级下册.pptx
- 专题11 围绕主题类开放式小论文题(解析版)-2025年中考历史答题技巧与模板构建.docx
文档评论(0)