- 浏览: 125208 次
- 性别:
- 来自: 武汉
-
文章分类
最新评论
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();}</script>
There are two ways to draw basic shapes like lines and rectangles.
The first is to use specific drawing methods like
Graphics.drawOval(). This example uses these methods. The
second is to construct a shape and then use Graphics2D.draw() to
draw the shape. See the java.awt.geom package for examples that
create shapes.
g2d.drawLine(x1, y1, x2, y2);
g2d.drawArc(x, y, w, h, startAngle, arcAngle);
g2d.drawOval(x, y, w, h);
g2d.drawRect(x, y, w, h);
g2d.drawRoundRect(x, y, w, h, arcWidth, arcHeight);
Polygon polygon = new Polygon();
polygon.addPoint(x, y);
// ...continue adding points
g2d.drawPolygon(polygon);
发表评论
-
解决struts开发中文乱码
2008-04-25 21:35 783<script>function StorePag ... -
swt-designer配置开发环境
2008-05-02 14:23 844<script>function StorePag ... -
Accessible抽象类的实现
2009-05-19 23:36 737<script>function StorePag ... -
Setting an Accessible Name for an Image Button
2009-05-20 23:52 624<script>function StorePag ... -
Setting a Description for Image Icons
2009-05-21 22:46 712<script>function StorePag ... -
Setting a Mnemomic for Buttons:为按钮设置助记符
2009-05-23 00:10 808<script>function StorePag ... -
Associating a Label with a Component:将标签与组件关联
2009-05-24 00:02 799<script>function StorePag ... -
The Quintessential Applet
2009-05-25 23:31 556<script>function StorePag ... -
Getting an Applet Parameter:获得一个applet参数
2009-05-27 00:24 769<script>function StorePag ... -
Making the Browser Visit a URL:让浏览器访问一个applet URL
2009-05-27 22:18 949<script>function StorePag ... -
The Quintessential Drawing Program:画图程序的精粹
2009-06-03 00:46 640<script>function StorePag ... -
Filling Basic Shapes:填充基本图形
2009-06-05 00:18 778<script>function StorePag ... -
Loading an Image:加载一幅图像
2009-06-05 23:56 663<script>function StorePag ... -
Drawing an Image:画一幅图
2009-06-07 00:56 790<script>function StorePag ... -
Drawing Simple Text:画简单的文本
2009-06-09 01:20 791<script>function StorePag ... -
Drawing Rotated Text:画旋转字
2009-06-10 00:48 825//Draw string rotated clockwise ... -
recruitbusiness_info.php源代码分析
2009-06-10 23:31 788<link href="css/sty ... -
Getting the Dimensions of Text:获取文本的长和宽
2009-06-11 00:32 675// From within the paint() m ... -
Drawing Anti-Aliased Text and Graphics:绘制反锯齿文字和图形
2009-06-12 00:44 910// Text only g2d.setRenderi ... -
Drawing with Alpha:使用alpha通道来绘图
2009-06-13 00:17 885drawGraphic1(g2d); // Set a ...
相关推荐
绘制基本二维图形是环境工程CAD绘图的基础,drawing basic two-dimensional shapes is the foundation of environmental engineering CAD drawing。 在环境工程CAD绘图中,绘制基本二维图形是非常重要的,because ...
还包括了对Xcode项目结构的创建(Creating the Project Structure in Xcode),基本概念的适应不同屏幕尺寸(Basic Concepts for Adapting to Different Screen Sizes),以及更深层次的图形上下文使用技巧。...
6.3 创建基本图形并进行格式化 6.3.1 使用矩形和椭圆工具 6.3.2 设定圆角 6.3.3 使用填充色 6.3.4 改变填充样式 6.3.5 应用填充模式 6.3.6 创建阴影 6.4 使用键盘快捷方式 6.5 小结 第7章 ...
6.3 创建基本图形并进行格式化 6.3.1 使用矩形和椭圆工具 6.3.2 设定圆角 6.3.3 使用填充色 6.3.4 改变填充样式 6.3.5 应用填充模式 6.3.6 创建阴影 6.4 使用键盘快捷方式 6.5 小结...
basic_directx.zip Basic DirectX + MFC game project template 基本的DirectX+MFC开发游戏项目模板(15KB)<END><br>88,dashline.zip A Simple Dash-Line Class 画大于1个逻辑单位的虚点线(46KB)<END>...