CN109388465A - Method for drafting, device, computer equipment and the readable storage medium storing program for executing of view control - Google Patents

Method for drafting, device, computer equipment and the readable storage medium storing program for executing of view control Download PDF

Info

Publication number
CN109388465A
CN109388465A CN201811150613.8A CN201811150613A CN109388465A CN 109388465 A CN109388465 A CN 109388465A CN 201811150613 A CN201811150613 A CN 201811150613A CN 109388465 A CN109388465 A CN 109388465A
Authority
CN
China
Prior art keywords
text
view control
information
plotted
textual image
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
CN201811150613.8A
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.)
Wuba Co Ltd
Original Assignee
Wuba 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 Wuba Co Ltd filed Critical Wuba Co Ltd
Priority to CN201811150613.8A priority Critical patent/CN109388465A/en
Publication of CN109388465A publication Critical patent/CN109388465A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/174Form filling; Merging

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention proposes a kind of method for drafting of view control, comprising: when according to control data drawing view control, obtains the text information in the control data;According to the size of the view control, by the textual image that the text information is plotted as a line or multirow is shown;The textual image is presented in the view control.The invention also discloses a kind of drawing apparatus of view control, computer equipment and computer readable storage mediums, by implementing above scheme, by the way that the text information in control data is plotted as a view control, effectively reduce the occupied system resource of drawing view control, it avoids and text information is plotted as multiple view controls leads to the defect of excessive occupied system resources, effectively increase the fluency that view control is presented.

Description

