用继承、多态实验绘制三角形、圆、矩形

上传者: lxh49 | 上传时间: 2021-05-20 19:49:46 | 文件大小: 65KB | 文件类型: RAR
构建一个图形库,包含基本图形如下: 点(point),具有两个属性(x,y)和绘制点的方法(draw); 三角形(Trigle),具有三个点构成并且可以draw(); 圆(circle),具有一个点(圆心)和半径(radius)并且可以draw; 矩形(rectangle),具有一个顶点和长(length),宽(width),且可以绘制出来; 正方形(square) ,具有一个顶点和边长(length)且可以绘制出来;

文件下载

资源详情

[{"title":"( 42 个子文件 65KB ) 用继承、多态实验绘制三角形、圆、矩形","children":[{"title":"Draw101220","children":[{"title":"Draw","children":[{"title":".project <span style='color:#111;'> 380B </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"com","children":[{"title":"Tool","children":[{"title":"LineTool.class <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"CircleTool.class <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"TrigleTool.class <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"RectTool.class <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"Tool.class <span style='color:#111;'> 539B </span>","children":null,"spread":false},{"title":"MoveTool.class <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false},{"title":"SelectTool.class <span style='color:#111;'> 1.56KB </span>","children":null,"spread":false}],"spread":true},{"title":"main","children":[{"title":"DrawFrame.class <span style='color:#111;'> 4.06KB </span>","children":null,"spread":false},{"title":"FactoryCreateShape.class <span style='color:#111;'> 862B </span>","children":null,"spread":false},{"title":"DrawFrame$PaintCanvas.class <span style='color:#111;'> 2.75KB </span>","children":null,"spread":false},{"title":"OpenThread.class <span style='color:#111;'> 1.94KB </span>","children":null,"spread":false},{"title":"Main.class <span style='color:#111;'> 538B </span>","children":null,"spread":false},{"title":"ToolManager.class <span style='color:#111;'> 886B </span>","children":null,"spread":false}],"spread":true},{"title":"Database","children":[{"title":"DataBase.class <span style='color:#111;'> 1.61KB </span>","children":null,"spread":false}],"spread":true},{"title":"Shape","children":[{"title":"Trigle.class <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"Line.class <span style='color:#111;'> 1.88KB </span>","children":null,"spread":false},{"title":"Circle.class <span style='color:#111;'> 1004B </span>","children":null,"spread":false},{"title":"Rectangle.class <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false},{"title":"Shape.class <span style='color:#111;'> 4.58KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 629B </span>","children":null,"spread":false}],"spread":true},{"title":"Draw.mdl <span style='color:#111;'> 267.78KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"com","children":[{"title":"Tool","children":[{"title":"LineTool.java <span style='color:#111;'> 885B </span>","children":null,"spread":false},{"title":"TrigleTool.java <span style='color:#111;'> 866B </span>","children":null,"spread":false},{"title":"Tool.java <span style='color:#111;'> 216B </span>","children":null,"spread":false},{"title":"RectTool.java <span style='color:#111;'> 856B </span>","children":null,"spread":false},{"title":"MoveTool.java <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false},{"title":"SelectTool.java <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"CircleTool.java <span style='color:#111;'> 866B </span>","children":null,"spread":false}],"spread":true},{"title":"main","children":[{"title":"ToolManager.java <span style='color:#111;'> 435B </span>","children":null,"spread":false},{"title":"Main.java <span style='color:#111;'> 261B </span>","children":null,"spread":false},{"title":"FactoryCreateShape.java <span style='color:#111;'> 448B </span>","children":null,"spread":false},{"title":"OpenThread.java <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"DrawFrame.java <span style='color:#111;'> 5.93KB </span>","children":null,"spread":false}],"spread":true},{"title":"Database","children":[{"title":"DataBase.java <span style='color:#111;'> 1021B </span>","children":null,"spread":false}],"spread":true},{"title":"Shape","children":[{"title":"Trigle.java <span style='color:#111;'> 543B </span>","children":null,"spread":false},{"title":"Rectangle.java <span style='color:#111;'> 883B </span>","children":null,"spread":false},{"title":"Line.java <span style='color:#111;'> 1.68KB </span>","children":null,"spread":false},{"title":"Shape.java <span style='color:#111;'> 4.32KB </span>","children":null,"spread":false},{"title":"Circle.java <span style='color:#111;'> 503B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"Draw.md~ <span style='color:#111;'> 267.78KB </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 301B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • bingxianjian :
    功能都很好的实现了,不止用了C++,还用了matlab插件
    2013-03-18
  • tianhuisoda :
    不错,不只是用c++编的,还利用了matlab
    2011-12-10

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明