登录
首页 » Java » 时钟 走动

时钟 走动

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

  • JVm
    用于模拟器安装APK 方便快捷安装 本人分享的源码(Installing APK for simulator)
    2011-11-14 12:25:22下载
    积分:1
  • java
    给学JAVA的一些提示和警告,帮助学习和使用java,新手必读( )
    2014-01-14 12:16:48下载
    积分:1
  • useradd
    springmvc前台新增页面配合dwz简单demo,方便学习开发,简单易懂。(springmvc new front page with dwz simple demo, facilitate learning and development, easy to understand.)
    2013-07-11 17:30:01下载
    积分:1
  • java_jsq
    一个java计算器。(a calculator.)
    2004-11-08 15:01:22下载
    积分:1
  • Tomcat源码研究
    tomcat源码解析过程文档,详细说明了tomcat从启动到最后结束中间类和方法的调用过程,对于研究java底层源码的启动很有好处。(Tomcat source code parsing process document, detailed description of Tomcat from start to end the call process of intermediate classes and methods, for the study of Java underlying source code start is very helpful.)
    2020-06-17 22:40:02下载
    积分:1
  • TabWidget
    Andriod切换卡TableWidget的用法(The switch card.)
    2015-04-26 13:48:50下载
    积分:1
  • Java序设计教与实训PPT
    说明:  java书籍ppt 里面有很多教程 值得参考使用(There are many tutorials in Java books worth referring to.)
    2019-01-02 10:19:51下载
    积分:1
  • demo
    说明:  使用A星(a-star)算发,通过上传二维矩阵中不能通过的坐标点,来为起止坐标点计算一条最短可通过路径(Using A-star, a shortest path is calculated by uploading the coordinate points that can not be passed in the two-dimensional matrix.)
    2019-02-10 15:51:27下载
    积分:1
  • Java 窗口序Demo
    海康威视 java 窗口程序 demo(hikivision java demo)
    2018-01-28 15:57:41下载
    积分:1
  • PSO_Garver6网架规划(直流计及可靠性)
    说明:  采用粒子群算法对GARVER-6节点配网系统进行计及经济性与可靠性的网架规划(Particle Swarm Optimization (PSO) is used to plan the GARVER-6 node distribution network system considering economy and reliability.)
    2020-12-18 20:49:10下载
    积分:1
  • 696516资源总数
  • 106409会员总数
  • 8今日下载