登录
首页 » Java » Mypicture

Mypicture

于 2021-04-14 发布 文件大小:13KB
0 156
下载积分: 1 下载次数: 1

代码说明:

  定义4个类,MyShape、MyLine、MyRectangle和MyOval,其中MyShape是其他三个类的父类。MyShape为抽象类,包括图形位置的四个坐标;一个无参的构造方法,将所有的坐标设置为0;一个带参的构造函数,将所有的坐标设置为相应值;每个坐标的设置和读取方法;abstract void draw(Graphics g)方法。MyLine类负责画直线,实现父类的draw方法;MyRectangle负责画矩形,实现父类的draw方法;MyOval负责画椭圆,实现父类的draw方法。编写一个应用程序,使用上面定义的类,随机选取位置和形状,绘制20个图形。(Defines four classes, MyShape, MyLine, MyRectangle and MyOval, which MyShape the other three parent class. MyShape is an abstract class, including graphics position four coordinates a no-argument constructor, all the coordinates are set to 0 a parameterized constructor, all the coordinates is set to the corresponding values each coordinate set and reading method abstract void draw (Graphics g) method. MyLine class is responsible for drawing straight lines, to achieve the draw method of the parent class MyRectangle responsible for drawing rectangles, to achieve the parent class draw method MyOval responsible painted oval, draw method to achieve the parent class. Write an application that uses the class defined above, randomly selected location and shape, draw 20 graphics.)

文件列表:

Mypicture
.........\.classpath,301,2012-10-02
.........\.project,385,2012-10-02
.........\bin
.........\...\DrawComponent.class,1507,2012-10-12
.........\...\MyJframe.class,661,2012-10-12
.........\...\MyLine.class,710,2012-10-12
.........\...\MyOval.class,716,2012-10-12
.........\...\Mypicture$1.class,648,2012-10-12
.........\...\Mypicture.class,512,2012-10-12
.........\...\MyRectangle.class,730,2012-10-12
.........\...\MyShape.class,1266,2012-10-12
.........\src
.........\...\DrawComponent.class,1009,2013-11-03
.........\...\MyJframe.class,562,2013-11-03
.........\...\MyLine.class,537,2013-11-03
.........\...\MyOval.class,543,2013-11-03
.........\...\Mypicture$1.class,536,2013-11-03
.........\...\Mypicture.class,408,2013-11-03
.........\...\Mypicture.java,3976,2012-10-03
.........\...\MyRectangle.class,552,2013-11-03
.........\...\MyShape.class,946,2013-11-03

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • SM2 SM3 SM4对称加解密,国密密钥对的生成
    此工具支持国密各种算法:SM4对称加解密,国密密钥对的生成,SM3信息摘要,SM2数字签名以及验证签名,SM2非对称加解密,PKCS7签名数据包形成以及PKCS7验签, 生成PKCS7数字信封已经解PKCS7签名数据,后续会添加PKCS7签名数字信封相关功能。输入输出格式都严格按照国家密码管理局的相关规定。形成一个本地工具方便大家使用。(This tool supports various national algorithms: SM4 symmetric encryption and decryption, national secret key pair generation, SM3 information summary, SM2 digital signature and verification signature, SM2 asymmetric encryption and decryption, PKCS7 signature data packet formation and PKCS7 checkin, PKCS7 digital envelopes have already solved PKCS7 signature numbers, and then PKCS7 signature digital envelopes will be added. Related functions. The input and output formats are in strict accordance with the relevant regulations of the State Encryption administration. The formation of a local tool is convenient for everyone to use.)
    2018-05-18 14:31:51下载
    积分:1
  • 短信网关序,开源的,很好用的,纯java
    短信网关程序,开源的,很好用的,纯java程序-SMS Gateway Program
    2022-05-19 10:01:15下载
    积分:1
  • SSFK
    关于所有矩阵运算的,可以提供给涉及到定位时用到举证,有很好的参考价值(All matrix operations can be used as proof when it comes to location, which has a good reference value.)
    2019-04-07 04:44:21下载
    积分:1
  • 用NetBios做的网络通讯源序,可以实现和支持NetBios以太网通讯的装置通信...
    用NetBios做的网络通讯源程序,可以实现和支持NetBios以太网通讯的装置通信-Do with NetBios source network communication can be achieved and support for Ethernet NetBios communications device communications
    2022-02-25 06:04:06下载
    积分:1
  • 6都是窗口平台下的网络实例,很多,它是很有意义的..
    全部都是VC++6.0平台下的windows网络编程例子,很多,很具有代表性!值得阅读学习!-VC 6.0 all the windows platform network programming examples, many, it is very representative. Worth reading!
    2022-03-18 02:30:59下载
    积分:1
  • OReilly.JNP.4th.2013
    Java 网络编程 pdf 和 epub 格式 OReilly.Java.Network.Programming.4th.Edition.Oct.2013(OReilly Java Network Programming 4th Edition Oct.2013)
    2013-12-19 11:14:07下载
    积分:1
  • ruanjiankeshe
    python flask 模板编写的网页,应于软件课程设计。(the web developed by flask ,for the software desigh)
    2017-06-15 22:30:24下载
    积分:1
  • linu下socket多线服务器与客户端的通信
    linu下socket多线程服务器与客户端的通信-LINU socket under multithreaded server and client communications
    2022-08-04 07:28:05下载
    积分:1
  • FaceID_java_demo
    说明:  汉王人脸通FaceID JAVA SDK开发包示例程序源代码,包含通用语言版本。(Hanvon FaceID SDK, JAVA DEMO source code included.)
    2020-06-16 20:40:02下载
    积分:1
  • GRASPexe
    GRASP procedure for optimization problems.
    2020-09-16 16:47:59下载
    积分:1
  • 696518资源总数
  • 104269会员总数
  • 42今日下载