登录
首页 » Java » 时钟 走动

时钟 走动

于 2020-06-19 发布
0 698
下载积分: 1 下载次数: 1

代码说明:

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

  • SmartUpload
    SmartUpload SmartUpload Smart上传文件(SmartUpload SmartUpload Smart Upload file)
    2011-05-26 12:11:36下载
    积分:1
  • TP2V1.0
    主要掌握什么是变量,变量的基本类型,变量名的命名规则,以及算术运算符(Main master what is variable, the basic types, variable variable naming rules, and the name of the arithmetic operators )
    2011-06-03 15:27:03下载
    积分:1
  • home3
    用java JSP实现的一个小型网站,界面简洁,功能齐全,适合入门的初学者(With java JSP to achieve a small site, simple interface, complete functions, suitable for beginners to get started)
    2014-04-28 10:57:49下载
    积分:1
  • internal_error
    Class Dumper extends Base Dumper Source Code for Andriod.
    2014-01-08 14:03:58下载
    积分:1
  • 基于SpringBoot的后台权限管理系统
    【实例简介】oracle四大宝典之2:Oracle基本管理
    2021-09-23 00:31:06下载
    积分:1
  • page
    STRUT1.2的简单分页,提供大家简单的学习和应用(struts1.2 s ease page,please everyone can learning and application for use.)
    2013-04-10 15:53:21下载
    积分:1
  • thirdy_textTwist
    Simple texttwist game I made for a sophomore friend for their project
    2009-05-11 00:13:08下载
    积分:1
  • elementgetelementsbytagnameaccessnodelist
    Runs this test from the command line.
    2014-02-21 15:45:34下载
    积分:1
  • fowtainer
    说明:  
    2018-05-15 05:13:00下载
    积分:1
  • pattern-java
    设计模式经典书籍,学习设计模式的入门教程,浅显易懂(Classic design patterns book, Design Patterns Study Guide entry, easy to understand)
    2009-02-22 15:02:06下载
    积分:1
  • 696518资源总数
  • 105549会员总数
  • 12今日下载