Research on Design Patterns and It’s Application in the Design of Chart Class Library
- Author
- DiBin
- Advisor
- ChenCai
- School
- Beijing University of Technology
- Major
- Computer Software and Theory
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2009
- Downloads
- 77
- Citations
- 2
Abstract
Studies,research and application of design patterns are a hot spot.The idea of object-oriented is the main technology of software design;design patterns summarizes the most important design experiences in many a good object-oriented software and records them by standard form,and provides solutions to similar problems.Design patterns is the base of object-oriented reusable software,and it can make it easier and more convenient for people to reuse successful designs and system structures. Specifically speaking,design patterns is the way to solve problems in specific environment by using object-oriented technology,and it is the outcome of collective wisdom of entire software industry.In this dissertation,the research mainly includes collaboration between design patterns,decomposition of design patterns,flexible application of design patterns,and design patterns’support for changes.On the basis of research in the design patterns,this paper introduces a small self-developed Java Chart Class Library ,named MiniChart, which provides the construction and operation of various chart-objects,and support the show of following charts:Timeseries-Chart, Line-Chart, Point-Chart, Histogram, Pie-Chart, and Gantt-Chart. MiniChart is the useful extension of the basic Java Class Library of graphics API, and provides convenience to visualized analysis and display of a large number of data.In the design of MiniChart,design patterns serves as a guide,which makes MiniChart more compact,flexible,easily cutting, expansible and reusable.Firstly,the ideas and research of design pattern is introduced,including concept,principles,classification,and relationship between the design pattern and object-oriented idea,and the relationship between the design pattern and framework, and more attention is paid to the application research of design pattern; Secondly,the functional requirements ,MiniChart’s object compages model and the design of framework of MiniChart are described;Finally,the application of design pattern in MiniChart is elaborated,and the application of following patterns in MiniChart is stressed:Observer Pattern, Mediator Pattern, Composite Pattern,Simple Factory Pattern, Command Pattern,Factory Method Pattern and Builder Pattern.
Table of contents
Abstract 4-5
ABSTRACT 5-8
Chapter 1 Introduction 8-16
study 1.1 Background and Significance 8-9
120 research status 9-10
1.3 application design model developed by the famous case 10-11
1.4 domestic and international pop chart class library case 11-13
1.5 main contents 13-14
1.6 papers organizational structure 14-16
Chapter 2, the idea of ??design patterns and 16-32
2.1 Design Patterns Overview 16-22
2.1.1 the concept of design patterns 16
2.1.2 Design Patterns principles 16-18
2.1.3 design pattern classification and briefings 18-22
2.1.3.1 creational pattern 18-19
2.1.3.2 Structural models 19-20
2.1.3.3 behaviors is model 20-22
2.2 design patterns and object-oriented thinking 22-23
2.2.1 object-oriented thinking 22
2.2.2 design patterns and object-oriented thinking 22-23
The relationship between
2.3 design patterns and frameworks 23-24
2.3.1 framework concept 23
2.3.2 design patterns and frameworks 23-24
2.4 design patterns applied research 24-30
collaboration between
2.4.1 Design Patterns 24
2.4.2 Design Patterns decomposition 24-28
2.4.3 Design Patterns flexibility in the use 28
2.4.4 Design Patterns changed support 28-29
2.4.5 Design Patterns multi-angle analysis 29-30
2.5 Summary 30-32
3 Chapter MiniChart functional analysis and framework design 32-50
the
3.1 MiniChart function is a description of 32-41
3.1.1 diagram depicts 32-39
3.1.1.1 basic chart 32-38
3.1.1.2 multi-axis chart 38-39
3.1.1.3 Combination Chart 39
3.1.1.4 Other features 39
3.1.2 MiniChart use case diagram 39-41
the 3.2 MiniChart the framework design 41-46
3.2.1 MiniChart object composition model 41-42
3.2.2 MiniChart frame structure 42-43
3.2.3 MiniChart framework is the advantages of 43-45
the the 3.2.4 MiniChart components Figure 45-46
3.2.4.1 MiniChart component diagrams 45-46
3.2.4.2 package chart factory 46
3.3 MiniChart of use 46-48
3.3.1 gradually construct the chart object 46-48
3.3.2 using the chart factory constructed chart object 48
3.4 MiniChart in real-time data monitoring platform 48-49
3.5 Summary 49-50
Chapter 4
design patterns in MiniChart 50-84
4.1 The application of the Observer pattern 50-56
4.1.1 Observer pattern 50-51
4.1.2 problem with the analysis 51
4.1.3 Java event delegation model 51-52
4.1.4 achieve 52-55
4.1.5 effect 55-56
4.2 intermediary mode applications 56-59
4.2.1 intermediaries mode is 56
4.2.2 problem analysis 56-57
4.2.3 achieve 57-58
4.2.4 effect 58-59
4.3 mix applications 59-62
4.3.1 combined mode 59-60
4.3.2 problem with the analysis 60
4.3.3 achieve 60-61
4.3.4 effect 61-62
4.4 simple factory mode and command mode applications 62-67
4.4.1 simple factory pattern 62
4.4.2 Command Mode 62-63
4.4.3 Problems and analysis 63-64
4.4.4 achieve 64-67
4.4.5 effect 67
4.5 The factory method pattern and the combination of builder pattern 67-73
4.5.1 The factory method pattern 67-68
4.5.2 builder pattern 68-69
4.5.3 Facade pattern 69-70
4.5.4 factory method pattern, builder pattern and appearance of the mode of comparative analysis 70
4.5.5 problem analysis 70-71
4.5.6 achieve 71-73
4.5.7 effect 73
4.6 Design Patterns in MiniChart summarize 73-74
4.6.1 Design Patterns collaboration between the implementation of MiniChart embodies 73
4.6.2 design mode of the embodiment of the decomposition in the implementation of the MiniChart 73-74
4.6.3 flexibility in the use of design patterns implementation MiniChart embodiment of 74
4.6.4 Design Patterns changed the embodiment of the support in MiniChart implementation 74
4.7 Summary 74-76
conclusions 76-78
References 78-82
research results obtained during the master's degree 82-84
Acknowledgements 84
Related dissertations
- Design and Implementation of an ATM Bureau of Communication Navigation Surveillance System
- Modeling Methods for Distributed Learning System
- The Research on Field Information Collection System Based on Palm-Sized PC
- Research and Application of J2EE-based Web component design mode
- J2EE platform - based code generator
- The Master Plan of YC Enterprise Information
- Research on Registeration Access System of Structural Engineer
- Research on Institutional Innovation for Promoting China’s Urban-rural Integration
- The Frame of News Commentary Writing Medthods Critic in the Chinese Academic Journals’ Papers during Lately Decade
- Software Design for Control System of Electro-hydraulic Three-axis Flight Simulator
- The Design and Implementation of Website Construction Based on OpenCms Technology
- Key Technology Research of Ontology Mapping for the Semantic Web
- Design and Implementation of the System of China Mobile "Easy Workers" Business Support System
- Design and Implementation of Materials Management System of Multi-level Educational Institutions
- The Research of Java EE Framework and Designed on the E-Commerce Pattern of OAO
- Design and Implementation of the Bussiness Support System for China Telecom
- Design and Implementation of Ji’nan Waterconservancy Bureau Covers Security Information System
- The Design and Implementation of Sinopec Sales Co.,Ltd Personnel Management System
- Design and Implementation of Tianhua College Office System
- Universities Fixed Asset Lifecycle Management System Design