Description: 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)" Platform: |
Size: 1024 |
Author: |
Hits:
Description: 利用Java 3D API来编写的一个Java三维动画的演示程序。这个程序将在中央显示一行3D的文字,在4个角分别显示4个不同的几何形体,并不停地旋转变化颜色,同时循环播放音乐。-use Java 3D API to write a Java 3D animation demonstration program. This procedure will be shown here in the central 3D language, the four Kok showed four different geometric shape, and are constantly rotating color change, while circulation music. Platform: |
Size: 560128 |
Author:叶志勇 |
Hits:
Description: 该组件可以任意在按钮上绘画你需要的形状(Shape),具体代码也包含在里面。-the components can be arbitrarily paint on the buttons you need to shape (Shape), also contains specific code inside. Platform: |
Size: 1024 |
Author:李长亮 |
Hits:
Description: 这个是用JAVA写的用来读取SHAPEFILE文件的源码,大家共同进步。-this is written in JAVA SHAPEFILE used to read in the source document, we seek common progress. Platform: |
Size: 3072 |
Author:cumthemu |
Hits:
Description: 做GIS开发的朋友常会遇到读写ESRI Shape文件的问题,这个是读写Shape格式的Java小程序,结构算法毕竟清晰,对于其他平台下需要的朋友也很有帮助-do GIS friends often encounter ESRI Shape document literacy problems this format is writing Shape of Java procedures, structures algorithm After all clear. other platforms are also in need of helpful friends Platform: |
Size: 80896 |
Author:zpp |
Hits:
Description: 一个读取ERSI公司的SHAPE图层的好的粒子,包含许多中情况的处理.有助于学习shp格式的认识.-a reader ERSI the SHAPE good layer of particles, many contain the situation addressed. AutoCAD format to the learning process of understanding. Platform: |
Size: 2048 |
Author:刘枫 |
Hits:
Description: 抽象类Shape,抽象方法:计算面积和显示面积,派生子类矩形和三角形-Abstract class Shape, abstract methods: calculating the area and display area, derived subclass of rectangular and triangular Platform: |
Size: 1024 |
Author:luodi |
Hits:
Description: 基于JAVA实现的图像特征提取源代码 图像特征提取的源代码,使用sobel算子提取图像边缘,使用hu矩提取图像形状特征,使用颜色中心矩提取图像颜色特征,请使用eclipes导入该工程并运行test文件(可将test文件中去掉一些注释部分运行更多功能)。-JAVA based on the realization of the image feature extraction image feature extraction source code source code, use the sobel operator edge extraction, the use of hu moments shape feature extraction of images, the use of color centers Moment image color feature extraction, use eclipes into the project and run test file (test file can be removed from some parts of Notes to run more features). Platform: |
Size: 36864 |
Author:范卫华 |
Hits:
Description: /*请分别定义图形类Shape(抽象基类),继承类矩形类Rectangle、正方形类Square、
圆形类Circle;它们具有的方法是计算周长和面积。在另一个类的main函数中分别创建矩形、
正方形和圆形对象,设置所需的属性值,打印其周长和面积。*/-/* Definition graphics categories respectively Shape (abstract base class), the succession of quasi-rectangular type Rectangle, square-type Square, round type Circle the way they are calculating the perimeter and area. In another category, respectively, the main function in the creation of rectangular, square and round objects, set the required attribute value, print the perimeter and area.* / Platform: |
Size: 1024 |
Author:李松 |
Hits:
Description: /*做一个抽象的shape类 有一个可计算面积的抽象方法
1.做矩形和圆形两个类继承shape类 各自计算面积
2.根据两种图形的面积求法各自设置成员变量
3.设置图形类 包含图形名字和一个shape类型的成员 变量 并含一个方法 实现shape类成员的面积操作
4.做一测试类 分别根据不同的shape类对象实现多态*/-/* Do an abstract shape class has a way to calculate the size of an abstract. Do two types of rectangular and circular shape inheritance calculated area of each category 2. In accordance with the size of the two graphics method members separate variables 3. Set graphics category contains the name and a graphic shape types of member variables and methods to achieve a shape with a member of the area of operation of Class 4. to do a test-class shape, respectively, according to different types of multi-modal object* / Platform: |
Size: 1024 |
Author:柳婷婷 |
Hits:
Description: 读取shape文件的源码,尤其是搞GIS方面开发的同学必须得,类容很详细-Read shape file source, especially in the development of students engaged in GIS must be very, very detailed class content Platform: |
Size: 168960 |
Author:许国荣 |
Hits:
Description: 基于Java的画图程序源代码,定义图案类型,记录鼠标拖动的起始点和终点、增加鼠标事件、鼠标释放事件、重绘屏幕、根据shape值绘制图形(Java-based drawing program source code, define the pattern type, record the starting point and end point of the mouse drag, add mouse events, mouse release events, redraw the screen, draw graphics according to the shape value) Platform: |
Size: 6144 |
Author:胡君杰 |
Hits: