CN103440127A - Software graphical interface drawing method and system - Google Patents

Software graphical interface drawing method and system Download PDF

Info

Publication number
CN103440127A
CN103440127A CN2013103624182A CN201310362418A CN103440127A CN 103440127 A CN103440127 A CN 103440127A CN 2013103624182 A CN2013103624182 A CN 2013103624182A CN 201310362418 A CN201310362418 A CN 201310362418A CN 103440127 A CN103440127 A CN 103440127A
Authority
CN
China
Prior art keywords
control
class
pattern
man
machine interaction
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
CN2013103624182A
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.)
CETC 15 Research Institute
Original Assignee
CETC 15 Research Institute
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 CETC 15 Research Institute filed Critical CETC 15 Research Institute
Priority to CN2013103624182A priority Critical patent/CN103440127A/en
Publication of CN103440127A publication Critical patent/CN103440127A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a software graphical interface drawing method and system. The method includes the steps that after a man-computer interaction class software module is started, with respect to each control to be drawn, a control style class is established for the control; after the specified style operation type of each control is determined to be a style establishing type, a specified style sheet file is analyzed, a graph parameter set for the control can be analyzed, after a resource description used by the control is used as an analysis result, the control style class with the same name as a style sheet is established to be used as the control style class of the control for caching, and various attributes and resources in the control style class are defined according to the analysis result; afterwards, when the man-computer interaction class software module calls a graph drawing module, the control to be drawn is indicated; the graph drawing module conducts graph drawing of each control according to the control style class of the indicated control to be drawn. By the adoption of the software graphical interface drawing method and system, the developing efficiency of man-computer interaction class software can be improved.

Description

