文件名称:MVCcircle
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2018-08-26
- 文件大小:
- 8kb
- 下载次数:
- 1次
- 提 供 者:
- 胡闹的***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
1 利用基本MVC模式实现下图所示的应用程序,程序主要功能如下:
(1)当用户在图形化用户界面输入一个圆的半径时,程序将显示该圆的周长与面积,并画出该圆(如图中右面所示);
(2)当用户在图形化用户界面上拖动表示圆半径的标尺时,自动显示圆的半径、周长和面积;并在图形界面上画出图形;
(3)假设程序需再扩充一项功能:要求在程序界面上显示该半径的球体的表面积,试分析如何实现这一功能,并实现该功能。
(1 using the basic MVC model to achieve the following figure shows the application, the program main functions are as follows:
(1) When the user enters a radius of the circle in the graphical user interface, the program will display the circumference and area of the circle and draw the circle (as shown in the figure)
(2) When the user drags a ruler representing the radius of the circle on the graphical user interface, the radius, circumference and area of the circle are automatically displayed and the graph is drawn on the graphical interface
(3) Assume that the program needs to be extended to a function that requires the surface area of the sphere to be displayed on the program interface, try to figure out how to implement this function, and implement this function.)
(1)当用户在图形化用户界面输入一个圆的半径时,程序将显示该圆的周长与面积,并画出该圆(如图中右面所示);
(2)当用户在图形化用户界面上拖动表示圆半径的标尺时,自动显示圆的半径、周长和面积;并在图形界面上画出图形;
(3)假设程序需再扩充一项功能:要求在程序界面上显示该半径的球体的表面积,试分析如何实现这一功能,并实现该功能。
(1 using the basic MVC model to achieve the following figure shows the application, the program main functions are as follows:
(1) When the user enters a radius of the circle in the graphical user interface, the program will display the circumference and area of the circle and draw the circle (as shown in the figure)
(2) When the user drags a ruler representing the radius of the circle on the graphical user interface, the radius, circumference and area of the circle are automatically displayed and the graph is drawn on the graphical interface
(3) Assume that the program needs to be extended to a function that requires the surface area of the sphere to be displayed on the program interface, try to figure out how to implement this function, and implement this function.)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
MVC 画圆\.classpath
MVC 画圆\.project
MVC 画圆\.settings\org.eclipse.jdt.core.prefs
MVC 画圆\bin\Controller.class
MVC 画圆\bin\Model.class
MVC 画圆\bin\SOAPService.class
MVC 画圆\bin\View$MyCanvas.class
MVC 画圆\bin\View.class
MVC 画圆\src\Controller.java
MVC 画圆\src\Model.java
MVC 画圆\src\SOAPService.java
MVC 画圆\src\View.java
MVC 画圆\.settings
MVC 画圆\bin
MVC 画圆\src
MVC 画圆
MVC 画圆\.project
MVC 画圆\.settings\org.eclipse.jdt.core.prefs
MVC 画圆\bin\Controller.class
MVC 画圆\bin\Model.class
MVC 画圆\bin\SOAPService.class
MVC 画圆\bin\View$MyCanvas.class
MVC 画圆\bin\View.class
MVC 画圆\src\Controller.java
MVC 画圆\src\Model.java
MVC 画圆\src\SOAPService.java
MVC 画圆\src\View.java
MVC 画圆\.settings
MVC 画圆\bin
MVC 画圆\src
MVC 画圆