文件名称:chapter8
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2015-12-21
- 文件大小:
- 13kb
- 下载次数:
- 0次
- 提 供 者:
- 李**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
1. 在实验四 2.a与2.b所定义的P类(点的抽象)和颜色类Color类的基础上,定义像素类。
a. 声明P类表示一个点的x轴和y轴坐标,声明构造方法和拷贝构造方法,
声明若干get()和set()方法获得或设置坐标,声明move()方法将当前坐标
移动若干位置。
b. 声明颜色类Color
一种颜色由(红,绿,蓝)三元色值组成,称为RGB值。 一个int整数(四个
字节)可表示一种颜色,结构为:最高字节全1,其后3字节分别存储“红、
绿、蓝”单色值,单色值范围是0 ~ 255。例如,0xff00ff00表示绿色,RGB值
为(0,255,0)。声明构造方法和拷贝构造方法,声明多个get()和set()方法获得
或设置该颜色的RGB值。
c. 声明像素类Pixel继承Point类,像素是一个带颜色的坐标点。
-1. On the basis of experiments with four 2.a 2.b defined P class (point of abstraction) and color class Color class, the definition of a pixel class.
a. Statement P class represents a point of x-axis and y-axis coordinates, declare constructor and copy constructor,
Statement number of get () and set () method to get or set the coordinates, declare move () method of the current coordinates
Moving several locations.
b. declare color category Color
A color the (red, green, blue) values of three primary colors, known as the RGB value. An int integer (four
a. 声明P类表示一个点的x轴和y轴坐标,声明构造方法和拷贝构造方法,
声明若干get()和set()方法获得或设置坐标,声明move()方法将当前坐标
移动若干位置。
b. 声明颜色类Color
一种颜色由(红,绿,蓝)三元色值组成,称为RGB值。 一个int整数(四个
字节)可表示一种颜色,结构为:最高字节全1,其后3字节分别存储“红、
绿、蓝”单色值,单色值范围是0 ~ 255。例如,0xff00ff00表示绿色,RGB值
为(0,255,0)。声明构造方法和拷贝构造方法,声明多个get()和set()方法获得
或设置该颜色的RGB值。
c. 声明像素类Pixel继承Point类,像素是一个带颜色的坐标点。
-1. On the basis of experiments with four 2.a 2.b defined P class (point of abstraction) and color class Color class, the definition of a pixel class.
a. Statement P class represents a point of x-axis and y-axis coordinates, declare constructor and copy constructor,
Statement number of get () and set () method to get or set the coordinates, declare move () method of the current coordinates
Moving several locations.
b. declare color category Color
A color the (red, green, blue) values of three primary colors, known as the RGB value. An int integer (four
(系统自动生成,下载前可以参看下载内容)
下载文件列表
chapter8\例子1\Example8_1.java
........\例子1
........\.....0\Example8_10.java
........\例子10
........\.....1\Example8_11.java
........\例子11
........\.....2\Example8_12.java
........\例子12
........\.....3\Example8_13.java
........\例子13
........\.....4\Example8_14.java
........\例子14
........\.....5\Example8_15.java
........\例子15
........\.....6\CalendarBean.java
........\......\Example8_16.java
........\例子16
........\.....7\Example8_17.java
........\例子17
........\.....8\Example8_18.java
........\例子18
........\.....9\Example8_19.java
........\例子19
........\....2\Example8_2.java
........\.....\SortString.java
........\例子2
........\.....0\Example8_20.java
........\例子20
........\.....1\Example8_21.java
........\例子21
........\.....2\Example8_22.java
........\例子22
........\.....3\Example8_23.java
........\例子23
........\.....4\Example8_24.java
........\例子24
........\....3\Example8_3.java
........\例子3
........\....4\Example8_4.java
........\例子4
........\....5\Example8_5.java
........\.....\TV.java
........\例子5
........\....6\Example8_6.java
........\例子6
........\....7\Example8_7.java
........\例子7
........\....8\EncryptAndDecrypt.java
........\.....\Example8_8.java
........\例子8
........\....9\Example8_9.java
........\例子9
chapter8