Software graphical interface method for drafting and system
Technical field
The present invention relates to computer realm, relate in particular to a kind of software graphical interface method for drafting and system.
Background technology
Man-machine interaction class software write HTML (Hypertext Markup Language) (the Hypertext Markup Language that comprises software graphical interface, HTML) Active Server Pages (the Active Server Page of compiling and business function, the script compiling such as ASP), wherein, software graphical interface refers to that static graphics information is main many media interface, provides interaction mechanism between a kind of user and business function program.
In prior art, when calling the ActiveX drafting software graphical interface, need to coordinate the setting of some control properties, in man-machine interaction class software, write out the statement for this control parameters;
Statement such as the color that sets font: font color=" ";
The statement of control position is set:
FormData?data=new?FormData();
data.left=new?FormAttachment("","");
data.top=new?FormAttachment("","");
button.setLayoutData(data);
The statement of background picture is set: body style=" background-image: picture path ";
Write out all statements of this control parameters of description in the call method of control, could in software graphical interface, successfully add controls such as menu, window, button.
When this makes the technician develop man-machine interactive class software, a large amount of energy is placed on the statement of software graphical interface drafting and writes; And, the statement that the relative parameters setting of a large amount of controls is arranged in the man-machine interaction class software of writing out, also make the readability of the man-machine interaction class software of writing out bad: the logical relation of software is submerged in the statement of relative parameters setting of a large amount of controls, and software logic is not directly perceived.Therefore, be necessary to provide a kind of software graphical interface method for drafting and system, realize the decoupling zero of graphical interfaces and business function in software, can be so that the programming personnel frees from the statement of writing the graphical interfaces drafting, main energy is put in the realization and Performance tuning of software operation function, logic, improved the development efficiency of man-machine interaction class software.
Summary of the invention
The defect existed for above-mentioned prior art, the invention provides a kind of software graphical interface method for drafting and system, in order to promote the development efficiency of man-machine interaction class software.
According to an aspect of the present invention, provide a kind of software graphical interface method for drafting, having comprised:
After man-machine interaction class software module starts, the control of drawing for each wish, create the control pattern class of this control: the control that described man-machine interaction class software module is drawn for each wish, while calling this control in the graphical control library module, for this control given pattern action type is that pattern creates type, and it is this control given pattern list file; Described control is after pattern creates type in the pattern action type of determining appointment, to being resolved for the style sheet file of its appointment, therefrom parse the graphic parameter arranged into this control, and the description of the resource that this control is used as analysis result after, create a control pattern class identical with described style sheet title and carry out buffer memory as the control pattern class of described control, and define each attribute and the resource in described control pattern class according to described analysis result; Afterwards, during described man-machine interaction class calling software module graphic plotting module, indicate the control that wish is drawn; The control pattern class of the control that described graphic plotting module is drawn according to the wish of indication is carried out the graphic plotting of this control.
Wherein, at the described control of drawing for each wish, after creating the control pattern class of this control, also comprise:
Described man-machine interaction class software module is when operation, if determine the control pattern of establishment again carry out to(for) the control that creates control pattern class according to the information of man-machine interaction:
Described man-machine interaction class software module is for the control of wanting again to create the control pattern, while calling this control in the graphical control library module, for this control given pattern action type is the pattern updating type, and specifies new style sheet file for this control;
Described control is after the pattern action type of determining appointment is the pattern updating type, described new style sheet file is resolved, therefrom parse the graphic parameter arranged into this control, and the description of the resource that this control is used as analysis result after, create a control pattern class identical with described new style sheet title and carry out buffer memory as the control pattern class of described control, and define each attribute and the resource in this control pattern class according to the analysis result that described new style sheet file is resolved;
Afterwards, during described man-machine interaction class calling software module graphic plotting module, if indicate the control of wish drafting for again creating the control of control pattern, described graphic plotting module is carried out the graphic plotting of this control according to the control pattern class after the establishment again of the control of indication.
Wherein, at the described control of drawing for each wish, after creating the control pattern class of this control, also comprise:
Described man-machine interaction class software module is when operation, if determine for the control that creates control pattern class and carry out the modification of control pattern according to the information of man-machine interaction:
Described man-machine interaction class software module is revised the control of control pattern for wish, while calling this control in the graphical control library module, for this control given pattern action type is that Style Attributes is revised type, and specified style sheet file while be the style sheet file of this control appointment control pattern class that is this control of establishment;
Described control is after Style Attributes is revised type in the pattern action type of determining appointment, title according to the style sheet file of appointment, get the control pattern class that title is identical with the title of described style sheet from buffer memory after, style sheet file to this appointment is resolved, therefrom parse the graphic parameter arranged into this control, and the description of the resource that this control is used is as this analysis result; According to this analysis result, each attribute and the resource of the control pattern class obtained are made to corresponding modify;
Afterwards, during described man-machine interaction class calling software module graphic plotting module, if indicate the control of wish drafting for having revised the control of control pattern class, described graphic plotting module is carried out the graphic plotting of this control according to the amended control pattern class of the control of indication.
Wherein, described style sheet file is specially the XML form.
Wherein, describedly specifically comprise for the graphic parameter of this control setting: the location parameter of this control, form parameter, background parameters; And the resource that this control is used specifically comprises: the picture that this control is used, font, color.
According to another aspect of the present invention, also provide a kind of software graphical interface drawing system, having comprised:
The graphical control library module, for providing various controls; Man-machine interaction class software module and graphic plotting module, described man-machine interaction class software module is for after startup, the control of drawing for each wish, create the control pattern class of this control: while in described graphical control library module, calling this control, for this control given pattern action type is that pattern creates type, and it is this control given pattern list file; Described control is after pattern creates type in the pattern action type of determining appointment, to being resolved for the style sheet file of its appointment, therefrom parse the graphic parameter arranged into this control, and the description of the resource that this control is used as analysis result after, create a control pattern class identical with described style sheet title and carry out buffer memory as the control pattern class of described control, and define each attribute and the resource in described control pattern class according to described analysis result; Afterwards, during described man-machine interaction class calling software module graphic plotting module, indicate the control that wish is drawn; The control pattern class of the control that described graphic plotting module is drawn according to the wish of indication is carried out the graphic plotting of this control.
Preferably, if described man-machine interaction class software module also determines for the information according to man-machine interaction the control pattern of establishment again carry out to(for) the control that creates control pattern class:
Described man-machine interaction class software module is for the control of wanting again to create the control pattern, while calling this control in the graphical control library module, for this control given pattern action type is the pattern updating type, and specifies new style sheet file for this control; Described control is after the pattern action type of determining appointment is the pattern updating type, described new style sheet file is resolved, therefrom parse the graphic parameter arranged into this control, and the description of the resource that this control is used as analysis result after, create a control pattern class identical with described new style sheet title and carry out buffer memory as the control pattern class of described control, and define each attribute and the resource in this control pattern class according to the analysis result that described new style sheet file is resolved; Afterwards, during described man-machine interaction class calling software module graphic plotting module, indicate the control of wish drafting for again creating the control of control pattern.
Preferably, if described man-machine interaction class software module also for the information according to man-machine interaction, determine for the control that creates control pattern class and carry out the modification of control pattern:
Described man-machine interaction class software module is revised the control of control pattern for wish, while calling this control in the graphical control library module, for this control given pattern action type is that Style Attributes is revised type, and specified style sheet file while be the style sheet file of this control appointment control pattern class that is this control of establishment; Described control is after Style Attributes is revised type in the pattern action type of determining appointment, title according to the style sheet file of appointment, get the control pattern class that title is identical with the title of described style sheet from buffer memory after, style sheet file to this appointment is resolved, therefrom parse the graphic parameter arranged into this control, and the description of the resource that this control is used is as this analysis result; According to this analysis result, each attribute and the resource of the control pattern class obtained are made to corresponding modify; Afterwards, during described man-machine interaction class calling software module graphic plotting module, indicate the control of wish drafting for having revised the control of control pattern class.
Preferably, described style sheet file is specially the XML form.
Preferably, describedly specifically comprise for the graphic parameter of this control setting: the location parameter of this control, form parameter, background parameters; And the resource that this control is used specifically comprises: the picture that this control is used, font, color.
In technical scheme of the present invention, create corresponding control style sheet by the control that each wish is drawn, and therefrom parse the graphic parameter of the setting of each control, create the control pattern class identical with control style sheet title simultaneously, define attribute and the resource of each pattern class according to analysis result, when the graphing interface, the control that only wish need to be drawn is indicated to the graphic plotting module, the graphic plotting module just can be carried out according to the control pattern class of this control the graphic plotting of this control, and do not need to write out the statement of all parameters of this control, like this, realize the decoupling zero of graphical interfaces and business function, the programming development personnel are freed from the tediously long statement of writing the graphical interfaces drafting, main energy is put into to the software operation function, in the realization and Performance tuning of logic.
Further, when the outward appearance of control changes, only need each attribute of this control pattern class and resource be made correspondingly and revise according to the analysis result of the style sheet of appointment, like this, improve the development efficiency of man-machine interaction class software.
The accompanying drawing explanation
The software graphical interface method for drafting process flow diagram that Fig. 1 is the embodiment of the present invention;
Fig. 2 is that man-machine interactive class software module again creates the method flow diagram of control pattern class when operation to the control pattern class created;
Fig. 3 is that man-machine interactive class software module carries out to the control pattern class created the method flow diagram that control pattern class is revised when operation;
The cut-away view of the software graphical interface drawing system that Fig. 4 is the embodiment of the present invention.
Embodiment
Below with reference to accompanying drawing, technical scheme of the present invention is carried out to clear, complete description, obviously, described embodiment is only a part of embodiment of the present invention, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills are resulting all other embodiment under the prerequisite of not making creative work, all belong to the scope that the present invention protects.
The terms such as " module " used in this application, " system " are intended to comprise the entity relevant to computing machine, such as but not limited to hardware, firmware, combination thereof, software or executory software.For example, module can be, but be not limited in: the thread of the process of moving on processor, processor, object, executable program, execution, program and/or computing machine.For instance, the application program of moving on computing equipment and this computing equipment can be modules.One or more modules can be positioned at an executory process and/or thread, and module also can and/or be distributed on a computing machine between two or more computing machines.
The present inventor considers, the control that each wish is drawn creates corresponding control style sheet, and therefrom parse the graphic parameter of the setting of each control, and the resource used of this control, create the control pattern class identical with control style sheet title simultaneously, define attribute and the resource of each pattern class according to analysis result, when the graphing interface, the control that only wish need to be drawn is indicated to the graphic plotting module, the graphic plotting module just can be carried out according to the control pattern class of this control the graphic plotting of this control, and do not need to write out the statement of all parameters of this control, thereby promote the development efficiency of man-machine interaction class software.
Describe technical scheme of the present invention in detail below in conjunction with accompanying drawing.The embodiment of the present invention provides a kind of software graphical interface method for drafting and system, and Fig. 1 is inventive embodiments software graphical interface method for drafting process flow diagram.Referring to Fig. 1, specifically comprise the steps:
S101: after man-machine interaction class software module starts, for the control of each wish drafting, create the control pattern class of this control.
In this step, man-machine interaction class software module will be each control for the software for drawing graphical interfaces after starting, as: the controls such as button, check box, menu, text box create a control pattern class; Particularly, after man-machine interaction class software module starts, while calling the control of wish drafting in the graphical control library module, the pattern action type of specifying this control is that pattern creates type, and is this control given pattern list file; Wherein, the style sheet file can be specifically the XML form.
Invoked control is after pattern creates type in the pattern action type that is defined as its appointment, to being resolved for the style sheet file of its appointment, therefrom parse the graphic parameter arranged into this control, and the description of the resource that this control is used as analysis result after, create a control pattern class identical with the style sheet title of appointment and carry out buffer memory as the control pattern class of this control, and according to analysis result, the graphic parameter of this control setting is defined as to the attribute of this control pattern class, the resource that the resources definition that this control is used is this control pattern class, wherein, the graphic parameter of control setting comprises: the location parameter of this control, form parameter, background parameters, the resource that this control is used comprises: the picture that this control is used, font, color.
After the control pattern class that creates control, man-machine interaction class software module can be proceeded the processing of following steps.
S102: man-machine interaction class software module, when operation, while according to the information of man-machine interaction, calling the figure drafting module, indicates the control that wish is drawn.
Particularly, man-machine interaction class software module, in operational process, while according to the information of man-machine interaction, carrying out the interactive interface loading, is called the figure drafting module, and indicates the control that wish is drawn.
S103: the control pattern class of the control that the graphic plotting module is drawn according to the wish of indication is carried out the graphic plotting of this control.
In this step, man-machine interaction class software module is when operation, if while according to the informational needs of man-machine interaction, carrying out the operation that the control that creates control pattern class is called, the control pattern class of the control of drawing due to wish creates, and be stored in buffer memory, like this, man-machine interaction class software module only need indicate the control that wish is drawn, the control pattern class of the control that the graphic plotting module will be drawn according to the wish of indication is carried out the graphic plotting of this control, thereby promotes the development efficiency of man-machine interaction class software.
As a kind of more excellent embodiment, man-machine interaction class software module can also be called the control that creates control pattern class when operation, dynamically changes the control pattern class of control.
Particularly, different demands according to the user to graphical interfaces, correspondingly the outward appearance of control is adjusted, like this, control pattern for the control of the control pattern class created will create again, or, revise, that is to say, man-machine interaction class software module is when operation, if carry out according to the informational needs of man-machine interaction the operation that the control to wanting again to create control pattern class is called, or, need to carry out when wish is revised to the operation that the control of control pattern class called and can carry out different treatment steps.
For example, man-machine interaction class software module again creates the method flow of control pattern class when operation to the control pattern class created, as shown in Figure 2, and the bag following steps:
S201: man-machine interaction class calling software module wants again to create the control of control pattern class, and the pattern action type of specifying this control is the pattern updating type, and specifies new style sheet file for this control.
Particularly, if man-machine interaction class software module creates control pattern class according to the informational needs of man-machine interaction again to the control pattern class created, call the control that wish creates control pattern class again, the pattern action type of specifying this control is the pattern updating type, and specifies new style sheet file for this control.
S202: the control of wanting again to create control pattern class, to being resolved for the new style sheet file of its appointment, defines each attribute and the resource in this control pattern class according to analysis result.
Particularly, want again to create the control of control pattern class after the pattern action type that is defined as its appointment is the pattern updating type, to being resolved for the new style sheet file of its appointment, therefrom parse the graphic parameter arranged into this control, and the description of the resource that this control is used as analysis result after, create a control pattern class identical with new style sheet title and carry out buffer memory as the control pattern class of this control, and the analysis result of being resolved according to the style sheet file to new defines each attribute and resource in this control pattern class.
In this step, because the pattern action type of this control is the pattern updating type, the control that just need to again create control pattern class in this wish parses the description of the resource that graphic parameter and this renewal control to this control setting use from the new style sheet file for its appointment, create a control pattern class identical with new style sheet title, the control pattern class that again creates using it as this control is carried out buffer memory, and the graphic parameter of the control setting that will go out from new style sheet document analysis is defined as the attribute of this control pattern class, the resource that the resources definition that this control is used is this control pattern class.
S203: during man-machine interaction class calling software module graphic plotting module, indicate the control of wish drafting for again creating the control of control pattern.
S204: the graphic plotting module is carried out the graphic plotting of this control according to the control pattern class after the establishment again of the control of indication.
Man-machine interaction class software module carries out to the control pattern class created the method flow that control pattern class is revised when operation, as shown in Figure 3, comprises the steps:
S301: man-machine interaction class calling software module wish is revised the control of control pattern class, and specifying this control pattern action type is that pattern is revised type, and specifies new style sheet file for this control.
Particularly, if man-machine interaction class software module is carried out the modification of control pattern class according to the informational needs of man-machine interaction to the control pattern class created, call wish and revise the control of control pattern class, specifying this control pattern action type is that pattern is revised type, and specifies new style sheet file for this control.
S302: wish is revised the control of control pattern class the style sheet file of this appointment is resolved, and according to analysis result, each attribute and resource in the control pattern class of obtaining is carried out to corresponding modify.
Particularly, the control that wish is revised control pattern class is after pattern is revised type in the pattern action type that is defined as its appointment, according to the title that is the style sheet file of its appointment, get the control pattern class that title is identical with the title of the style sheet of appointment from buffer memory after, style sheet file to this appointment is resolved, therefrom parse the graphic parameter of revising the control setting of control pattern class into this wish, and the description of the resource that this control is used is as this analysis result; According to this analysis result, each attribute and the resource of the control pattern class obtained are made to corresponding modify.
In this step, the pattern action type of revising the control of control pattern class due to this wish is that pattern is revised, the control that just needs this wish to revise control pattern class obtains the title control pattern class identical with the title of the style sheet of appointment stored in buffer memory, and according to the graphic parameter from go out the control setting for the style sheet document analysis of its appointment, the attribute of the control pattern class obtained is modified and the resource used is modified to the resource of the control pattern class obtained.
S303: during man-machine interaction class calling software module graphic plotting module, indicate the control of wish drafting for having revised the control of control pattern class.
S304: the graphic plotting module is carried out the graphic plotting of this control according to the amended control pattern class of the control of indication.
The cut-away view of the software graphical interface drawing system that Fig. 4 is the embodiment of the present invention.Referring to Fig. 4, comprising: graphical control library module 401, man-machine interaction class software module 402, graphic plotting module 403; Wherein,
Graphical control library module 401, can call for providing, as: the various controls such as button, check box, menu, text box.
Man-machine interaction class software module 402, for after startup, to the control of each wish drafting, create the control pattern class of this control: while calling this control in graphical control library module 401, for this control given pattern action type is that pattern creates type, and it is this control given pattern list file.
The control called by man-machine interaction class software module 402 in graphical control library module 401 is after pattern creates type in the pattern action type that is defined as its appointment, to being resolved for the style sheet file of its appointment, therefrom parse the graphic parameter arranged into this control, and the description of the resource that this control is used as analysis result after, create a control pattern class identical with the style sheet title of appointment and carry out buffer memory as the control pattern class of this control, and define each attribute and the resource in described control pattern class according to analysis result.
When man-machine interaction class software module 402 is called figure drafting module 403, to graphic plotting module 403, indicate the control that wish is drawn.
Graphic plotting module 403, when being called by man-machine interaction class software module 402, the control pattern class of the control of drawing according to the wish of man-machine interaction class software module 402 indications is carried out the graphic plotting of this control.
More preferably, if man-machine interaction class software module 402 also for after startup, according to the information of man-machine interaction, determining the control pattern of establishment again carry out to(for) the control that creates control pattern class:
Man-machine interaction class software module 402 is for the control of wanting again to create the control pattern, while calling this control in graphical control library module 401, for this control given pattern action type is the pattern updating type, and specifies new style sheet file for this control.
The control called by man-machine interaction class software module 402 in graphical control library module 401 is after the pattern action type that is defined as its appointment is the pattern updating type, new style sheet file is resolved, therefrom parse the graphic parameter arranged into this control, and the description of the resource that this control is used as analysis result after, create a control pattern class identical with new style sheet title and carry out buffer memory as the control pattern class of control, and the analysis result of being resolved according to the style sheet file to new defines each attribute and resource in this control pattern class.
When man-machine interaction class software module 402 is called figure drafting module 403, indicate the control of wish drafting to graphic plotting module 403 for again creating the control of control pattern.
More preferably, if man-machine interaction class software module 402 also for the information according to man-machine interaction, determine for the control that creates control pattern class and carry out the modification of control pattern:
Man-machine interaction class software module 402 is revised the control of control pattern for wish, while calling this control in graphical control library module 401, for this control given pattern action type is that Style Attributes is revised type, and specified style sheet file while be the style sheet file of this control appointment control pattern class that is this control of establishment.
The control called by man-machine interaction class software module 402 in graphical control library module 401 is after Style Attributes is revised type in the pattern action type that is defined as its appointment, according to the title that is the style sheet file of its appointment, get the control pattern class that title is identical with the title of the style sheet of appointment from buffer memory after, style sheet file to this appointment is resolved, therefrom parse the graphic parameter arranged into this control, and the description of the resource that this control is used is as this analysis result; According to this analysis result, each attribute and the resource of the control pattern class obtained are made to corresponding modify.
When man-machine interaction class software module 402 is called figure drafting module 401, indicate the control of wish drafting to graphic plotting module 403 for having revised the control of control pattern class.
In technical scheme of the present invention, the control that each wish is drawn creates corresponding control style sheet, and therefrom parse the graphic parameter of the setting of each control, and the resource used of this control, create the control pattern class identical with control style sheet title simultaneously, define attribute and the resource of each pattern class according to analysis result, when the graphing interface, the control that only wish need to be drawn is indicated to the graphic plotting module, the graphic plotting module just can be carried out according to the control pattern class of this control the graphic plotting of this control, and do not need to write out the statement of all parameters of this control, thereby promote the development efficiency of man-machine interaction class software.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (10)

