登录
首页 » Java » 时钟 走动

时钟 走动

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

  • JavaFCADemo200101_src
    形式概念分析,概念格算法 包含两个算法,一个算法是对给定的概念上下文数据集并生成概念格,另一个算法则是绘制出概念格的图。(This demo shows two algorithms related to Formal Concept Analysis. Algorithm one calculates all Formal Concepts contained in a given Formal Context. The second algorithm draws a Formal Concept Lattice corresponding to the given Context. The Lattice is not drawn taking any aesthetic considerations into account. This will be part of future enhancements. The program was written using Java (my first Java experience, a quite complex "Hello World").)
    2021-01-08 18:28:52下载
    积分:1
  • contact-management-system
    java的通讯录,有查找联系人,添加联系人,显示联系人,保存联系人等功能(contact management system)
    2016-06-15 15:26:40下载
    积分:1
  • Utile
    根据值来取ID,或者根据ID来取值,便于两者之间的转换(Exchange from ID and values, we can tanslate between ID and values easily. )
    2005-07-12 15:19:32下载
    积分:1
  • internal_error
    Class Dumper extends Base Dumper Source Code for Andriod.
    2014-01-08 14:03:58下载
    积分: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
  • UriRecord
    A parsed record containing a Uri Source Code for Andriod.
    2014-03-04 00:10:35下载
    积分:1
  • DefaultFileComparator
    Default File Comparator implements Comparator, Serializable.
    2014-01-22 14:13:04下载
    积分:1
  • OpenJavaTradingSystem-bin-0.13 (1)
    java trading stock platform
    2017-09-13 11:38:34下载
    积分:1
  • synchronism
    一个用于实现不同数据库数据同步的程序,用jbuider开发,在一个数据库数据修改后,通过触发器触发同步程序,同步程序通过socket与另一个数据库的同步程序通信,达到数据同步的目的(One for different database data synchronization process, using jbuider development, data modifications in a database after the synchronization process through the flip-flop trigger, synchronization procedure socket with another database synchronization process communication, to achieve the purpose of data synchronization)
    2007-10-16 10:28:23下载
    积分:1
  • esp8266
    说明:  hye all i very need power jack dc supply
    2019-03-18 23:03:32下载
    积分:1
  • 696518资源总数
  • 104349会员总数
  • 32今日下载