登录
首页 » Java » 时钟 走动

时钟 走动

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

  • Thinking-in-java-
    Java编程思想第四版完整中文高清版(免费)(Java programming ideas fourth edition of the complete Chinese HD version (free))
    2013-12-26 14:05:51下载
    积分:1
  • shuzuchengji-
    实现数组乘积,Java代码编写 方便 (Array of product realization)
    2013-12-23 09:25:52下载
    积分:1
  • popupwindow-master
    一个简单的用Android编写的弹出框程序,适合初学者(Android Programming, Android Initial Architecture, Android Developers Necessary)
    2019-05-29 17:04:55下载
    积分:1
  • chat__code
    本文件为简易聊天系统源码,分为客户端和服务器端,可完成单人聊天、多人聊天、发布公告、查看日志等功能。是一个简易的仿qq的聊天系统,可在eclipse环境下运行(it is code for chat under eclipse)
    2020-10-27 20:59:58下载
    积分:1
  • FP_growth
    数据挖掘 关联规则 FP增长算法 简单 易懂 适合初级人员(DataMining DataMining DataMining DataMining DataMining)
    2011-12-13 16:36:29下载
    积分:1
  • 软件开发常用词汇
    java开发常用单词,北京尚学堂出品。。。。。。(Java develops commonly used words, which are produced by Beijing Shangxue School.)
    2019-04-30 20:15:34下载
    积分:1
  • BTClient
    安卓上的蓝牙串口助手,包含源代码,可以和单片夹等其他的设备相连。(Bluetooth serial port on Andrews assistant, including source code, and other devices can be connected to single folders.)
    2020-11-07 20:59:48下载
    积分:1
  • conquer_web_2.0
    第2章 基于Ajax的留言板示例 第3章 JavaScript在Ajax中的作用范例 ……………… 第20章 程序描述:本章将实现上传文件时显示进度条的功能。当上传文件时,客户端同时显示文件上传的进度,从而及时了解文件传送情况(Chapter 2 on the message board Ajax example, Chapter 3 of JavaScript in Ajax for the using examples ... ... ... ... ... ... Chapter 20 proceedings Description : The chapter will achieve upload documents show the progress of the function. When upload documents, the client also shows that the progress of file uploads, so the time to understand the transmission of documents)
    2006-11-07 21:56:50下载
    积分:1
  • Mouse
    实现在TextArea中输出最后一次鼠标单击的x,y坐标和连续单击的次数。(In the output of the TextArea realize the last time the mouse click of the x, y and continuous click on the number of times.)
    2012-05-14 12:53:43下载
    积分:1
  • taxonomy
    Taxonomy is the science of naming, describing and classifying organisms and includes all plants, animals and microorganisms of the world.
    2015-06-18 23:02:15下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载