登录
首页 » Java » 时钟 走动

时钟 走动

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

  • java并发实战源码
    说明:  java并发编程实战源码 附有本书所有源码,maven 导入 eclipse或idea(Java Concurrent Programming actual source code)
    2020-08-05 10:38:40下载
    积分:1
  • train
    jsp 实现的火车售票系统 课程作业 需要的可以下载看看(jsp realization train ticketing system)
    2015-01-07 15:05:40下载
    积分:1
  • dingjifen
    用JAVA实现简单的定积分,里面有详细说明(use JAVA to realize dingjifen with detailed instruction)
    2014-05-25 22:33:58下载
    积分:1
  • Think-In-Java-4-(chinese)
    thinking in java 是一部经典的java书籍,无论是是对于初学者还是有一定开发经验的java程序员来说,他都是一不好说,称得上是一部经典。(thinking in java java books is a classic, whether for a beginner or have some experience in the development of java programmers, he is a hard to say, be regarded as a classic.)
    2014-02-08 11:04:45下载
    积分:1
  • STRUTS-12A
    THIS IS A SIMPLE STRUTS EXAMPLE
    2014-11-21 01:26:36下载
    积分:1
  • AccountSetupOptionsTests
    Tests of basic UI logic in the AccountSetupOptions screen for Andriod.
    2013-10-06 00:29:52下载
    积分:1
  • java基础教
    说明:  java基础教学讲义。。。。。。。。。。。。。。。。(Java basic teaching handout)
    2020-06-21 14:20:02下载
    积分:1
  • CoreJava
    非常经典的简介教程,CoreJava内容精简,介绍了Java中的核心内容(Very classic profile tutorial, CoreJava concise, introduced in the core Java)
    2010-06-02 10:34:03下载
    积分:1
  • LineIterator
    Line Iterator implements Iterator Source Code for Andriod.
    2014-01-23 11:05:51下载
    积分:1
  • suanfa
    各种常见的排序算法包括n^2和nlogn级别的算法及优化(A variety of common sorting algorithms, including n^2 and nlogn level algorithms and optimization)
    2017-09-19 20:24:54下载
    积分:1
  • 696518资源总数
  • 105877会员总数
  • 14今日下载