登录
首页 » Java » Mypicture

Mypicture

于 2021-04-14 发布 文件大小:13KB
0 132
下载积分: 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 个回复

  • LinearElasticWaves
    Cambridge University Press | ISBN:052164383X | 2001 | PDF | 178 pages | 1.8 Mb
    2009-06-26 18:05:28下载
    积分:1
  • webqqVB
    visual basic 利用webqq协议登陆例子(visual basic example of the use of landing webqq agreement)
    2014-07-11 17:22:32下载
    积分:1
  • 国内版
    此工具仅用于压力测试,造成损失后果自负!(若不同意请勿下载) 软件是我自己写的,所以我就是原创。(This tool is only used for stress testing, causing losses at your own expense! (Do not download unless you agree) Software is written by myself, so I am original.)
    2020-06-16 09:00:01下载
    积分:1
  • googleinterview
    google的一道JAVA面试题,有人用c写了一个,得出这些结果只用了几十毫秒!   有更好思路的可以讨论讨论。(google for a JAVA face questions, someone wrote a c obtained these results only dozens of milliseconds! Have a better idea of the discussion can be discussed.)
    2010-06-13 13:57:29下载
    积分:1
  • ZTE
    说明:  “中兴捧月”程序设计大赛预赛,俄罗斯套娃算法实现,python语言("ZTE holding the Moon" Programming Contest preliminaries, the algorithm of the Russian doll sets with python language)
    2011-03-12 08:50:57下载
    积分:1
  • VC局域网视频监控系统服务器
    VC++远程项目开发源码,可以学习相关的知识。(VC++ remote project development source code, you can learn related knowledge.)
    2019-05-19 13:09:26下载
    积分:1
  • MiniPiano
    一个小的钢琴模拟程序,用vb开发,支持MIDI端口(minipiano)
    2009-03-03 16:27:09下载
    积分:1
  • 超市订单管理系统(spring boot+mybatis+spring mv)
    项目描述 超市订单管理系统运行环境 jdk8(jdk7) mysql Eclipse maven tomcat7项目技术(必填) springboot spring mvc mybatis jquery jsp数据库文件 链接: https://pan.baidu.com/s/1MlZoNn8MOyagJUdVk3ih1A 密码: 6mi1jar包文件 maven搭建  登录帐号admin 1234567   http://localhost:8080/login.jsp
    2020-12-09下载
    积分:1
  • DataCollectionSystem
    徕卡TCA1800自动监测系统,可以应用于各种变形监测,用于数据的自动采集、保存以及平差处理,代码完整。(Leica TCA1800 automatic monitoring system that can be applied to a variety of deformation monitoring for automatic data collection, preservation, and adjustment processing, code integrity.)
    2021-02-01 14:00:00下载
    积分:1
  • brisque_revised
    说明:  brisque质量评估算法。用于无参考图像质量评估,输入图像即可获得客观评价分数(brisque image quality method.)
    2019-12-05 16:23:17下载
    积分:1
  • 696522资源总数
  • 104040会员总数
  • 35今日下载