CN103135892A - Control managing method for graphic user interface - Google Patents

Control managing method for graphic user interface Download PDF

Info

Publication number
CN103135892A
CN103135892A CN2013100673581A CN201310067358A CN103135892A CN 103135892 A CN103135892 A CN 103135892A CN 2013100673581 A CN2013100673581 A CN 2013100673581A CN 201310067358 A CN201310067358 A CN 201310067358A CN 103135892 A CN103135892 A CN 103135892A
Authority
CN
China
Prior art keywords
control
user interface
graphic user
root node
tree
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2013100673581A
Other languages
Chinese (zh)
Inventor
包冰莹
俞琳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
WUXI OPTIMUM TECHNOLOGY Co Ltd
Original Assignee
WUXI OPTIMUM TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by WUXI OPTIMUM TECHNOLOGY Co Ltd filed Critical WUXI OPTIMUM TECHNOLOGY Co Ltd
Priority to CN2013100673581A priority Critical patent/CN103135892A/en
Publication of CN103135892A publication Critical patent/CN103135892A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Digital Computer Display Output (AREA)

Abstract

The invention relates to a control managing method for a graphic user interface and belongs to the field of an embedded graphic user interface. The method includes that a control-creating interface provided by a graphic user interface system is used for creating a root node control; after the root node control is created, a control-adding interface provided by the graphic user interface system is used for adding the created root node control into a control tree; the display order of controls on a display screen is determined by the arrangement of the laminating sequence of interfaces; after receiving touch messages and timing messages, a control system dispatches the messages to root nodes and then transfers the messages along the control tree so as to reach the corresponding controls; and the corresponding controls can make response to the messages. The control managing method for the graphic user interface has the advantages that the complexity of the system is greatly reduced owing to the utilization of the tree-form control management; and the project is easy to manage due to the utilization of the object-oriented method.

Description