Method for drafting, device, computer equipment and the readable storage medium storing program for executing of view control
Technical field
The present invention relates to field of computer technology more particularly to a kind of method for drafting of view control, device, computer to set Standby and computer readable storage medium.
Background technique
With the fast development of computer equipment (for example, mobile terminal), the application program installed in computer equipment (App, Application) has also obtained quickly universal.When textual view control is presented in the page in the application, The text quantity of official documents and correspondence is more than the width of textual view control, causes textual view control that can not show all official documents and correspondences in a line In the case where, it usually needs multirow is set by official documents and correspondence, is one view control of each row Word-Drawing, or even also need to draw The Tab View control of the type label of one official documents and correspondence.Therefore, it when an official documents and correspondence is presented in computer equipment in the page, needs Multiple view controls are drawn, the system resource of occupancy is excessive, while the opening speed of the page also will appear slow phenomenon.
Summary of the invention
The invention proposes a kind of method for drafting of view control, device, computer equipment and computer-readable storage mediums Matter needs to draw multiple view controls and leads to page presentation speed to solve complicated official documents and correspondence is presented in the page in the prior art Slow problem.
The technical solution adopted by the present invention is that providing a kind of method for drafting of view control, comprising:
When according to control data drawing view control, the text information in the control data is obtained;
According to the size of the view control, by the textual image that the text information is plotted as a line or multirow is shown; Wherein, the size of the textual image is identical as the size of the view control;
The textual image is presented in the view control.
Optionally, before the textual image being presented in the view control, the method also includes:
Obtain the corresponding type information of the text information in the control data;
Default display scale according to the size of the view control and label picture relative to the view control, will The type information is plotted as label picture;
The label picture is superimposed to the predeterminable area of the textual image.
Optionally, the size according to the view control, is plotted as a line for the text information or multirow is shown Textual image, comprising:
According to the size of the view control and the preset configuration information of text, the text information is plotted as a line Or the textual image that multirow is shown;
Wherein, the preset configuration information includes at least one of following information: text font size information, text font information, Text pitch information and text color information.
Optionally, in the size according to the view control, the text information is plotted as a line or multirow is shown Before the textual image shown, the method also includes:
The predeterminable area in the textual image is forbidden to draw the text information.
Optionally, the size according to the view control, is plotted as a line for the text information or multirow is shown Textual image, comprising:
According to the size of the view control and the preset configuration information of text, judge that can the text information whole It is plotted as the textual image of a line or multirow;
If it is determined that the text information can all be plotted as the textual image of a line or multirow, then by the text information It is plotted as a line or textual image that multirow is shown;
Otherwise, according to the size of the view control, the text information that will be shown is plotted as a line or multirow is shown Textual image, and the end of the text information of the last line of drafting add setting symbol.
The present invention also provides a kind of drawing apparatus of view control, comprising:
First obtains module, for obtaining the text in the control data when according to control data drawing view control This information;
The text information is plotted as a line or more for the size according to the view control by the first drafting module The textual image of row display;Wherein, the size of the textual image is identical as the size of the view control;
Module is presented, for the textual image to be presented in the view control.
Optionally, described device further include:
Second obtains module, for before the textual image is presented in the view control, obtaining the control number The corresponding type information of the text information in;
Second drafting module, for the size and label picture according to the view control relative to the view control Default display scale, the type information is plotted as label picture;
Laminating module, for the label picture to be superimposed to the predeterminable area of the textual image.
Optionally, first drafting module, is specifically used for:
According to the size of the view control and the preset configuration information of text, the text information is plotted as a line Or the textual image that multirow is shown;
Wherein, the preset configuration information includes at least one of following information: text font size information, text font information, Text pitch information and text color information.
Optionally, described device further include:
Adjustment module is drawn, in the size according to the view control, the text information to be plotted as one Before the textual image that capable or multirow is shown, the predeterminable area in the textual image is forbidden to draw the text envelope Breath.
Optionally, first drafting module, is specifically used for:
According to the size of the view control and the preset configuration information of text, judge that can the text information whole It is plotted as the textual image of a line or multirow;
If it is determined that the text information can all be plotted as the textual image of a line or multirow, then by the text information It is plotted as a line or textual image that multirow is shown;
Otherwise, according to the size of the view control, the text information that will be shown is plotted as a line or multirow is shown Textual image, and the end of the text information of the last line of drafting add setting symbol.
The present invention also provides a kind of computer equipment, the computer equipment includes processor and memory;
The processor is used to execute the drawing program of the view control stored in memory, to realize above-mentioned view control The step of method for drafting of part.
The present invention also provides a kind of computer readable storage medium, the computer-readable recording medium storage have one or The multiple programs of person, one or more of programs can be executed by one or more processor, to realize above-mentioned view control The step of method for drafting of part.
By adopting the above technical scheme, the present invention at least has the advantage that
Method for drafting, device, computer equipment and the computer readable storage medium of a kind of view control of the present invention, By the way that the text information in control data is plotted as a view control, the occupied system of drawing view control is effectively reduced It unites resource, avoids and text information is plotted as multiple view controls leads to the defect of excessive occupied system resources, effectively improve The fluency of view control is presented.
Detailed description of the invention
Fig. 1 is the method for drafting flow chart of view control described in first embodiment of the invention;
Fig. 2 is the method for drafting flow chart of view control described in second embodiment of the invention;
Fig. 3 is the method for drafting flow chart of view control described in third embodiment of the invention;
Fig. 4 is the method for drafting flow chart of view control described in fourth embodiment of the invention;
Fig. 5 is the method for drafting flow chart of view control described in fifth embodiment of the invention;
Fig. 6 is the drawing apparatus composed structure schematic diagram of view control described in sixth embodiment of the invention;
Fig. 7 is the drawing apparatus composed structure schematic diagram of view control described in the 7th and the 8th embodiment of the invention;
Fig. 8 is the drawing apparatus composed structure schematic diagram of view control described in the 9th and the tenth embodiment of the invention;
Fig. 9 is computer equipment composed structure schematic diagram described in eleventh embodiment of the invention.
Specific embodiment
Further to illustrate the present invention to reach the technical means and efficacy that predetermined purpose is taken, below in conjunction with attached drawing And preferred embodiment, the present invention is described in detail as after.
First embodiment of the invention, a kind of method for drafting of view control, as shown in Figure 1, comprising the following specific steps
Step S101 obtains the text information in the control data when according to control data drawing view control.
In the present embodiment, the mode for obtaining control data is not specifically limited, can be the control that server issues Data are also possible to control data preset in the application.
Step S102, according to the size of view control, by the textual image that text information is plotted as a line or multirow is shown.
Wherein, the size of textual image and the size of view control are identical.
In the present embodiment, step S102 is specifically included: according to the width of view control, can judge whether in a line Interior all text informations of display;
If it is determined that all text informations can be shown in a line, then text information is plotted as the text diagram that a line is shown Piece;
Otherwise, according to the width of view control, text information is plotted as the textual image that multirow is shown.
The textual image that text information is plotted as a line or multirow is shown is avoided by the size according to view control Every a line of text information is plotted as a view control, causes to add multiple view control excessive occupied system resources, Show the too long defect of multiple view control durations.
Text picture is presented in step S103 in view control.
The method for drafting of view control described in first embodiment of the invention, by drawing the text information in control data It is made as a view control, the occupied system resource of drawing view control is effectively reduced, avoids and draw text information The defect for leading to excessive occupied system resources for multiple view controls effectively increases the fluency that view control is presented.
Second embodiment of the invention, a kind of method for drafting of view control, as shown in Fig. 2, comprising the following specific steps
Step S201 obtains the text information in the control data when according to control data drawing view control.
Step S202, according to the size of view control, by the textual image that text information is plotted as a line or multirow is shown.
Wherein, the size of textual image and the size of view control are identical.
The textual image that text information is plotted as a line or multirow is shown is avoided by the size according to view control Every a line of text information is plotted as a view control, causes to add multiple view control excessive occupied system resources, Show the too long defect of multiple view control durations.
Step S203 obtains the corresponding type information of text information in control data;According to the size of view control, and Default display scale of the label picture relative to view control, is plotted as label picture for type information;Label picture is superimposed To the predeterminable area of textual image.
In the present embodiment, the corresponding type information of text information is not specifically limited, can be advertisement type, it can also To be topic types, it is also possible to the types such as release information.
For example, step S203, comprising: obtain the corresponding advertisement type information of text information in control data;According to view Default display scale of the size and label picture of figure control relative to view control, is plotted as advertisement for advertisement type information Label picture;Advertisement tag picture is superimposed to the default lower right field of textual image.
By the way that text information is plotted as textual image, type information is plotted as label picture, and label picture is folded Textual image is added to, textual image is presented by a view control, effectively prevents for text information being plotted as a view Control, and type information is plotted as a view control, cause to add multiple view control excessive occupied system resources, show The too long defect of multiple view control durations.
Text picture is presented in step S204 in view control.
The method for drafting of view control described in second embodiment of the invention, by the way that text information is plotted as text diagram Type information is plotted as label picture, and label picture is superimposed to textual image by piece, and text is presented by a view control This picture effectively prevents for text information being plotted as a view control, and type information is plotted as a view control, Cause to add multiple view control excessive occupied system resources, shows the too long defect of multiple view control durations, effectively improve The fluency of view control is presented.
Third embodiment of the invention, a kind of method for drafting of view control, as shown in figure 3, comprising the following specific steps
Step S301 obtains the text information in the control data when according to control data drawing view control.
Text information is plotted as a line according to the size of view control and the preset configuration information of text by step S302 Or the textual image that multirow is shown;
Wherein, preset configuration information includes at least one of following information: text font size information, text font information, text Pitch information and text color information;The size of textual image and the size of view control are identical.
In the present embodiment, step S302 is specifically included: being believed according to the size of view control and the preset configuration of text Can breath, judge whether show all text informations in a line;Wherein, preset configuration information include at least following information it One: text font size information, text font information, text pitch information and text color information.
If it is determined that all text informations can be shown in a line, then text information is plotted as the text diagram that a line is shown Piece;
Otherwise, according to the width of view control, text information is plotted as the textual image that multirow is shown.
By according to the size of view control and the preset configuration information of text, text information is plotted as a line or more The textual image of row display, avoids every a line of text information being plotted as a view control, cause to add multiple views Control excessive occupied system resources show the too long defect of multiple view control durations.
Step S303 obtains the corresponding type information of text information in control data;According to the size of view control, and Default display scale of the label picture relative to view control, is plotted as label picture for type information;Label picture is superimposed To the predeterminable area of textual image.
By the way that text information is plotted as textual image, type information is plotted as label picture, and label picture is folded Textual image is added to, textual image is presented by a view control, effectively prevents for text information being plotted as a view Control, and type information is plotted as a view control, cause to add multiple view control excessive occupied system resources, show The too long defect of multiple view control durations.
Text picture is presented in step S304 in view control.
The method for drafting of view control described in third embodiment of the invention passes through the size according to view control, and text This preset configuration information avoids the textual image that text information is plotted as a line or multirow is shown by text information Every a line is plotted as a view control, causes to add multiple view control excessive occupied system resources, shows multiple view controls The too long defect of part duration effectively increases the fluency that view control is presented.
Fourth embodiment of the invention, a kind of method for drafting of view control, as shown in figure 4, comprising the following specific steps
Step S401 obtains the text information in the control data when according to control data drawing view control.
Step S402 forbids the predeterminable area rendering text information in textual image.
For example, step S402 is specifically included: forbidding the lower right area rendering text information in textual image.
In the present embodiment, predeterminable area is not specifically limited, can be the preset configuration information according to view control The predeterminable area is set, is also possible to that the predeterminable area is arranged according to the configuration information carried in control data.
By forbidding the predeterminable area rendering text information in textual image, effectively prevents label picture and be superimposed to text The predeterminable area of this picture causes label picture Chong Die with the text in textual image, influences the normal display of text, makes user It can not type information in normal reading text or label picture.
Text information is plotted as a line according to the size of view control and the preset configuration information of text by step S403 Or the textual image that multirow is shown;
Wherein, preset configuration information includes at least one of following information: text font size information, text font information, text Pitch information and text color information;The size of textual image and the size of view control are identical.
Step S404 obtains the corresponding type information of text information in control data;According to the size of view control, and Default display scale of the label picture relative to view control, is plotted as label picture for type information;Label picture is superimposed To the predeterminable area of textual image.
Such as: step S404 is specifically included: obtaining the corresponding type information of text information in control data;According to view Default display scale of the size and label picture of control relative to view control, is plotted as label picture for type information;It will Label picture is superimposed to the lower right area of textual image.
Text picture is presented in step S405 in view control.
Text information is plotted as textual image by the method for drafting of view control described in fourth embodiment of the invention, will Type information is plotted as label picture, and label picture is superimposed to textual image, and text diagram is presented by a view control Piece effectively prevents for text information being plotted as a view control, and type information is plotted as a view control, causes Multiple view control excessive occupied system resources are added, show the too long defect of multiple view control durations;By forbidding in text Predeterminable area rendering text information in this picture, effectively prevents the predeterminable area that label picture is superimposed to textual image, leads Cause label picture it is Chong Die with the text in textual image, influence the normal display of text, make user can not normal reading text or The drawbacks of type information in label picture;Effectively increase the fluency that view control is presented.
Fifth embodiment of the invention, a kind of method for drafting of view control, as shown in figure 5, comprising the following specific steps
Step S501 obtains the text information in the control data when according to control data drawing view control.
Step S502 forbids the predeterminable area rendering text information in textual image.
By forbidding the predeterminable area rendering text information in textual image, effectively prevents label picture and be superimposed to text The predeterminable area of this picture causes label picture Chong Die with the text in textual image, influences the normal display of text, makes user It can not type information in normal reading text or label picture.
Step S503 judges that can text information whole according to the size of view control and the preset configuration information of text It is plotted as the textual image of a line or multirow;If it is determined that text information can be all by being plotted as the text diagram of a line or multirow Piece, then by text information is plotted as a line or multirow is shown textual image;It otherwise, will according to the size of view control The textual image that the text information of display is plotted as a line or multirow is shown, and the end of the text information in the last line of drafting Tail addition setting symbol.
Wherein, preset configuration information includes at least one of following information: text font size information, text font information, text Pitch information and text color information;The size of textual image and the size of view control are identical.
In the present embodiment, setting symbol is not specifically limited, can be ellipsis, it is pre- is also possible to Developmental Engineer The symbol of definition.
In the case where text information can not all be plotted as the textual image of a line or multirow, the text that will show The textual image that information is plotted as a line or multirow is shown, and add and set at the end of the text information of the last line of drafting Symbol (ellipsis), avoids the drawbacks of Developmental Engineer adds symbol manually, realizes automatically generating for view control.
Step S504 obtains the corresponding type information of text information in control data;According to the size of view control, and Default display scale of the label picture relative to view control, is plotted as label picture for type information;Label picture is superimposed To the predeterminable area of textual image.
Text picture is presented in step S505 in view control.
The method for drafting of view control described in fifth embodiment of the invention, by drawing the text information in control data It is made as a view control, the occupied system resource of drawing view control is effectively reduced, avoids and draw text information Lead to the defect of excessive occupied system resources for multiple view controls;A line or multirow can not be all plotted as in text information In the case where textual image, the textual image that the text information that will be shown is plotted as a line or multirow is shown, and drawing Last line text information end addition setting symbol, avoid the drawbacks of Developmental Engineer adds symbol manually, it is real Automatically generating for view control is showed;Effectively increase the fluency that view control is presented.
Sixth embodiment of the invention, a kind of drawing apparatus of view control, as shown in fig. 6, including consisting of part:
First obtains module 10, for obtaining the text in the control data when according to control data drawing view control This information.
In the present embodiment, the mode for obtaining control data is not specifically limited, can be the control that server issues Data are also possible to control data preset in the application.
Text information is plotted as a line or multirow is shown by the first drafting module 20 for the size according to view control Textual image.
Wherein, the size of textual image and the size of view control are identical.
In the present embodiment, the first drafting module 20, is specifically used for: according to the width of view control, can judge whether All text informations are shown in a line;
If it is determined that all text informations can be shown in a line, then text information is plotted as the text diagram that a line is shown Piece;
Otherwise, according to the width of view control, text information is plotted as the textual image that multirow is shown.
The textual image that text information is plotted as a line or multirow is shown is avoided by the size according to view control Every a line of text information is plotted as a view control, causes to add multiple view control excessive occupied system resources, Show the too long defect of multiple view control durations.
Module 30 is presented, for text picture to be presented in view control.
The drawing apparatus of view control described in sixth embodiment of the invention, by drawing the text information in control data It is made as a view control, the occupied system resource of drawing view control is effectively reduced, avoids and draw text information The defect for leading to excessive occupied system resources for multiple view controls effectively increases the fluency that view control is presented.
Seventh embodiment of the invention, a kind of drawing apparatus of view control, as shown in fig. 7, comprises consisting of part:
First obtains module 100, for obtaining the text in the control data when according to control data drawing view control This information.
Text information is plotted as a line or multirow is shown by the first drafting module 200 for the size according to view control Textual image.
Wherein, the size of textual image and the size of view control are identical.
The textual image that text information is plotted as a line or multirow is shown is avoided by the size according to view control Every a line of text information is plotted as a view control, causes to add multiple view control excessive occupied system resources, Show the too long defect of multiple view control durations.
Second obtains module 300, for obtaining the corresponding type information of the text information in control data.
Second drafting module 400, for the size and label picture according to view control relative to the default of view control Type information is plotted as label picture by display scale.
Laminating module 500, for label picture to be superimposed to the predeterminable area of textual image.
In the present embodiment, the corresponding type information of text information is not specifically limited, can be advertisement type, it can also To be topic types.It is also possible to the types such as release information.
Label picture is plotted as by the way that text information is plotted as textual image, and by type information, and by label picture It is superimposed to textual image, textual image is presented by a view control, effectively prevents for text information being plotted as a view Figure control, and type information is plotted as a view control, cause to add multiple view control excessive occupied system resources, open up Show the too long defect of multiple view control durations.
Module 600 is presented, for text picture to be presented in view control.
The drawing apparatus of view control described in seventh embodiment of the invention, by the way that text information is plotted as text diagram Type information is plotted as label picture, and label picture is superimposed to textual image by piece, and text is presented by a view control This picture effectively prevents for text information being plotted as a view control, and type information is plotted as a view control, Cause to add multiple view control excessive occupied system resources, shows the too long defect of multiple view control durations, effectively improve The fluency of view control is presented.
Eighth embodiment of the invention, a kind of drawing apparatus of view control, as shown in fig. 7, comprises consisting of part:
First obtains module 100, for obtaining the text in the control data when according to control data drawing view control This information.
First drafting module 200, for according to the size of view control and the preset configuration information of text, by text envelope The textual image that breath is plotted as a line or multirow is shown;
Wherein, preset configuration information includes at least one of following information: text font size information, text font information, text Pitch information and text color information;The size of textual image and the size of view control are identical.
In the present embodiment, the first drafting module 200, is specifically used for: according to the default of the size of view control and text Can configuration information judge whether show all text informations in a line;Wherein, preset configuration information includes at least following letter One of breath: text font size information, text font information, text pitch information and text color information.
If it is determined that all text informations can be shown in a line, then text information is plotted as the text diagram that a line is shown Piece;
Otherwise, according to the preset configuration information of the width of view control and text, text information is plotted as multirow and is shown Textual image.
The textual image that text information is plotted as a line or multirow is shown is avoided by the size according to view control Every a line of text information is plotted as a view control, causes to add multiple view control excessive occupied system resources, Show the too long defect of multiple view control durations.
Second obtains module 300, for obtaining the corresponding type information of the text information in control data.
Second drafting module 400, for the size and label picture according to view control relative to the default of view control Type information is plotted as label picture by display scale.
Laminating module 500, for label picture to be superimposed to the predeterminable area of textual image.
Module 600 is presented, for text picture to be presented in view control.
The drawing apparatus of view control described in eighth embodiment of the invention passes through the size according to view control, and text This preset configuration information avoids the textual image that text information is plotted as a line or multirow is shown by text information Every a line is plotted as a view control, causes to add multiple view control excessive occupied system resources, shows multiple view controls The too long defect of part duration effectively increases the fluency that view control is presented.
Ninth embodiment of the invention, a kind of drawing apparatus of view control, as shown in figure 8, including consisting of part:
First obtains module 101, for obtaining the text in the control data when according to control data drawing view control This information.
Adjustment module 102 is drawn, for forbidding the predeterminable area rendering text information in textual image.
By forbidding the predeterminable area rendering text information in textual image, effectively prevents label picture and be superimposed to text The predeterminable area of this picture causes label picture Chong Die with the text in textual image, influences the normal display of text, makes user It can not type information in normal reading text or label picture.
First drafting module 103, for according to the size of view control and the preset configuration information of text, by text envelope The textual image that breath is plotted as a line or multirow is shown;
Wherein, preset configuration information includes at least one of following information: text font size information, text font information, text Pitch information and text color information;The size of textual image and the size of view control are identical.
Second obtains module 104, for obtaining the corresponding type information of the text information in control data.
Second drafting module 105, for the size and label picture according to view control relative to the default of view control Type information is plotted as label picture by display scale.
Laminating module 106, for label picture to be superimposed to the predeterminable area of textual image.
Module 107 is presented, for text picture to be presented in view control.
Text information is plotted as textual image by the drawing apparatus of view control described in ninth embodiment of the invention, will Type information is plotted as label picture, and label picture is superimposed to textual image, and text diagram is presented by a view control Piece effectively prevents for text information being plotted as a view control, and type information is plotted as a view control, causes Multiple view control excessive occupied system resources are added, show the too long defect of multiple view control durations;By forbidding in text Predeterminable area rendering text information in this picture, effectively prevents the predeterminable area that label picture is superimposed to textual image, leads Cause label picture it is Chong Die with the text in textual image, influence the normal display of text, make user can not normal reading text or The drawbacks of type information in label picture;, effectively increase the fluency that view control is presented.
Tenth embodiment of the invention, a kind of drawing apparatus of view control, as shown in figure 8, including consisting of part:
First obtains module 101, for obtaining the text in the control data when according to control data drawing view control This information.
Adjustment module 102 is drawn, for forbidding the predeterminable area rendering text information in textual image.
By forbidding the predeterminable area rendering text information in textual image, effectively prevents label picture and be superimposed to text The predeterminable area of this picture causes label picture Chong Die with the text in textual image, influences the normal display of text, makes user It can not type information in normal reading text or label picture.
First drafting module 103, for judging text according to the size of view control and the preset configuration information of text Can information all be plotted as the textual image of a line or multirow;If it is determined that text information can all by be plotted as a line or The textual image of multirow, then by text information is plotted as a line or multirow is shown textual image;Otherwise, according to view control Size, the textual image that the text information that will be shown is plotted as a line or multirow is shown, and in the last line of drafting The end addition setting symbol of text information.
Wherein, preset configuration information includes at least one of following information: text font size information, text font information, text Pitch information and text color information;The size of textual image and the size of view control are identical.
In the present embodiment, setting symbol is not specifically limited, can be ellipsis, it is pre- is also possible to Developmental Engineer The symbol of definition.
In the case where text information can not all be plotted as the textual image of a line or multirow, the text that will show The textual image that information is plotted as a line or multirow is shown, and add and set at the end of the text information of the last line of drafting Symbol (ellipsis), avoids the drawbacks of Developmental Engineer adds symbol manually, realizes automatically generating for view control.
Second obtains module 104, for obtaining the corresponding type information of the text information in control data.
Second drafting module 105, for the size and label picture according to view control relative to the default of view control Type information is plotted as label picture by display scale.
Laminating module 106, for label picture to be superimposed to the predeterminable area of textual image.
Module 107 is presented, for text picture to be presented in view control.
The drawing apparatus of view control described in tenth embodiment of the invention, by drawing the text information in control data It is made as a view control, the occupied system resource of drawing view control is effectively reduced, avoids and draw text information Lead to the defect of excessive occupied system resources for multiple view controls;A line or multirow can not be all plotted as in text information In the case where textual image, the textual image that the text information that will be shown is plotted as a line or multirow is shown, and drawing Last line text information end addition setting symbol, avoid the drawbacks of Developmental Engineer adds symbol manually, it is real Automatically generating for view control is showed;Effectively increase the fluency that view control is presented.
Eleventh embodiment of the invention, a kind of computer equipment, as shown in figure 9, including consisting of part:
Processor 501 and memory 502.In some embodiments of the invention, processor 501 and memory 502 can lead to Cross bus or other way connection.
Processor 501 can be general processor, such as central processing unit (Central Processing Unit, CPU), it can also be digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), or be arranged to implement the embodiment of the present invention One or more integrated circuits.Wherein, memory 502 is used for the executable instruction of storage processor 501;
Memory 502 is transferred to processor 501 for storing program code, and by the program code.Memory 502 can To include volatile memory (Volatile Memory), such as random access memory (Random Access Memory, RAM);Memory 502 also may include nonvolatile memory (Non-Volatile Memory), such as read-only memory (Read-Only Memory, ROM), flash memory (Flash Memory), hard disk (Hard Disk Drive, HDD) or solid State hard disk (Solid-State Drive, SSD);Memory 502 can also include the combination of the memory of mentioned kind.
Wherein, the program code management code that processor 501 is used to that memory 502 to be called to store executes the present invention first Embodiment into fifth embodiment of the invention in any embodiment part or Overall Steps.
Computer equipment described in eleventh embodiment of the invention, by the way that the text information in control data is plotted as one A view control effectively reduces the occupied system resource of drawing view control, avoid text information is plotted as it is multiple View control leads to the defect of excessive occupied system resources, effectively increases the fluency that view control is presented.
Twelveth embodiment of the invention, a kind of computer readable storage medium.
Computer storage medium can be RAM memory, flash memory, ROM memory, eprom memory, EEPROM storage Device, register, hard disk, mobile hard disk, CD-ROM or any other form known in the art storage medium.
Computer-readable recording medium storage has one or more program, one or more program can by one or The multiple processors of person execute, with realize first embodiment of the invention into fifth embodiment of the invention in any embodiment part or Overall Steps.
The computer readable storage medium of twelveth embodiment of the invention is stored with one or more program, and this Or multiple programs can be executed by one or more processor, it can be by the way that the text information in control data be plotted as one A view control effectively reduces the occupied system resource of drawing view control, avoid text information is plotted as it is multiple View control leads to the defect of excessive occupied system resources, effectively increases the fluency that view control is presented.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (12)