1. a software graphical interface method for drafting, is characterized in that, comprising:
After man-machine interaction class software module starts, the control of drawing for each wish, create the control pattern class of this control: the control that described man-machine interaction class software module is drawn for each wish, while calling this control in the graphical control library module, for this control given pattern action type is that pattern creates type, and it is this control given pattern list file;
Described control is after pattern creates type in the pattern action type of determining appointment, to being resolved for the style sheet file of its appointment, therefrom parse the graphic parameter arranged into this control, and the description of the resource that this control is used as analysis result after, create a control pattern class identical with described style sheet title and carry out buffer memory as the control pattern class of described control, and define each attribute and the resource in described control pattern class according to described analysis result;
Afterwards, during described man-machine interaction class calling software module graphic plotting module, indicate the control that wish is drawn; The control pattern class of the control that described graphic plotting module is drawn according to the wish of indication is carried out the graphic plotting of this control.
2. the method for claim 1, is characterized in that, at the described control of drawing for each wish, after creating the control pattern class of this control, also comprises:
Described man-machine interaction class software module is when operation, if determine the control pattern of establishment again carry out to(for) the control that creates control pattern class according to the information of man-machine interaction:
Described man-machine interaction class software module is for the control of wanting again to create the control pattern, while calling this control in the graphical control library module, for this control given pattern action type is the pattern updating type, and specifies new style sheet file for this control;
Described control is after the pattern action type of determining appointment is the pattern updating type, described new style sheet file is resolved, therefrom parse the graphic parameter arranged into this control, and the description of the resource that this control is used as analysis result after, create a control pattern class identical with described new style sheet title and carry out buffer memory as the control pattern class of described control, and define each attribute and the resource in this control pattern class according to the analysis result that described new style sheet file is resolved;
Afterwards, during described man-machine interaction class calling software module graphic plotting module, if indicate the control of wish drafting for again creating the control of control pattern, described graphic plotting module is carried out the graphic plotting of this control according to the control pattern class after the establishment again of the control of indication.
3. method as claimed in claim 1 or 2, is characterized in that, at the described control of drawing for each wish, after creating the control pattern class of this control, also comprises:
Described man-machine interaction class software module is when operation, if determine for the control that creates control pattern class and carry out the modification of control pattern according to the information of man-machine interaction:
Described man-machine interaction class software module is revised the control of control pattern for wish, while calling this control in the graphical control library module, for this control given pattern action type is that Style Attributes is revised type, and specified style sheet file while be the style sheet file of this control appointment control pattern class that is this control of establishment;
Described control is after Style Attributes is revised type in the pattern action type of determining appointment, title according to the style sheet file of appointment, get the control pattern class that title is identical with the title of described style sheet from buffer memory after, style sheet file to this appointment is resolved, therefrom parse the graphic parameter arranged into this control, and the description of the resource that this control is used is as this analysis result; According to this analysis result, each attribute and the resource of the control pattern class obtained are made to corresponding modify;
Afterwards, during described man-machine interaction class calling software module graphic plotting module, if indicate the control of wish drafting for having revised the control of control pattern class, described graphic plotting module is carried out the graphic plotting of this control according to the amended control pattern class of the control of indication.
4. method as claimed in claim 3, is characterized in that, described style sheet file is specially the XML form.
5. method as claimed in claim 4, is characterized in that, describedly specifically comprises for the graphic parameter of this control setting: the location parameter of this control, form parameter, background parameters; And
The resource that this control is used specifically comprises: the picture that this control is used, font, color.
6. a software graphical interface drawing system, is characterized in that, comprising:
The graphical control library module, for providing various controls;
Man-machine interaction class software module and graphic plotting module, described man-machine interaction class software module is for after startup, the control of drawing for each wish, create the control pattern class of this control: while in described graphical control library module, calling this control, for this control given pattern action type is that pattern creates type, and it is this control given pattern list file; Described control is after pattern creates type in the pattern action type of determining appointment, to being resolved for the style sheet file of its appointment, therefrom parse the graphic parameter arranged into this control, and the description of the resource that this control is used as analysis result after, create a control pattern class identical with described style sheet title and carry out buffer memory as the control pattern class of described control, and define each attribute and the resource in described control pattern class according to described analysis result; Afterwards, during described man-machine interaction class calling software module graphic plotting module, indicate the control that wish is drawn;
The control pattern class of the control that described graphic plotting module is drawn according to the wish of indication is carried out the graphic plotting of this control.
7. system as claimed in claim 6, is characterized in that,
If described man-machine interaction class software module also determines for the information according to man-machine interaction the control pattern of establishment again carry out to(for) the control that creates control pattern class:
Described man-machine interaction class software module is for the control of wanting again to create the control pattern, while calling this control in the graphical control library module, for this control given pattern action type is the pattern updating type, and specifies new style sheet file for this control; Described control is after the pattern action type of determining appointment is the pattern updating type, described new style sheet file is resolved, therefrom parse the graphic parameter arranged into this control, and the description of the resource that this control is used as analysis result after, create a control pattern class identical with described new style sheet title and carry out buffer memory as the control pattern class of described control, and define each attribute and the resource in this control pattern class according to the analysis result that described new style sheet file is resolved; Afterwards, during described man-machine interaction class calling software module graphic plotting module, indicate the control of wish drafting for again creating the control of control pattern.
8. system as described as claim 6 or 7, is characterized in that,
If described man-machine interaction class software module is also determined for the control that creates control pattern class and is carried out the modification of control pattern for the information according to man-machine interaction:
Described man-machine interaction class software module is revised the control of control pattern for wish, while calling this control in the graphical control library module, for this control given pattern action type is that Style Attributes is revised type, and specified style sheet file while be the style sheet file of this control appointment control pattern class that is this control of establishment; Described control is after Style Attributes is revised type in the pattern action type of determining appointment, title according to the style sheet file of appointment, get the control pattern class that title is identical with the title of described style sheet from buffer memory after, style sheet file to this appointment is resolved, therefrom parse the graphic parameter arranged into this control, and the description of the resource that this control is used is as this analysis result; According to this analysis result, each attribute and the resource of the control pattern class obtained are made to corresponding modify; Afterwards, during described man-machine interaction class calling software module graphic plotting module, indicate the control of wish drafting for having revised the control of control pattern class.
9. system as claimed in claim 8, is characterized in that, described style sheet file is specially the XML form.
10. system as claimed in claim 8, is characterized in that, describedly specifically comprises for the graphic parameter of this control setting: the location parameter of this control, form parameter, background parameters; And
The resource that this control is used specifically comprises: the picture that this control is used, font, color.
CN2013103624182A 2013-08-19 2013-08-19 Software graphical interface drawing method and system Pending CN103440127A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013103624182A CN103440127A (en) 2013-08-19 2013-08-19 Software graphical interface drawing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013103624182A CN103440127A (en) 2013-08-19 2013-08-19 Software graphical interface drawing method and system

