CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - Rectangle
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - Rectangle - List
[
JSP/Java
]
hm6
DL : 0
抽象类的使用 设计一个类层次,定义一个抽象类--形状,其中包括有求形状的面积的抽象方法。 ----继承该抽象类定义三角型、矩形、圆。 ----编写一个主程序将一个三角形、矩形、圆存入一个数组中,将数组中各类图形的面积输出。-kind of abstract designs a class hierarchy, the definition of an abstract category -- shape, These include the shape of the area for an abstract method. ---- Succession of the abstract category definition triangular, rectangular, round. ---- Prepare a main program will be a triangle, rectangle, circle into an array, various array of graphics output of the area.
Date
: 2008-10-13
Size
: 1021byte
User
:
黄铭
[
JSP/Java
]
xccc
DL : 0
简单定义一个由矩形左上角和右下角两点定义的矩形对象的类。该类包含一个复制矩形的构造函数和一个返回矩形对象的方法,该对象包含当前包含当前对象,并且该矩形作为参数传递该方法,还有一个用于显示该矩形的定义的点的方法。生成4个矩形对这个类进行测试,-simple definition of a rectangle from the upper left and lower right corner 2:00 definition of the rectangular object class. Such rectangle contains a copy of Constructors and a return rectangular object methods The targets included the current contains current object, and the rectangular pass as a parameter of the method, There is also a show for the rectangular point of the definition of the method. 4 rectangular formation of this type test
Date
: 2008-10-13
Size
: 51.82kb
User
:
chen
[
JSP/Java
]
ColorRect
DL : 0
向容器中设置背景色为桌面颜色;设置颜色,并绘制矩形、圆角矩形、椭圆,并且将其显示出来;,并填充矩形、圆角矩形、椭圆(设置颜色);设置字体,并显示文本信息。-containers to set the background color of the desktop color; Set the color, and drawing rectangle, rounded corner rectangles, ovals, and to demonstrate; , and filled rectangle, rounded corner rectangle, ellipse (the use of colored); installed fonts, and display text information.
Date
: 2008-10-13
Size
: 1.01kb
User
:
昌
[
JSP/Java
]
PaintRect
DL : 0
这是两个画矩形的小程序、程序主要通过获取鼠标的坐标,和结束的坐标来画出这个矩形,并且在画面上可以保存已画的矩形,设定了可画的个数限定。以此类推,可以作出一个画板来啦-This two small rectangular painting processes, procedures, primarily through the acquisition mouse coordinates, and ending coordinates of the rectangle to paint, and the picture has been painted to keep the rectangular, created a limited number of paintings. By analogy, can make a slate ah!
Date
: 2008-10-13
Size
: 1.53kb
User
:
李敏
[
JSP/Java
]
SimpleDrawBoard
DL : 0
一个使用Java完成的简易绘图板,可以画直线、矩形、圆,及自由绘图。-use a simple Java completed the drawing board, line drawing, rectangle, circle, and free drawings.
Date
: 2008-10-13
Size
: 14.19kb
User
:
白色木马
[
JSP/Java
]
screenSavers
DL : 0
屏保应用程序,使用JAVA开发的一个简单的屏幕保护程序,能自动绘制矩形-Screen Saving application procedures, the use of the JAVA development of a simple screen saver to automatically drawing rectangle
Date
: 2008-10-13
Size
: 26.41kb
User
:
jk
[
JSP/Java
]
testshape
DL : 0
3. 设计一个接口Shape,接口中包含方法:Draw和Resize。定义一些具体类,如:Point、Line、Circle、Rectangle等,每个类都实现接口Shape。Draw方法绘制图形,Resize方法改变图形大小。用Java实现这些接口和类,并用测试类测试它们。 注意:不需要真正绘制图形,如Line的Draw方法只需输出下面文本即可: “直线的起点是(x1,y1,),终点是(x2,y2)”-3. A Shape interface design, interfaces include : Draw and Resize. Some specific type definition, such as : Point, Line, Circle, Rectangle, each category are achieving Shape interface. Draw method of drawing, graphics Resize changed size. Using Java to achieve these interfaces and class, and use tests such testing. Note : no real drawing, such as the Draw Line method, only the following text can be output : "line is the starting point (x1, y1), and the ultimate goal is to (x2, y2)"
Date
: 2008-10-13
Size
: 978byte
User
:
吴泽伟
[
JSP/Java
]
JavaDraw
DL : 0
绘图程序,可以画圆,矩形,直线,任意轨迹,指定颜色,添加文字-mapping procedures, Circle, rectangle, straight lines, arbitrary trajectory, the designated colors, add text
Date
: 2008-10-13
Size
: 54.75kb
User
:
小奇
[
JSP/Java
]
DiagramEditor
DL : 0
一个图形编辑器,可绘制圆形、矩形、直线等 可选择、删除-a graphics editor, can be drawn circle, rectangle, line, etc., to choose to delete
Date
: 2008-10-13
Size
: 53.42kb
User
:
张海青
[
JSP/Java
]
testshape
DL : 0
3. 设计一个接口Shape,接口中包含方法:Draw和Resize。定义一些具体类,如:Point、Line、Circle、Rectangle等,每个类都实现接口Shape。Draw方法绘制图形,Resize方法改变图形大小。用Java实现这些接口和类,并用测试类测试它们。 注意:不需要真正绘制图形,如Line的Draw方法只需输出下面文本即可: “直线的起点是(x1,y1,),终点是(x2,y2)”-3. A Shape interface design, interfaces include : Draw and Resize. Some specific type definition, such as : Point, Line, Circle, Rectangle, each category are achieving Shape interface. Draw method of drawing, graphics Resize changed size. Using Java to achieve these interfaces and class, and use tests such testing. Note : no real drawing, such as the Draw Line method, only the following text can be output : "line is the starting point (x1, y1), and the ultimate goal is to (x2, y2)"
Date
: 2025-12-16
Size
: 1kb
User
:
[
JSP/Java
]
DiagramEditor
DL : 0
一个图形编辑器,可绘制圆形、矩形、直线等 可选择、删除-a graphics editor, can be drawn circle, rectangle, line, etc., to choose to delete
Date
: 2025-12-16
Size
: 53kb
User
:
张海青
[
JSP/Java
]
rectangle
DL : 0
矩形类的说明,包含所有的属性,如长度,宽度等-description of the class rectangle
Date
: 2025-12-16
Size
: 1kb
User
:
xinyuanyu
[
JSP/Java
]
Rectangle
DL : 0
一个计算周长和面积的小程序,使用java语言既简单又实用-Calculate perimeter and area of a small program, using java language is simple and practical
Date
: 2025-12-16
Size
: 1kb
User
:
maxinkuan
[
JSP/Java
]
Rectangle
DL : 0
创建用于表示屏幕或平面坐标系上矩形的数据类型 Rectangle-Created for that screen or flat rectangular coordinate system on the data type Rectangle
Date
: 2025-12-16
Size
: 6kb
User
:
山东
[
JSP/Java
]
Rectangle
DL : 0
做一个简单的矩形面积计算器,要求你输入长和宽就可以计算出其面积。- Create a class Rectangle (and store it in a file called Rectangle.java) It should have two instance variables l (the rectangle’s length) and w (the rectangle’s width). It should have one method that calculates the area of the rectangle and returns it to the caller. Create a main() method in the same class for testing purposes. In the main() method, create one rectangle with the dimensions (l,w)=(8,5), and another rectangle with the dimensions (l,w)=(9,9). Call your area method on each rectangle and print the corresponding result.
Date
: 2025-12-16
Size
: 1kb
User
:
撒旦
[
JSP/Java
]
Rectangle
DL : 0
画出一个矩形 长宽都可自定义 还可以计算其面积-Create a class Rectangle.i) It should have two instance variables l (the rectangle’s length) and w (the rectangle’s width). ii) It should have one method that calculates the area of the rectangle and returns it to the caller. iii) Create a main() method in the same class for testing purposes. In the main() method, create one rectangle with the dimensions (l,w)=(8,6), and another rectangle with the dimensions (l,w)=(7,7). Call your area method on each rectangle and print the corresponding result.
Date
: 2025-12-16
Size
: 2kb
User
:
王杰
[
JSP/Java
]
Rectangle
DL : 0
一个计算长方形面积的简易程序 可更为输入边长计算面积的程序-calculates the area of the rectangle
Date
: 2025-12-16
Size
: 1kb
User
:
商文熙
[
JSP/Java
]
rectangle
DL : 0
java写的关于长方形在坐标系的程序,可以比较长方形,求交集并集补集,调试通过可运行的代码。-java write on a rectangular coordinate system in the program, you can compare a rectangle, for intersection and set complement, debugging code can run.
Date
: 2025-12-16
Size
: 2kb
User
:
jana
[
JSP/Java
]
Rectangle-Kopia
DL : 0
RECTANGLE-KOPIA JAVA RECTANGLE-KOPIA JAVA RECTANGLE-KOPIA JAVA-RECTANGLE-KOPIA JAVA RECTANGLE-KOPIA JAVA RECTANGLE-KOPIA JAVA RECTANGLE-KOPIA JAVA
Date
: 2025-12-16
Size
: 1kb
User
:
alpii
[
JSP/Java
]
Rectangle
DL : 0
Create a class Rectangle,calculate and print the responding result of the area of two rectangles with the dimensions (l,w)=(8,6) and (l,w)=(7,7).
Date
: 2025-12-16
Size
: 1kb
User
:
«
1
2
3
4
5
6
7
8
»
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.