1. a kind of method for drafting of view control characterized by comprising
When according to control data drawing view control, the text information in the control data is obtained;
According to the size of the view control, by the textual image that the text information is plotted as a line or multirow is shown;Wherein, The size of the textual image is identical as the size of the view control;
The textual image is presented in the view control.
2. the method according to claim 1, wherein presented in the view control textual image it Before, the method also includes:
Obtain the corresponding type information of the text information in the control data;
Default display scale according to the size of the view control and label picture relative to the view control, will be described Type information is plotted as label picture;
The label picture is superimposed to the predeterminable area of the textual image.
3. according to the method described in claim 2, it is characterized in that, the size according to the view control, by the text The textual image that this information is plotted as a line or multirow is shown, comprising:
According to the size of the view control and the preset configuration information of text, the text information is plotted as a line or more The textual image of row display;
Wherein, the preset configuration information includes at least one of following information: text font size information, text font information, text Pitch information and text color information.
4., will be described according to the method described in claim 3, it is characterized in that, in the size according to the view control Before the textual image that text information is plotted as a line or multirow is shown, the method also includes:
The predeterminable area in the textual image is forbidden to draw the text information.
5. method according to claim 1 to 4, which is characterized in that the ruler according to the view control It is very little, by the textual image that the text information is plotted as a line or multirow is shown, comprising:
According to the size of the view control and the preset configuration information of text, judge that can the text information all be drawn For a line or the textual image of multirow;
If it is determined that the text information can all be plotted as the textual image of a line or multirow, then the text information is drawn The textual image shown for a line or multirow;
Otherwise, according to the size of the view control, the text that the text information that will be shown is plotted as a line or multirow is shown This picture, and setting symbol is added at the end of the text information of the last line of drafting.
6. a kind of drawing apparatus of view control characterized by comprising
First obtains module, for obtaining the text envelope in the control data when according to control data drawing view control Breath;
The text information is plotted as a line or multirow is shown by the first drafting module for the size according to the view control The textual image shown;Wherein, the size of the textual image is identical as the size of the view control;
Module is presented, for the textual image to be presented in the view control.
7. device according to claim 6, which is characterized in that described device further include:
Second obtains module, for obtaining in the control data before the textual image is presented in the view control The corresponding type information of the text information;
Second drafting module, for the size and label picture according to the view control relative to the pre- of the view control If display scale, the type information is plotted as label picture;
Laminating module, for the label picture to be superimposed to the predeterminable area of the textual image.
8. device according to claim 7, which is characterized in that first drafting module is specifically used for:
According to the size of the view control and the preset configuration information of text, the text information is plotted as a line or more The textual image of row display;
Wherein, the preset configuration information includes at least one of following information: text font size information, text font information, text Pitch information and text color information.
9. device according to claim 8, which is characterized in that described device further include:
Draw adjustment module, in the size according to the view control, by the text information be plotted as a line or Before the textual image that multirow is shown, the predeterminable area in the textual image is forbidden to draw the text information.
10. device according to any one of claims 6 to 9, which is characterized in that first drafting module, it is specific to use In:
According to the size of the view control and the preset configuration information of text, judge that can the text information all be drawn For a line or the textual image of multirow;
If it is determined that the text information can all be plotted as the textual image of a line or multirow, then the text information is drawn The textual image shown for a line or multirow;
Otherwise, according to the size of the view control, the text that the text information that will be shown is plotted as a line or multirow is shown This picture, and setting symbol is added at the end of the text information of the last line of drafting.
11. a kind of computer equipment, which is characterized in that the computer equipment includes processor and memory;The processor It is according to any one of claims 1 to 5 to realize for executing the drawing program of the view control stored in memory The step of method for drafting of view control.
12. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage have one or Multiple programs, one or more of programs can be executed by one or more processor, with realize according to claim 1~ The step of method for drafting of view control described in any one of 5.
CN201811150613.8A 2018-09-29 2018-09-29 Method for drafting, device, computer equipment and the readable storage medium storing program for executing of view control Pending CN109388465A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811150613.8A CN109388465A (en) 2018-09-29 2018-09-29 Method for drafting, device, computer equipment and the readable storage medium storing program for executing of view control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811150613.8A CN109388465A (en) 2018-09-29 2018-09-29 Method for drafting, device, computer equipment and the readable storage medium storing program for executing of view control

