登录
首页 » Java » 时钟 走动

时钟 走动

于 2020-06-19 发布
0 761
下载积分: 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 个回复

  • 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
  • struts2.1.8-jar
    struts2基本包,可以用此来开发j2ee的各项程序(struts2 jibenbao)
    2015-04-03 16:16:35下载
    积分:1
  • aidl
    夸进程调用,顾名思义,是一个夸进程调用别的程序。(The boast process called, by definition, is a boast process calls other procedures.)
    2013-04-16 08:53:24下载
    积分:1
  • MUSIC
    互耦影响存在时修正MUSIC算法的DOA估计(Modified MUSIC algorithm when mutual coupling effects of the presence of DOA estimates)
    2021-01-04 09:58:56下载
    积分:1
  • Exe7_3
    设计一个跟踪鼠标移动的窗口。窗口中间添加一个蓝色背景白色文字的标签,在标签上显示鼠标指针当前坐标值。在窗口下方添加一个按钮,点击按钮可以在停止跟踪和继续跟踪之间进行切换(Designed to track the mouse movement a window. Middle of the window to add a blue background, white text label, the label displays the current mouse pointer coordinates. Add a button in the window below, click the button to stop the track and continue to follow in the switch between)
    2011-12-23 22:07:06下载
    积分:1
  • 语音播报与识别2011
    产品音频信号测试,通过labview做出的建议的声音分析,平率分析对比的功能。(Product audio signal testing, through the voice analysis of the recommendations made by the lab view, flat analysis and comparison function.)
    2018-10-29 15:42:21下载
    积分:1
  • commons-codecom.tar
    java编码的一个开发包,开放源代码的文件,建jsp网页用(java coding of a development kits, open source documents, using built jsp website. .)
    2006-12-30 09:43:43下载
    积分:1
  • 3src
    java学习资料,内附源码学习交流。java开发环境(java learning materials, enclosing the source learning exchanges.code)
    2013-11-13 15:43:40下载
    积分:1
  • Cascade
    cascade密钥协商的程序,希望对大家有所帮助吧(this is a programme of cascade key Java)
    2019-06-26 17:04:48下载
    积分:1
  • DR2
    美国空军标准的飞行器气动计算软件DATCOM的可视化版本,使用更加方便!(A software with GUI, which can be used to calculate aerodynamic characteristics of a aircraft!)
    2020-07-03 14:20:01下载
    积分:1
  • 696518资源总数
  • 105885会员总数
  • 31今日下载