资源简介
官方apache-tomcat-5.5.36.zip,运行linux,window
代码片段和文件信息
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License Version 2.0
* (the “License“); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing software
* distributed under the License is distributed on an “AS IS“ BASIS
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import java.util.*;
import java.awt.*;
import java.applet.*;
import java.text.*;
/**
* Time!
*
* @author Rachel Gollub
*/
public class Clock2 extends applet implements Runnable {
Thread timer; // The thread that displays clock
int lastxs lastys lastxm
lastym lastxh lastyh; // Dimensions used to draw hands
SimpleDateFormat formatter; // Formats the date displayed
String lastdate; // String to hold date displayed
Font clockFaceFont; // Font for number display on clock
Date currentDate; // Used to get date to display
Color handColor; // Color of main hands and dial
Color numberColor; // Color of second hand and numbers
public void init() {
int xy;
lastxs = lastys = lastxm = lastym = lastxh = lastyh = 0;
formatter = new SimpleDateFormat (“EEE MMM dd hh:mm:ss yyyy“ Locale.getDefault());
currentDate = new Date();
lastdate = formatter.format(currentDate);
clockFaceFont = new Font(“Serif“ Font.PLAIN 14);
handColor = Color.blue;
numberColor = Color.darkGray;
try {
setBackground(new Color(Integer.parseInt(getParameter(“bgcolor“)16)));
} catch (Exception E) { }
try {
handColor = new Color(Integer.parseInt(getParameter(“fgcolor1“)16));
} catch (Exception E) { }
try {
numberColor = new Color(Integer.parseInt(getParameter(“fgcolor2“)16));
} catch (Exception E) { }
resize(300300); // Set clock window size
}
// Plotpoints allows calculation to only cover 45 degrees of the circle
// and then mirror
public void plotpoints(int x0 int y0 int x int y Graphics g) {
g.drawLine(x0+xy0+yx0+xy0+y);
g.drawLine(x0+yy0+xx0+yy0+x);
g.drawLine(x0+yy0-xx0+yy0-x);
g.drawLine(x0+xy0-yx0+xy0-y);
g.drawLine(x0-xy0-yx0-xy0-y);
g.drawLine(x0-yy0-xx0-yy0-x);
g.drawLine(x0-yy0+xx0-yy0+x);
g.drawLine(x0-xy0+yx0-xy0+y);
}
//
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2012-10-05 14:06 apache-tomcat-5.5.36\
目录 0 2012-10-05 14:05 apache-tomcat-5.5.36\bin\
目录 0 2012-10-05 14:05 apache-tomcat-5.5.36\bin\i64\
目录 0 2012-10-05 14:05 apache-tomcat-5.5.36\bin\x64\
目录 0 2012-10-05 14:05 apache-tomcat-5.5.36\common\
目录 0 2012-10-05 14:05 apache-tomcat-5.5.36\common\classes\
目录 0 2012-10-05 14:05 apache-tomcat-5.5.36\common\endorsed\
目录 0 2012-10-05 14:05 apache-tomcat-5.5.36\common\i18n\
目录 0 2012-10-05 14:05 apache-tomcat-5.5.36\common\lib\
目录 0 2012-10-05 14:05 apache-tomcat-5.5.36\conf\
目录 0 2012-10-05 14:05 apache-tomcat-5.5.36\conf\Catalina\
目录 0 2012-10-05 14:05 apache-tomcat-5.5.36\conf\Catalina\localhost\
目录 0 2012-10-05 14:05 apache-tomcat-5.5.36\logs\
目录 0 2012-10-05 14:05 apache-tomcat-5.5.36\server\
目录 0 2012-10-05 14:05 apache-tomcat-5.5.36\server\classes\
目录 0 2012-10-05 14:05 apache-tomcat-5.5.36\server\lib\
目录 0 2012-10-05 14:05 apache-tomcat-5.5.36\server\webapps\
目录 0 2012-10-05 14:05 apache-tomcat-5.5.36\server\webapps\host-manager\
目录 0 2012-10-05 14:05 apache-tomcat-5.5.36\server\webapps\host-manager\WEB-INF\
目录 0 2012-10-05 14:05 apache-tomcat-5.5.36\server\webapps\host-manager\WEB-INF\lib\
目录 0 2012-10-05 14:05 apache-tomcat-5.5.36\server\webapps\host-manager\images\
目录 0 2012-10-05 14:05 apache-tomcat-5.5.36\server\webapps\manager\
目录 0 2012-10-05 14:05 apache-tomcat-5.5.36\server\webapps\manager\WEB-INF\
目录 0 2012-10-05 14:05 apache-tomcat-5.5.36\server\webapps\manager\WEB-INF\lib\
目录 0 2012-10-05 14:05 apache-tomcat-5.5.36\server\webapps\manager\images\
目录 0 2012-10-05 14:05 apache-tomcat-5.5.36\shared\
目录 0 2012-10-05 14:05 apache-tomcat-5.5.36\shared\classes\
目录 0 2012-10-05 14:05 apache-tomcat-5.5.36\shared\lib\
目录 0 2012-10-05 14:05 apache-tomcat-5.5.36\temp\
目录 0 2012-10-05 14:05 apache-tomcat-5.5.36\webapps\
目录 0 2012-10-05 14:05 apache-tomcat-5.5.36\webapps\ROOT\
............此处省略986个文件信息
- 上一篇:DDR3 JEDEC 官方标准文档
- 下一篇:LoadRunner11教程完整版
相关资源
- Tomcat7.0.52绿色版
- 虚拟机配置+群集配置+tomcat服务器实现
- 自动清除tomcat缓存及日志
- 度假村管理系统
- 基于MVC的网上书城系统
- tomcat控制台详细错误日志设置
- apache-tomcat-7.0.79.zip
- 牛族Tomcat-auot-最新v1.2版
- SSH功能完善的通讯录
- tomcat6.0 64位
- how tomcat works 高清中文版,英文版和随
- tomcat7.0.42 下部署websocket需要替换的包
- tomcat7.063稳定版
- apache-tomcat-6.0.47.tar.gz
- apache-tomcat-7.0.63-windows-x64
- apache-tomcat-9.0.0.M26.tar
- tomcat-8.0.47
- linux tomcat 32位
- tomcat-6.0.26.tar.gz
- apache-tomact-8.0.20(32位和64位)
- 分布式集群Session共享 简单多tomcat8+
- apache-tomcat-8.5.8.tar.gz
- tomcat6.0.20免安装版
- tomcat 6.020解压版
- apache-tomcat-6.0.41
- apache-tomcat-7.0.79.tar.gz
- tomcat官方8.0.53版Windows-64位
- apache-tomcat-8.5.23-windows-x64.zip
- CVE-2019-0232 Tomcat RCE 远程命令执行漏洞
- tomcat7.0.32 32位
评论
共有 条评论