A kind of control management method of graphic user interface
Technical field
The present invention relates to a kind of control management method of graphic user interface, belong to the mbedded GUI field.
Background technology
In recent years, fast development along with information household appliances, handheld device and wireless device, people increase rapidly the demand of embedded system, require also more and more higher, a large amount of embedded systems all requires to be furnished with corresponding graphic user interface (GUI, Graphics User Interface), graph user interface system has become the important component part of embedded system.
Control is managed as one of important composition of GUI, has obtained paying close attention to widely.Traditional GUI multiwindow mechanism is general to be adopted lamination order (Z order) management between window and mutually shears the screen management such as management technology, and for some low profile edges system, this method realizes more complicated.
Summary of the invention
The present invention proposes a kind of control management method of graphic user interface, little with the volume that satisfies low profile edge GUI, real-time is high, the requirement of multiwindow.
The present invention adopts following technical scheme for solving its technical matters:
A kind of control management method of graphic user interface comprises the steps:
(1) call the establishment control interface establishment root node control that graphical interface system provides;
(2) create the root node control after, the interpolation control interface that calling graphical interface system provides adds the root node control that creates in control tree to, namely establishes this control and the relation of following its relevant control;
(3) determine each control DISPLAY ORDER on display screen by the arrangement mode of the lamination order between window between each control;
(4) after control systems receives and touches message and timed message, message can be assigned on root node, and along the control tree transmission, arrive at last corresponding control, control is made response to this message.
Beneficial effect of the present invention is as follows:
The present invention has adopted the Tree control management, and use overlapping region Z sequence algorithm and raw data fill method to replace shearing the complicated calculations in territory, and greatly reduce the complicacy of system, adopted simultaneously OO method, be convenient to project management, simplified application programming.
Description of drawings
Fig. 1 is the control tree structure.
Embodiment
Below in conjunction with accompanying drawing, the invention is described in further details.
Now from control structure and control operation two aspects, this control mechanism is set forth.
This control structure is tree structure.The information of each node of tree structure comprises two aspects: control self information (as control size, position etc.) and with other activex relations (as father's control, child control etc.).
1, control structure
Figure 1 shows that a kind of control structure, it can be divided into four layers: top-level windows, window, view class and basic control (as button, label etc.).
Root node top-level windows of system maintenance, it is an implicit expression control, namely only exists and in logic, is not presented on the LCD screen.Top-level windows occupies whole screen, creates and the service equipment context.Other controls except top-level windows are after creating, must establishment get well its set membership and the Z order between the brotgher of node, namely can be by the sub-list of root node, successively find this control simultaneously, Z order between the brotgher of node has been reacted their orders in the sub-list of father's control on the one hand, represents on the other hand the sequencing that they are drawing.After message is received in drawing, begin successively down to transmit and make corresponding response from root node.
2, control operation:
(1) control creates
When control creates, just determine outward appearance, control property and relation and the event response of control, its flow process is as follows:
According to the derived relation of control class, successively call constructed fuction;
If father's control is arranged, oneself is joined in the sub-list of father's control.
(2) draw control
ActiveX drafting is that whole control tree is drawn, and its method is as follows:
The drafting of control is called the draw function of oneself one by one from the top layer control, if child control is arranged, drawing message is passed to child control, until last.Drawing and not adopt traditional shearing territory algorithm, is the simple Z order that provides according to the window management module, from Z order minimum begin draw, the meeting that the Z order is large overrides in the little control of Z order equitant part with it.But when drawing not individual control, can preserve the raw data of its display part on LCD, be convenient to redraw.
(3) hide (deletion) control mechanism
Hide (deletion) control and operate, just identify control self invalid and cut off it in the control tree relation, do not carry out substantial deletion action, its flow process is as follows:
The state of control is set to HIDE, and the inactive area sign in father's control is set, and the inactive area in father's control is made as the relative position of control;
Calculating with control has the fraternal control that overlaps, and its state is updated to REFRESH;
Writing REPAINT(in the event queue redraws) message.
(4) redraw mechanism
In the time of the redrawing the displaying contents that generally occurs in LCD and change to some extent of control, as deleted in certain control.Redraw the general control that change is arranged of only drawing, its flow process is as follows:
From top layer, successively call the repaint function of oneself.
The inactive area that checks oneself identifies whether set;
If no, travel through sub-list, the child control that finds the inactive area sign to be set, and REPAINT message is passed to it;
If have, fill inactive area with the raw data of preserving, traversal child control list, the deletion state is the control of HIDE, and the drafting state is the control of REFRESH, and all the other are ignored.
Control administrative mechanism of the present invention only has the concept of control, and window is a kind of of control.Control is divided into two kinds: container class and separate class.As its name suggests, container class can comprise other controls exactly, and separate class can not.Father's control can comprise one or more child control as container class.Control can be divided into three kinds of states: activate the ACTIVE(acquiescence), hide (HIDE) and redraw (REFREAH).System can according to the different conditions of control, carry out different operations.
Establish set membership between control by tree structure, namely form set membership between superior node and downstream site, the brother of node forms brotherhood.And the Z order of managing control by this tree structure, namely the closer to the control of root node in the bottom of display logic, in the child control list the closer to the bottom at display logic of linked list head.
In other words, the control that the Z order is large can cover the little control of Z order overlapping part with it.
Adopt the raw data method of substitution during deletion control, the method is to calculate the control that is covered by current control, then refills the content of capped control with the raw data of preserving.

Claims (1)

1. the control management method of a graphic user interface, is characterized in that, comprises the steps:
(1) call the establishment control interface establishment root node control that graphical interface system provides;
(2) create the root node control after, the interpolation control interface that calling graphical interface system provides adds the root node control that creates in control tree to, namely establishes this control and the relation of following its relevant control;
(3) determine each control DISPLAY ORDER on display screen by the arrangement mode of the lamination order between window between each control;
(4) after control systems receives and touches message and timed message, message can be assigned on root node, and along the control tree transmission, arrive at last corresponding control, control is made response to this message.
CN2013100673581A 2013-03-04 2013-03-04 Control managing method for graphic user interface Pending CN103135892A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013100673581A CN103135892A (en) 2013-03-04 2013-03-04 Control managing method for graphic user interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013100673581A CN103135892A (en) 2013-03-04 2013-03-04 Control managing method for graphic user interface

Publications (1)

Publication Number Publication Date
CN103135892A true CN103135892A (en) 2013-06-05

Family

ID=48495787

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013100673581A Pending CN103135892A (en) 2013-03-04 2013-03-04 Control managing method for graphic user interface

Country Status (1)

Country Link
CN (1) CN103135892A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103763429A (en) * 2013-12-16 2014-04-30 深圳市金立通信设备有限公司 Method and terminal for displaying text messages
CN104461573A (en) * 2014-12-23 2015-03-25 上海斐讯数据通信技术有限公司 Control processing method of view hierachy
CN105893009A (en) * 2015-11-16 2016-08-24 乐视网信息技术(北京)股份有限公司 Display method and device of custom control on the basis of Android platform
CN106610833A (en) * 2015-10-27 2017-05-03 北京国双科技有限公司 Method and device for triggering overlapped HTML (Hypertext Markup Language) element mouse events
CN106990890A (en) * 2017-03-02 2017-07-28 微鲸科技有限公司 A kind of focus method for drafting and system applied to intelligent display terminal
CN107844255A (en) * 2017-10-10 2018-03-27 惠州Tcl移动通信有限公司 Touch event response control mehtod, smart machine and storage device
CN108037966A (en) * 2017-11-10 2018-05-15 维沃移动通信有限公司 A kind of interface display method, device and mobile terminal
CN110070021A (en) * 2019-04-16 2019-07-30 杭州坤天自动化系统有限公司 Semantic control intelligence replacement method, device, storage medium and electronic equipment based on visual computing technique
CN110399186A (en) * 2018-04-24 2019-11-01 阿里巴巴集团控股有限公司 Message treatment method, device, electronic equipment and computer readable storage medium
CN111611032A (en) * 2019-02-25 2020-09-01 阿里巴巴集团控股有限公司 Detection method and device for user interface drawing level and over-drawing

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070011621A1 (en) * 2005-07-06 2007-01-11 Lite-On Technology Corporation Methods and systems of graphical user interface presentation
CN101980154A (en) * 2010-11-02 2011-02-23 深圳市融创天下科技发展有限公司 Method and system for creating and drawing interface control tree and mobile terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070011621A1 (en) * 2005-07-06 2007-01-11 Lite-On Technology Corporation Methods and systems of graphical user interface presentation
CN101980154A (en) * 2010-11-02 2011-02-23 深圳市融创天下科技发展有限公司 Method and system for creating and drawing interface control tree and mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
昝剑秋等: "一种小型嵌入式GUI系统的设计", 《盐城工学院学报(自然科学版)》, vol. 25, no. 4, 20 December 2012 (2012-12-20) *

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103763429A (en) * 2013-12-16 2014-04-30 深圳市金立通信设备有限公司 Method and terminal for displaying text messages
CN103763429B (en) * 2013-12-16 2015-09-30 深圳市金立通信设备有限公司 A kind of text message display packing and terminal
CN104461573A (en) * 2014-12-23 2015-03-25 上海斐讯数据通信技术有限公司 Control processing method of view hierachy
CN104461573B (en) * 2014-12-23 2017-10-20 上海斐讯数据通信技术有限公司 A kind of control process method of view level
CN106610833A (en) * 2015-10-27 2017-05-03 北京国双科技有限公司 Method and device for triggering overlapped HTML (Hypertext Markup Language) element mouse events
CN105893009A (en) * 2015-11-16 2016-08-24 乐视网信息技术(北京)股份有限公司 Display method and device of custom control on the basis of Android platform
WO2017084272A1 (en) * 2015-11-16 2017-05-26 乐视控股(北京)有限公司 Display method and apparatus for custom control based on android platform
CN106990890A (en) * 2017-03-02 2017-07-28 微鲸科技有限公司 A kind of focus method for drafting and system applied to intelligent display terminal
CN107844255A (en) * 2017-10-10 2018-03-27 惠州Tcl移动通信有限公司 Touch event response control mehtod, smart machine and storage device
CN107844255B (en) * 2017-10-10 2021-02-19 惠州Tcl移动通信有限公司 Touch event response control method, intelligent device and storage device
CN108037966A (en) * 2017-11-10 2018-05-15 维沃移动通信有限公司 A kind of interface display method, device and mobile terminal
CN110399186A (en) * 2018-04-24 2019-11-01 阿里巴巴集团控股有限公司 Message treatment method, device, electronic equipment and computer readable storage medium
CN110399186B (en) * 2018-04-24 2022-08-26 阿里巴巴集团控股有限公司 Message processing method and device, electronic equipment and computer readable storage medium
CN111611032A (en) * 2019-02-25 2020-09-01 阿里巴巴集团控股有限公司 Detection method and device for user interface drawing level and over-drawing
CN111611032B (en) * 2019-02-25 2023-05-26 阿里巴巴集团控股有限公司 User interface drawing level and excessive drawing detection method and device
CN110070021A (en) * 2019-04-16 2019-07-30 杭州坤天自动化系统有限公司 Semantic control intelligence replacement method, device, storage medium and electronic equipment based on visual computing technique
CN110070021B (en) * 2019-04-16 2022-02-11 杭州坤天自动化系统有限公司 Semantic control intelligent replacement method and device based on visual computing technology, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN103135892A (en) Control managing method for graphic user interface
CN110096277A (en) A kind of dynamic page methods of exhibiting, device, electronic equipment and storage medium
JP2011070673A5 (en)
CN103279349B (en) The multiwindow based on mobile middleware of mobile phone or PDA browses system
CN104731590A (en) Method and device for realizing user interface controls
CN103095923A (en) Short message display method of mobile communication terminal
CN102065336B (en) Digital television receiver and method for determining multistage window shearing relation of digital television receiver
CN106130838A (en) Smart Home steward system based on wechat
CN102566864A (en) Flexible customized interface operation method and system
KR20150004237A (en) Communication window display management
CN203243365U (en) Remote control system with a plurality of LED (light-emitting diode) display screens
CN101446901A (en) Application, management and maintenance method for individualized menu
US9164668B2 (en) Defining object groups in 3D
CN103136037B (en) task management system and method
CN204990384U (en) Government affairs management system of wisdom community
CN106156112A (en) The operational approach of business form and the operation device of business form
CN102646233A (en) Modeling platform
CN105242922A (en) Property tag based data display method
CN102376030A (en) Method for carrying out control tower seat position management by using scene type man-machine interaction technology
CN202120255U (en) Intelligent service system for enterprises
Chang et al. Convective-permitting modeling for retrospective sub-seasonal to seasonal (S2S) forecasting using the framework of the Coordinated Regional Ensemble Downscaling Experiment (CORDEX)
CN109522000A (en) Embedded GUI System and computer program product based on Linux
CN102945153A (en) Novel three-layer application foundation platform system
Farias do Nascimento et al. Data Centred Intelligent Geosciences: Research Agenda and Opportunities, Position Paper
CN108153819A (en) A kind of 3D hologram wisdom building managing and control system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130605