首页 | 本学科首页   官方微博 | 高级检索  
     

一个绘图工具的面向对象设计
引用本文:廖维川,万涛. 一个绘图工具的面向对象设计[J]. 计算机工程与设计, 2005, 26(5): 1373-1376
作者姓名:廖维川  万涛
作者单位:1. 华东交通大学,基础科学学院,江西,南昌,330013
2. 华东交通大学,信息工程学院,江西,南昌,330013
摘    要:已经开发的专业绘图工具有很多,功能各异,但是在面向图元对象的设计方面却有相当一致性。阐述对一个简单绘图工具的面向对象设计,实现了绘图的各种基本操作如图元绘制、图形放大缩小、图元拖动、图形的序列化等,并且按照一定的设计模式实现了绘图的撤消和重做。通过这些基本的绘图功能的实现来说明专业的复杂绘图工具所采用的一般思想。最后对这个绘制工具的扩展如图的分层处理等提出了建议。

关 键 词:绘图工具 图元 缩放 拖放 序列化 面向对象设计
文章编号:1000-7024(2005)05-1373-04

Object-oriented design of drawing tool
LIAO Wei-chuan,WAN Tao. Object-oriented design of drawing tool[J]. Computer Engineering and Design, 2005, 26(5): 1373-1376
Authors:LIAO Wei-chuan  WAN Tao
Affiliation:LIAO Wei-chuan 1,WAN Tao 2
Abstract:A lot of complex drawing tools are developed in recent years, and their functions are various, but objected-oriented design of them is very similar. A drawing tool was developed by object - oriented method. Zoom, drag-and-trop and serialization of graphic elements are implemented. Undoing and redoing in edit are realized based on special design pattern. By realization of this tool, general designing idea of professional drawing tool is thrown light on. Advices are presented to extending the drawing system.
Keywords:draw  graphic element  zoom  drag-and-drop  serialization  undo  redo
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号