Description: 一个简单的Java画图程序,能画直线、椭圆和矩形,单击鼠标既可操作。-a simple Java drawing, and painting can be straight, oval and rectangle, click of the mouse can operate. Platform: |
Size: 1024 |
Author:吴志海 |
Hits:
Description: 代码实现了计算机图形学中画线算法(包括DDA,中点法,Bresenham)以及画圆算法(包括中点法,Bresenham)以及多边形的填充(包括边填充,种子填充,扫描填充)多边形的二维变换,多边形的裁减等功能.根据不同的控件进行选择,然后实现各算法.-code realized the computer graphics line drawing algorithm (including DDA, the midpoint method, Bresenham) and Circle algorithm (including midpoint, Bresenham) and polygon filling (including edge filling, seed filling, Filled with scanning) transform two-dimensional polygon, polygon reduction, and other functions. According to various control options. then the achievement of the algorithm. Platform: |
Size: 229376 |
Author:刘晴 |
Hits:
Description: 1) 在图形界面中绘制二维的坐标系统,其中x轴位于绘图区正中,y轴位于绘图区的最左边。
2) 根据下面试验数据,在1)题的坐标系统中绘制数据点,每个数据点用一个小叉号表示,并在叉号边以(x,y)的格式标示出数据点的坐标数值,最后用折线连接相邻的数据点。
数据点序号 x坐标 y坐标
1 0 20
2 50 -30
3 100 16
3 150 126
5 200 164
3) 在2)题的基础上设计界面接收用户输入的实验数据,绘制数据点和实验曲线。
4) 编写程序跟踪用户的鼠标,并时刻把鼠标的位置显示出来。
5) 编写图形界面的Java程序响应鼠标单击和键盘事件,从鼠标单击的位置开始横向显示用户键入的字符,若鼠标双击则清空屏幕。
-1) In drawing two-dimensional graphical interface in the coordinate system in which the x-axis is located in the middle of the plot area, y-axis in the drawing area to the left.
2) According to the following test data, in 1) Title of the coordinate system to draw data points, each data point with a small cross sign indicates, and
Crossed edges to (x, y) data points marked out the format of coordinate values , the final line connecting adjacent data points.
Number of data points x coordinate y coordinate
1020
250-30
310 016
3150126
5200164
3) 2) based on the theme of the design interface to receive user input of experimental data, plot the data points and the experimental curve.
4) write a program to track the user s mouse, and always put the mouse position is displayed.
5) write a Java GUI program to respond to mouse clicks and keyboard events, starting from the position of the mouse click the user key landscape
Into the character, if the mouse double-clic Platform: |
Size: 19456 |
Author:刘毅 |
Hits:
Description: Java生成自定义控件源代码,颜色选择下拉框演示,带图标下拉框的单元绘制器,从JLabel类扩展,实现ListCellRenderer接口,采用Object二维数组,用于初始化下拉框,参数依次为图标,显示文本,提示文本,初学者参考。-Java custom controls the source code, color selection drop-down box demo, icon with a drop-down box unit drawing device, from a class JLabel extends, implements the ListCellRenderer interface, using Object two-dimensional arrays, are used to initialize the drop-down box, parameter for icons, text, the prompt text, reference for beginners. Platform: |
Size: 13312 |
Author:lqua |
Hits: