登录
首页 » Java » 时钟 走动

时钟 走动

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

  • pojo
    This is an example POJO Web service. It shows how to expose the methods of a Java class as a Web service using Aixs2.
    2017-05-07 01:08:22下载
    积分:1
  • erp-framework-master
    说明:  erp系统,包含生产,销售,以及一系列功能,有BUG(Erp system, including production, sales, and a series of functions, has bugs)
    2020-08-13 16:30:43下载
    积分:1
  • rc4
    RC4 算法,使用JAVASCRIPT实现 (RC4 algorithm, the realization of the use of JAVASCRIPT)
    2008-01-05 23:35:21下载
    积分:1
  • upgrade
    说明:  This is a content manage system for upgrade, java platform
    2020-06-20 08:00:01下载
    积分:1
  • SLVIPURLhtml
    SL会员商城HTML,每个点都非常详细。功能齐全。(SL Member Mall HTML, each point is very detailed. full functioning.)
    2016-10-12 10:36:19下载
    积分:1
  • ex01
    1.1 作业描述 设计一个生成和显示时间的分布式应用程序,实现以下功能: 1、 一个服务器生成时间,并在多个不同节点的客户端上显示。 2、 客户端有多种时间显示方式,如模拟时钟、数字时钟。 1.2 作业要求 下面是设计时需要满足的四个要求: 1、 打破客户端和服务器开发过程中的紧耦合。 2、 打破客户端和服务器运行时的紧耦合,即不需要固定的机器,不限制客户端的数目等。 3、 允许客户端显示不同的事件。 4、 使用RPC机制或RMI机制。 (1.1 Design a job description to generate and display time distributed applications, the following functions: 1, a time server generates and displays on the client several different nodes. 2, the client has a variety of time display, such as an analog clock, a digital clock. 1.2 Operating Requirements The following is required to meet four design requirements: 1, breaking client and server development process tightly coupled. 2, breaking the tight coupling client and server runtime that does not require a fixed machine, does not limit the number of clients and so on. 3, allows clients to display different events. 4, using the RPC mechanism or RMI mechanism.)
    2014-01-22 16:18:51下载
    积分:1
  • weight
    用天平称重时,已知给定的砝码,求解最多能称出多少不同的重量。(With weighing scales, it is known that a given weight, solving most able to call out the number of different weight.)
    2012-11-06 16:11:36下载
    积分:1
  • SessionListener
    防止一个用户多次登陆,session统计在线人数(To prevent a user repeatedly landing, session statistics on the number of online)
    2009-03-06 12:59:47下载
    积分:1
  • ms3dImportExport_ver1_1.zip
    ms3dImportExport_ver1_1是用于3Dmax中导入导出ms3d格式文件的插件(ms3dImportExport_ver1_1 for 3Dmax format files in the import and export plug-ms3d)
    2011-11-27 22:27:50下载
    积分:1
  • mysql面试专题及答案.pdf(共7页)
    以及在 mysql 数据库中索引的工作机制是什么? 有哪些数据库优化方面的经验? 数据库三范式是什么? 各大厂数据库面试热门考题
    2020-03-24下载
    积分:1
  • 696516资源总数
  • 106618会员总数
  • 4今日下载