java时钟指针_时钟 走动 一个应用线程实现指针运动的指针时钟程序 联合开发网 - pudn.com...

时钟 走动

所属分类: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

近期下载者:

相关文件:

收藏者:

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值