Publications (1)

Publication Number Publication Date
CN103440127A true CN103440127A (en) 2013-12-11

Family

ID=49693818

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013103624182A Pending CN103440127A (en) 2013-08-19 2013-08-19 Software graphical interface drawing method and system

Country Status (1)

Country Link
CN (1) CN103440127A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104731590A (en) * 2015-03-13 2015-06-24 广东欧珀移动通信有限公司 Method and device for realizing user interface controls
CN104978195A (en) * 2015-06-26 2015-10-14 浪潮软件集团有限公司 Interface configuration device and method
CN105117219A (en) * 2015-08-13 2015-12-02 浪潮(北京)电子信息产业有限公司 User-defined drawing control realization method and system
CN105511871A (en) * 2015-12-01 2016-04-20 上海斐讯数据通信技术有限公司 User interface design system and method based on mobile terminal
CN107678744A (en) * 2017-09-12 2018-02-09 平安科技(深圳)有限公司 Application controls pattern customizing method, device and computer-readable recording medium
CN107817968A (en) * 2017-11-13 2018-03-20 重庆首亨软件有限公司 A kind of computer software development system
CN108334317A (en) * 2018-01-25 2018-07-27 阿里巴巴集团控股有限公司 Graphics engine, graphics engine construction method, update method and device
CN108762881A (en) * 2018-06-21 2018-11-06 广州酷狗计算机科技有限公司 Interface method for drafting, device, terminal and storage medium
CN108874391A (en) * 2018-04-26 2018-11-23 福建天晴数码有限公司 A kind of mouse modality management method and terminal based on Unity
CN109445780A (en) * 2018-09-19 2019-03-08 平安科技(深圳)有限公司 A kind of pattern edit methods and equipment
WO2020015166A1 (en) * 2018-07-19 2020-01-23 平安科技(深圳)有限公司 Charting component creation method and device and computer readable storage medium
CN111190519A (en) * 2020-01-02 2020-05-22 广州虎牙科技有限公司 File and control processing method, device, equipment and storage medium thereof
CN112256346A (en) * 2020-10-14 2021-01-22 北京字跳网络技术有限公司 Control display method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102207872A (en) * 2011-06-04 2011-10-05 中国移动通信集团内蒙古有限公司 Method and system for customizing Web UI (User Interface) control according to user requirements
CN102236544A (en) * 2010-04-21 2011-11-09 腾讯科技(深圳)有限公司 Method and device for designing skins
US20110283215A1 (en) * 2010-05-11 2011-11-17 Microsoft Corporation Integrated user interface controls for web dialogs
CN102646038A (en) * 2012-02-28 2012-08-22 广州市动景计算机科技有限公司 Control content display method, control content display device and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102236544A (en) * 2010-04-21 2011-11-09 腾讯科技(深圳)有限公司 Method and device for designing skins
US20110283215A1 (en) * 2010-05-11 2011-11-17 Microsoft Corporation Integrated user interface controls for web dialogs
CN102207872A (en) * 2011-06-04 2011-10-05 中国移动通信集团内蒙古有限公司 Method and system for customizing Web UI (User Interface) control according to user requirements
CN102646038A (en) * 2012-02-28 2012-08-22 广州市动景计算机科技有限公司 Control content display method, control content display device and mobile terminal

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104731590B (en) * 2015-03-13 2018-04-27 广东欧珀移动通信有限公司 A kind of user interface controls implementation method and device
CN104731590A (en) * 2015-03-13 2015-06-24 广东欧珀移动通信有限公司 Method and device for realizing user interface controls
CN104978195A (en) * 2015-06-26 2015-10-14 浪潮软件集团有限公司 Interface configuration device and method
CN105117219B (en) * 2015-08-13 2019-05-28 浪潮(北京)电子信息产业有限公司 A kind of method and system of customized Graphics Control
CN105117219A (en) * 2015-08-13 2015-12-02 浪潮(北京)电子信息产业有限公司 User-defined drawing control realization method and system
CN105511871A (en) * 2015-12-01 2016-04-20 上海斐讯数据通信技术有限公司 User interface design system and method based on mobile terminal
CN107678744A (en) * 2017-09-12 2018-02-09 平安科技(深圳)有限公司 Application controls pattern customizing method, device and computer-readable recording medium
CN107817968A (en) * 2017-11-13 2018-03-20 重庆首亨软件有限公司 A kind of computer software development system
CN108334317A (en) * 2018-01-25 2018-07-27 阿里巴巴集团控股有限公司 Graphics engine, graphics engine construction method, update method and device
CN108874391A (en) * 2018-04-26 2018-11-23 福建天晴数码有限公司 A kind of mouse modality management method and terminal based on Unity
CN108762881A (en) * 2018-06-21 2018-11-06 广州酷狗计算机科技有限公司 Interface method for drafting, device, terminal and storage medium
CN108762881B (en) * 2018-06-21 2021-02-12 广州酷狗计算机科技有限公司 Interface drawing method and device, terminal and storage medium
WO2020015166A1 (en) * 2018-07-19 2020-01-23 平安科技(深圳)有限公司 Charting component creation method and device and computer readable storage medium
CN109445780A (en) * 2018-09-19 2019-03-08 平安科技(深圳)有限公司 A kind of pattern edit methods and equipment
CN109445780B (en) * 2018-09-19 2022-07-08 平安科技(深圳)有限公司 Method and equipment for editing styles
CN111190519A (en) * 2020-01-02 2020-05-22 广州虎牙科技有限公司 File and control processing method, device, equipment and storage medium thereof
CN112256346A (en) * 2020-10-14 2021-01-22 北京字跳网络技术有限公司 Control display method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN103440127A (en) Software graphical interface drawing method and system
JP4420968B2 (en) Method and computer-readable medium for commanding
CN110069257B (en) Interface processing method and device and terminal
JP4812337B2 (en) Method and apparatus for generating a form using a form type
Murphy et al. Beginning Android 4
US8745581B2 (en) Method and system for selectively copying portions of a document contents in a computing system (smart copy and paste
US20110258534A1 (en) Declarative definition of complex user interface state changes
CN102339291B (en) Method and equipment for generating list
US10592211B2 (en) Generation of application behaviors
JP2012084165A (en) Program for causing computer to generate user interface
CN112711408A (en) Vue componentization-based visualization configuration rendering method, system and terminal
CN103500066A (en) Screenshot device and method suitable for touch screen devices
CN111177621B (en) Web page development method, device and system
CN110727429A (en) Front-end page generation method, device and equipment
CN112506854A (en) Method, device, equipment and medium for storing page template file and generating page
US20130132869A1 (en) Dynamic creation of user interface hot spots
CN116382688A (en) Man-machine interaction interface program rapid development and deployment method suitable for Arm-Linux
Cohen et al. GUI design for Android apps
Smyth Android Studio 3.0 Development Essentials-Android 8 Edition
CN109656556B (en) Method and device for generating self-adaptive page
CN117348876B (en) Application development method, system and medium based on freeRTOS embedded system
CN114579235B (en) Language type-based icon display method, device, equipment and storage medium
US20230251958A1 (en) Code linting in dynamic application environments
Wei et al. Research on software reuse of user interface for mobile computing devices based on XML
CN117234610A (en) Rendering method, device, equipment and medium of document object model component

Legal Events

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

Application publication date: 20131211