搜索资源列表
testshape
- 3. 设计一个接口Shape,接口中包含方法:Draw和Resize。定义一些具体类,如:Point、Line、Circle、Rectangle等,每个类都实现接口Shape。Draw方法绘制图形,Resize方法改变图形大小。用Java实现这些接口和类,并用测试类测试它们。 注意:不需要真正绘制图形,如Line的Draw方法只需输出下面文本即可: “直线的起点是(x1,y1,),终点是(x2,y2)”-3. A Shape interface design, interfaces includ
Test3
- 定义4个类,MyShape、MyLine、MyRectangle和MyOval,其中MyShape是其他三个类的父类。MyShape为抽象类,包括图形位置的四个坐标;一个无参的构造方法,将所有的坐标设置为0;一个带参的构造函数,将所有的坐标设置为相应值;每个坐标的设置和读取方法;abstract void draw(Graphics g)方法。MyLine类负责画直线,实现父类的draw方法;MyRectangle负责画矩形,实现父类的draw方法;MyOval负责画椭圆,实现父类的draw方法
DRAWSHAPE
- 本程序是程序设计第五版课后习题,实现画圆,画直线,画矩形-This procedure is the fifth edition of the after-school exercise program design, implementation drawcircle, draw a straight line, draw rectangle
fulldrawshap
- 本程序是程序设计第五版课后习题,实现画圆,画直线,画矩形,并且可以填充.-This procedure is the fifth edition of the after-school exercise program design, implementation drawcircle, draw a straight line, draw rectangle and can be filled.
minipainter
- 一个简单绘图程序,可以实现一下功能: ◎提供一个图形用户界面,主要由操作鼠标来响应用户动作; ◎允许用户绘制直线、矩形、椭圆、圆等几何图形。 ◎允许用户改变画笔的颜色。 ◎能显示绘画笔的当前颜色以及按钮的激活状态。 ◎可以实现用颜色填充封闭的图形。 -A simple drawing program, what functions can be achieved: ◎ provide a graphical user interface, the main by the
draw
- java画图板,能画矩形、圆、直线。并能实现图形的扩大缩小移动变换颜色。-java drawing board to draw rectangle, circle, straight line. And narrow the achievement of the expansion of mobile graphics color transformation.
hw2-project1
- 画图板程序,能够画出矩形、椭圆、线段等图形;还能进行换色、移动、撤销等功能-Drawing board procedures, be able to draw a rectangle, ellipse, line segments and other graphics also to change color, move, remove and other functions
hw2-project
- 这是一个简单的画图程序,可以画三种图:长方形,椭圆,直线。实现了拖动图形,交换位置,删除图形等功能。运用了MVC模式,希望对程序员们可以有些帮助。-This is a simple program of drawing shapes. It can draw three shapes: rectangle,oval and line.It has the dragging function,switching fucntion and deleting function. It uses
JFrame
- 1. 能在JFrame、JApplet、Canvas等对象上绘制圆、椭圆、矩形、线段等图形。 2. 能编写画圆、画矩形等应用程序。 -1. Can JFrame, JApplet, Canvas and other objects to draw circles, ellipses, rectangles, line segments and other graphics. 2. Can write draw a circle, draw rectangle, etc. applicat
GraphicsExample
- 绘图代码中测试的各种方法,绘制直线绘制矩形绘制椭圆,绘制弧线,绘制弧线-Drawing code to test the various methods of drawing line drawing rectangle drawing ellipse, draw arc, draw arc
move
- 编写一个程序,实现一串文字在屏幕正中沿300×300的矩形边界移动 //谁有空自己改下算法。。。。个人认为这个算法太死。。。只能在个人的屏幕 //中间的位置画图形-Write a program to achieve a string of text in the middle of the screen 300 × 300 rectangle along the border mobile// who is available to change the algorithm itsel
drawingpanel
- Java 写的画图板,通过这个小程序,大家可以了解到:建立输入输出流、按钮数组,存放以下名称的功能按钮、创建基本操作按钮,包括"新建"、"打开"、"保存"等、定义铅笔画,也就是用鼠标拖动着随意绘图、绘制以指定颜色填充的实心矩形、绘制以指定颜色填充的实心椭圆、绘制以指定颜色填充的实心圆角矩形、橡皮擦,可用来擦去已经绘制好的图案、选择颜色按钮,可用来选择需要的颜色、选择线条粗细的按钮,输入需要的数值可以实现绘图线条粗细的变化…… -Java to write the drawing board,
3
- 实现在页面中拖动鼠标画出矩形,矩形的对角线为点击并拖动鼠标形成的直线线段。-Page, drag the mouse to achieve the draw rectangle, rectangle diagonal click and drag the mouse to form a straight line segment.
TestPaint
- 画一个红色实心椭圆和一个绿色矩形 (用到可以自动调用的paint方法, 运行后调整窗口大小或最小化,最大化等时都会使图形自动重画)-Draw a solid red oval and a green rectangle (used to automatically call the paint method, run resize the window or minimize, maximize, etc. will automatically redraw the graph)
PaintBoard
- 画图板,可以打开文件,保存文件,以及画直线,园,矩形,可以设置画笔大小与颜色以及调色板。-Drawing board, you can open the file, save the file, and draw a straight line, Park, rectangle, you can set the brush size and color, and palette.
freedraw
- java实现随手画功能,可以实现画圆,矩形和其直线-java implementation readily draw function, can draw a circle, rectangle, and its linear
drawBoard
- java编写的画图板,能够实现矩形,直线,椭圆,橡皮擦,撤销,重做等功能-A Java DrawBoard,it can draw rectangle,line,circle and has rubber and can also undo and redo
ImageDisp
- a web application to view the image and draw rectangle over the image to use is as rubber band and coordinate display.
DrawingShape
- 在界面中自定义拖拽绘制长方形和椭圆,并使用修饰模式对已有图形加边框,加标签。-Custom drag to draw rectangle and ellipse in the interface, and use the decorator pattern of the existing graphics add borders, add labels.
html5canvasapi
- 基本知识 绘制矩形 清除矩形区域 圆弧 路径 绘制线段 绘制贝塞尔曲线 线性渐变 径向渐变(发散) 图形变形(平移、旋转、缩放) 矩阵变换(图形变形的机制) 图形组合 给图形绘制阴影 绘制图像(图片平铺、裁剪、像素处理[不只图像、包括其他绘制图形]) 绘制文字 保存和恢复状态(context) 保存文件 结合setInterval制作动画(basic knowledge Draw rectangle Clear rectangular area Arc
