登录
首页 » Java » 时钟 走动

时钟 走动

于 2020-06-19 发布 文件大小:19KB
0 129
下载积分: 1 下载次数: 0

代码说明:

  一个应用线程实现指针运动的指针时钟程序。程序应用绘制函数时钟面板,根据线程休眠时间间隔,每隔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 个回复

  • PosNative
    说明:  动态库加载dll文件方式, navtive, Pos,zip(Dynamic Library Loading DLL Files)
    2020-06-20 14:40:01下载
    积分:1
  • TallerMecanico
    Ejemplo taller mecanico Java (netbeans)
    2012-11-24 04:29:41下载
    积分:1
  • uTinyRipper
    说明:  解包贴图文件 Unpackaged Mapping FileUnpackaged Mapping File(Unpackaged Mapping Mapping document)
    2020-06-20 22:40:01下载
    积分:1
  • ProvisionParserTests
    You can run this entire test case with: runtest -c com.android.exchange.adapter.ProvisionParserTests email.
    2013-12-11 16:12:20下载
    积分:1
  • springCloud入门必读
    说明:  springcloud 微服务架构,初学者可以通过此书快速理解微服务。(Microservice architecture, beginners can quickly understand microservices through this book.)
    2020-04-26 16:00:26下载
    积分:1
  • BT
    说明:  java 在Windows下实现BT下载(OurBT)
    2010-04-15 11:40:13下载
    积分:1
  • Thinking_in_Java
    学习JAVA从这本书学起,很好的书值得珍藏,希望能给大家一些帮助。(Thinking in Java)
    2013-10-06 16:39:58下载
    积分:1
  • control_characters
    Tests regular expressions containing.
    2014-01-28 11:25:52下载
    积分:1
  • java2
    Java教程2-3章全部示例程序 源代码,可供初学者学习(Java Tutorial 2-3 Chapter Full sample program source code, for beginners to learn)
    2010-05-25 16:20:42下载
    积分:1
  • huawei
    说明:  huawei2019年网络技术精英挑战赛复赛java题目(Huawei 2009 Network Technology Elite Challenge Seminar Java Topic)
    2020-06-20 20:20:02下载
    积分:1
  • 696518资源总数
  • 106161会员总数
  • 5今日下载