时钟 走动

所属分类Java编程
开发工具:Java
文件大小:19KB
下载次数:1
上传日期:2019-08-02 20:06:09
上 传 者何处笙箫。
说明:  一个应用线程实现指针运动的指针时钟程序。程序应用绘制函数时钟面板,根据线程休眠时间间隔,每隔1000ms进行一次重绘。程序通过获取系统时间函数并加以计算个指针位置,再利用绘制函数将其绘制在面板上,通过设置指针长度及颜色,实现时针、分针、秒针的区分。次外,通过获取窗体大小,设置圆面圆心坐标及半径,可依据窗口大小动态划分圆面大小,并动态绘制刻度点位置。
(A pointer clock program that uses threads to implement pointer movement. The program draws the function clock panel and redraws it every 1000ms according to the interval of thread dormancy. The program obtains the system time function and calculates the position of a pointer, then draws it on the panel by drawing function. By setting the length and color of the pointer, it achieves the distinction of clockwise, minute and secondhand. Secondly, by acquiring the size of the form and setting the coordinates and radius of the circle center, the circle size can be dynamically divided according to the size of the window, and the location of the scale points can be dynamically plotted.)

文件列表:[举报垃圾]
时钟 走动, 0 , 2019-08-02
时钟 走动\build, 0 , 2019-08-02
时钟 走动\build.xml, 3597 , 2018-12-13
时钟 走动\build\classes, 0 , 2019-08-02
时钟 走动\build\classes\.netbeans_automatic_build, 0 , 2018-12-13
时钟 走动\build\classes\.netbeans_update_resources, 0 , 2018-12-13
时钟 走动\build\classes\ClockPaint.class, 2164 , 2019-01-01
时钟 走动\build\classes\exp4.class, 906 , 2019-01-01
时钟 走动\manifest.mf, 85 , 2018-12-13
时钟 走动\nbproject, 0 , 2019-08-02
时钟 走动\nbproject\build-impl.xml, 79855 , 2018-12-13
时钟 走动\nbproject\genfiles.properties, 475 , 2018-12-13
时钟 走动\nbproject\private, 0 , 2019-08-02
时钟 走动\nbproject\private\private.properties, 112 , 2018-12-25
时钟 走动\nbproject\private\private.xml, 343 , 2019-01-02
时钟 走动\nbproject\project.properties, 2455 , 2018-12-13
时钟 走动\nbproject\project.xml, 512 , 2018-12-13
时钟 走动\src, 0 , 2019-08-02
时钟 走动\src\exp4.java, 3698 , 2019-01-01
时钟 走动\test, 0 , 2018-12-25

近期下载者

相关文件

评论我要评论

收藏者