Method and system for creating and drawing interface control tree and mobile terminal
A technology of interface controls and control functions, applied in the field of data structures, can solve the problems that interface control systems are not easy to include control systems with each other, and do not support animation effects of interface controls, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0040] figure 1 It is a flowchart of a method for creating an interface control tree in an embodiment of the present invention. The method comprises the steps of:
[0041]S101, create interface control base class UIBase and its operation function, animation control function and label state;
[0042] The operation functions include: functions of adding, obtaining, and searching child nodes, sibling nodes, and parent nodes;
[0043] Described animation control function comprises common animation control function and inner animation control function, common animation control function and inner animation control function can run simultaneously;
[0044] The general animation control function refers to the movement of the entire control node relative to its sibling nodes, including translation, scaling, and rotation;
[0045] The internal animation control function refers to changes in the control, including the movement of the carousel characters;
[0046] Ordinary animation ...
Embodiment 2
[0079] Figure 4 It is a flowchart of a method for drawing an interface control tree in an embodiment of the present invention. The method comprises the steps of:
[0080] S401, running the animation start function StartAnimation of the interface control node;
[0081] The interface control nodes include interface picture UIImage, interface label UILable, interface grid UIGrid, interface revolving lantern UIMarquee;
[0082] The animation start function StartAnimation is used to obtain the animation effect type (such as translation, scaling, rotation, etc.) of the control node, animation duration, whether to delete the control node, the initial position and the size of the control node after the animation ends, The position and size of the node, whether to call back to notify the animation observer of the control node when the control node ends;
[0083] The type of animation effect mentioned is an effect defined in advance according to product requirements;
[0084] The a...
Embodiment 3
[0101] Figure 5 It is a schematic structural diagram of an interface control tree creation system according to an embodiment of the present invention.
[0102] The system includes: a base class creation module, a control class creation module, and a control tree creation module;
[0103] The base class creation module, connected with the control class creation module, is used to create the interface control base class UIBase and its operation function, animation control function, label state, current frame animation content preparation function and animation content drawing function;
[0104] The operation functions include: functions of adding, obtaining, and searching child nodes, sibling nodes, and parent nodes;
[0105] Described animation control function comprises common animation control function and inner animation control function, common animation control function and inner animation control function can run simultaneously;
[0106] The general animation control f...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com