資源簡介
官方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教程完整版
評論
共有 條評論