登录
首页 » Java » 时钟 走动

时钟 走动

于 2020-06-19 发布 文件大小:19KB
0 163
下载积分: 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 个回复

  • SsaRenamer
    Complete transformation to SSA form by renaming all registers accessed.<p>.
    2013-11-04 09:33:21下载
    积分:1
  • KruskalAlgorithm
    kruskal in java simple, easy, i hope that s useful thanks
    2016-11-13 16:46:08下载
    积分:1
  • zenme-chengwei-java-gaoshou-
    这篇文章教你如何成为一位java高手,要想成为java高手的请多看看。(This article teaches you how to become a the java master, in order to become the java master of like him look at.)
    2012-10-17 14:40:32下载
    积分:1
  • jpcap-0.6
    jpcap是一个中间件,java语言对网络层以下的功能开发并不好,所以jpcap中间件就开发出来了(jpcap is a middleware, java language on the network layer of the functional development of the following is not good, so jpcap out on the development of middleware)
    2009-04-14 19:13:35下载
    积分:1
  • text
    NetBeans8.2连接mysql数据库测试文档(NetBeans 8.2 Connect Mysql Database Test Document)
    2019-06-10 15:32:51下载
    积分:1
  • LOD
    java读取obj模型(read obj model)
    2004-11-06 22:01:02下载
    积分:1
  • MVCDAOjava
    项目07_使用MVC+DAO完成用户登陆(代码+笔记)(Project 07_ using MVC+DAO complete user login (code+ notes))
    2013-10-31 14:10:25下载
    积分:1
  • population
    小型户籍管理系统,可以实现基本的增删改查功能(Small household registration management system)
    2018-01-07 14:19:23下载
    积分:1
  • conferences
    java实现共享视频会议,按照文件README 的说明可以实现聊天、共享白板等功能。(java shared video conferencing, according to the README file that can be achieved chat, shared whiteboard functions.)
    2009-06-02 23:30:12下载
    积分:1
  • F__1562205512848
    java 操作文件写入,读取。。。。。。。。。。。。(Java operation file write, read)
    2020-06-25 17:00:02下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载