欢迎来到天天文库
浏览记录
ID:30396890
大小:21.79 KB
页数:20页
时间:2018-12-29
《画图程序报告总结》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、为了适应公司新战略的发展,保障停车场安保新项目的正常、顺利开展,特制定安保从业人员的业务技能及个人素质的培训计划画图程序报告总结 目录目的-通过该培训员工可对保安行业有初步了解,并感受到安保行业的发展的巨大潜力,可提升其的专业水平,并确保其在这个行业的安全感。为了适应公司新战略的发展,保障停车场安保新项目的正常、顺利开展,特制定安保从业人员的业务技能及个人素质的培训计划画图程序报告总结 目录目的-通过该培训员工可对保安行业有初步了解,并感受到安保行业的发展的巨大潜力,可提升其的专业水平,并确保其在这个行业的安
2、全感。为了适应公司新战略的发展,保障停车场安保新项目的正常、顺利开展,特制定安保从业人员的业务技能及个人素质的培训计划 1.程序设计内容概论··········································1程序设计的目的·········································1程序设计的任务·········································12设计思想··········································
3、········1需求分析···············································1总体设计···············································1面板布局·········································1实现绘画图形······································2填充功能··········································2画笔的粗细及画笔
4、的颜色变更························2实现鼠标单击和鼠标拖拽进行绘图····················2编程环境···············································3工具说明··············································33系统流程···················································44设计UML类图·························
5、·····················55设计层次结构树············································66运行结果与分析············································77设计总结··················································128.参考文献··················································139.附录············
6、·········································14 1程序设计内容概论 程序设计的目的 本程序是一个利用GUI方法实现简单绘图功能的应用程序。程序设计的任务目的-通过该培训员工可对保安行业有初步了解,并感受到安保行业的发展的巨大潜力,可提升其的专业水平,并确保其在这个行业的安全感。为了适应公司新战略的发展,保障停车场安保新项目的正常、顺利开展,特制定安保从业人员的业务技能及个人素质的培训计划 程序主要创建了5个JRadioButton,1个JCheckBox,2个JBu
7、tton以及一个JSlider用于选择绘画功能操作。接着创建三个面板用于设计绘图的整体画板,并利用按钮监听器,滑动条和鼠标操作实现在面板上绘图的简单功能。在程序中,利用创建JRadioButton实现多选一绘画功能,创建JCheckBox实现填充功能,而2个JButton则分别实现颜色更变和清除画板。同时本程序使用了鼠标点击,鼠标释放和鼠标拖拽来进行画板绘画,利用鼠标点击实现初点坐标获取,在绘画曲线时,主要通过鼠标拖拽实现在画板上不断绘制;在绘画直线时,主要通过鼠标拖拽达到动态效果,并通过鼠标释放最终描绘出直线;
8、在绘画矩形和圆时,主要通过鼠标拖拽达到动态效果,并通过鼠标释放最终描绘出矩形和圆;在绘画粗线时,主要通过不断重画实心圆来实现。 2设计思想 需求分析面板布局 实现绘画图形 填充功能画笔的粗细及画笔的颜色变更实现鼠标单击和鼠标拖拽进行绘图总体设计面板布局 主要创建5个JRadioButton,1个JCheckBox,2个JButton以及一个JSlider,同时创
此文档下载收益归作者所有