1 Preface
In this section, we will use a simple application: drawing application. We will call it TouchPainter. To demonstrate the design patterns and best practices, and hope to be inspired.
2. Details
2.1 three important milestones in the design process
2.1.1 concepts
Collect some basic requirements and Use Cases about TouchPainter applications, such as how users should use them and the user experience during use.
2.1.2 Interface Design
Let developers explore those UI elements that can be logically combined to have a holistic understanding, eliminate unnecessary UI elements, simplify and enhance user experience. This is a repetitive process, so the design should be easy to modify. Developers can draw different views on paper with a pencil for modification.
2.1.3 Architecture Design
Identify technical issues with application architecture, such as how users can open graffiti.
2.2 Architecture Design
Architecture Design of the design model:
2.2.1 View Management
(1) migration from one view to another
(2) coordinate view migration using intermediaries
Here we introduce an intermediary, which reduces the dependency between views.
2.2.2 how to show graffiti
(1) What can I draw on the screen?
(2) Use a combination structure to represent traces
Here we use a combination mechanism to combine the lower-cut and vertices into a tree structure, so that each node can be processed in a unified manner.
A vertex is a leaf node and an independent entity;
A line is a combination body that contains other points as vertices. A colleague can also contain other line combinations.
(3) Draw a graffiti chart
2.2.3 how to display saved graffiti Images
(1) obtain the graffiti chart status
(2) reply to the graffiti chart status
2.2.4 user operations
(1) browse the list of graffiti thumbnails
(2) Withdrawal and restoration of graffiti
(3) change the line color and line width
(4) Delete the current graffiti graph on the screen
Based on the above functions, we will learn the corresponding design patterns one by one, so as to apply the patterns and practices.
3 conclusion
The above is all content and I hope it will help you.