Publications (1)

Publication Number Publication Date
CN109388465A true CN109388465A (en) 2019-02-26

Family

ID=65419078

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811150613.8A Pending CN109388465A (en) 2018-09-29 2018-09-29 Method for drafting, device, computer equipment and the readable storage medium storing program for executing of view control

Country Status (1)

Country Link
CN (1) CN109388465A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110515610A (en) * 2019-06-27 2019-11-29 华为技术有限公司 Control method, device and the equipment that the page is drawn
CN112035188A (en) * 2020-09-28 2020-12-04 中移(杭州)信息技术有限公司 Control generation method and device, network equipment and storage medium
CN114820864A (en) * 2022-03-04 2022-07-29 北京思明启创科技有限公司 View component drawing method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102542008A (en) * 2010-12-06 2012-07-04 微软公司 Providing summary view of documents
CN105117232A (en) * 2015-09-08 2015-12-02 北京乐动卓越科技有限公司 Method and system for generating text image on user interface
CN107247691A (en) * 2017-05-24 2017-10-13 腾讯科技(深圳)有限公司 A kind of display methods of text message, device, mobile terminal and storage medium
CN107577395A (en) * 2017-09-11 2018-01-12 竞技世界(北京)网络技术有限公司 Chat content display methods and device based on Qt Development Frameworks
CN107945248A (en) * 2016-10-13 2018-04-20 北京国双科技有限公司 A kind of bubble diagram word methods of exhibiting and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102542008A (en) * 2010-12-06 2012-07-04 微软公司 Providing summary view of documents
CN105117232A (en) * 2015-09-08 2015-12-02 北京乐动卓越科技有限公司 Method and system for generating text image on user interface
CN107945248A (en) * 2016-10-13 2018-04-20 北京国双科技有限公司 A kind of bubble diagram word methods of exhibiting and device
CN107247691A (en) * 2017-05-24 2017-10-13 腾讯科技(深圳)有限公司 A kind of display methods of text message, device, mobile terminal and storage medium
CN107577395A (en) * 2017-09-11 2018-01-12 竞技世界(北京)网络技术有限公司 Chat content display methods and device based on Qt Development Frameworks

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110515610A (en) * 2019-06-27 2019-11-29 华为技术有限公司 Control method, device and the equipment that the page is drawn
CN110515610B (en) * 2019-06-27 2021-01-29 华为技术有限公司 Page drawing control method, device and equipment
CN112035188A (en) * 2020-09-28 2020-12-04 中移(杭州)信息技术有限公司 Control generation method and device, network equipment and storage medium
CN114820864A (en) * 2022-03-04 2022-07-29 北京思明启创科技有限公司 View component drawing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109388465A (en) Method for drafting, device, computer equipment and the readable storage medium storing program for executing of view control
CN106557320B (en) Method and device for starting activities applied to Android platform
CN103942126B (en) Electronic equipment and its data back up method
CN109582153A (en) information input method and device
CN108563929A (en) It is a kind of only in the method for concerning security matters Area generation watermark, system, device and medium
CN108109187A (en) E-seal generation method, device and electronic equipment
US10205693B2 (en) Message sending method and device and message receiving method and device
CN110012358A (en) Review of a film by the censor information processing method, device
US20100100599A1 (en) Mass Email and Text Message Text Individualization and Email and Text Message Private Commenting
CN108733445A (en) A kind of view management method, device, equipment and computer readable storage medium
CN111722815A (en) Printing control method and device for automatic typesetting and electronic equipment
US9229914B2 (en) Optimizing the layout of electronic documents by reducing presentation size of content within document sections so that when combined a plurality of document sections fit within a page
CN114138213A (en) Printer control method and device, storage medium and electronic equipment
CN107391105B (en) Text drawing method and device
CN108572803B (en) Information processing apparatus, computer-readable recording medium, and blank page processing method
CN108874674A (en) page debugging method and device
JPH08335951A (en) Mail box device
CN105989012B (en) page display method, device, mobile terminal and system
CN109725919A (en) A kind of information processing method, device, equipment and storage medium
CN108920218A (en) A kind of reflection call method, device, terminal and computer readable storage medium
US11550517B2 (en) Storage medium storing control program and information processing apparatus
US20130314739A1 (en) Method and apparatus to process a print job
EP3156244A1 (en) Printing apparatus, control method for printing apparatus, and storage medium
CN112528184A (en) Sending method and device of rich text mail, computer equipment and storage medium
US20100083091A1 (en) Dynamic text escaping

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination