文件名称:AnalogFan
- 所属分类:
- JSP源码/Java
- 资源属性:
- [MacOS] [Java] [源码]
- 上传时间:
- 2013-08-24
- 文件大小:
- 13kb
- 下载次数:
- 0次
- 提 供 者:
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
版本2:满分 15 分
修改版本 1 中Fan 类,让其继承 JPanel 类,并且把 color属性设置为 Color类型,默认
属性为 red。随机产生 radius ,取值范围为 1-5;随机产生颜色,取值范围为 red、blue 、yellow 、
green、orange ;根据 color、radius 属性值绘制风扇。运行如下图:
版本3:满分 20 分
让版本 2 中的风扇转起来。创建一个 FanControl 类包含以下内容:Start 、Stop 、Reverse
按钮,用于开启、关闭、反转控制;一个滚动条控制速度。运行示例如下:-Version 2: 15 points out of a modified version of a class in the Fan, let inherits JPanel class, and the color attribute is set to Color type, default attribute is red. Randomly generated radius, in the range of 1-5 randomly generated color range red, blue, yellow, green, orange according to color, radius attribute values plotted fan. Run the following diagram: Version 3: Version 2 out of 20 points for the fans turn up. Create a FanControl class contains the following: Start, Stop, Reverse buttons for opening, closing and reverse control a scroll bar control speed. To run the sample as follows:
修改版本 1 中Fan 类,让其继承 JPanel 类,并且把 color属性设置为 Color类型,默认
属性为 red。随机产生 radius ,取值范围为 1-5;随机产生颜色,取值范围为 red、blue 、yellow 、
green、orange ;根据 color、radius 属性值绘制风扇。运行如下图:
版本3:满分 20 分
让版本 2 中的风扇转起来。创建一个 FanControl 类包含以下内容:Start 、Stop 、Reverse
按钮,用于开启、关闭、反转控制;一个滚动条控制速度。运行示例如下:-Version 2: 15 points out of a modified version of a class in the Fan, let inherits JPanel class, and the color attribute is set to Color type, default attribute is red. Randomly generated radius, in the range of 1-5 randomly generated color range red, blue, yellow, green, orange according to color, radius attribute values plotted fan. Run the following diagram: Version 3: Version 2 out of 20 points for the fans turn up. Create a FanControl class contains the following: Start, Stop, Reverse buttons for opening, closing and reverse control a scroll bar control speed. To run the sample as follows:
(系统自动生成,下载前可以参看下载内容)
下载文件列表
AnalogFan\.classpath
.........\.project
.........\.settings\org.eclipse.jdt.core.prefs
.........\.........\org.eclipse.jdt.ui.prefs
.........\bin\Fan.class
.........\...\Fan1.class
.........\...\FanControl$1.class
.........\...\FanControl$2.class
.........\...\FanControl$3.class
.........\...\FanControl$4.class
.........\...\FanControl.class
.........\...\java.policy.applet
.........\...\Test1.class
.........\...\Test2.class
.........\src\Fan.java
.........\...\Fan1.java
.........\...\FanControl.java
.........\...\Test1.java
.........\...\Test2.java
.........\.settings
.........\bin
.........\src
AnalogFan