CN107643916A - Control control method, device, electronic equipment and readable storage medium storing program for executing - Google Patents

Control control method, device, electronic equipment and readable storage medium storing program for executing Download PDF

Info

Publication number
CN107643916A
CN107643916A CN201710928583.8A CN201710928583A CN107643916A CN 107643916 A CN107643916 A CN 107643916A CN 201710928583 A CN201710928583 A CN 201710928583A CN 107643916 A CN107643916 A CN 107643916A
Authority
CN
China
Prior art keywords
coordinate
control
text
text object
row
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
CN201710928583.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.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201710928583.8A priority Critical patent/CN107643916A/en
Priority to PCT/CN2017/109573 priority patent/WO2019071677A1/en
Publication of CN107643916A publication Critical patent/CN107643916A/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

Abstract

The embodiment of the present invention provides a kind of control control method, device, electronic equipment and readable storage medium storing program for executing.In one embodiment, the control control method includes:Call text adding method that incoming character string and corresponding genre parameters are packaged into text object and be stored in tables of data;For the text object in the tables of data, coordinate is set;And coordinate and genre parameters according to corresponding to text object are plotted in control by each text object in the tables of data.

Description

Control control method, device, electronic equipment and readable storage medium storing program for executing
Technical field
The present invention relates to field of computer technology, in particular to a kind of control control method, device, electronic equipment And readable storage medium storing program for executing.
Background technology
Android primary control is only able to display single writing style.If desired a variety of different wind are shown in interface The character string of lattice, then need the character string of each style to be respectively created to a control.
The content of the invention
In view of this, the purpose of the embodiment of the present invention is to provide a kind of control control method, device, electronic equipment and can Read storage medium.
A kind of control control method provided in an embodiment of the present invention, the control control method include:
Call text adding method that incoming character string and corresponding genre parameters are packaged into text object and be stored in In tables of data;
For the text object in the tables of data, coordinate is set;And
By each text object in the tables of data, coordinate and genre parameters according to corresponding to text object are plotted in In control.
The embodiment of the present invention also provides a kind of control control device, and the control control device includes:
Package module, for calling text adding set that incoming character string and corresponding genre parameters are packaged into text Object is simultaneously stored in tables of data;
Setup module, for setting coordinate for the text object in the tables of data;And
Drafting module, for by each text object in the tables of data according to corresponding to the text object coordinate and wind Lattice parameter is plotted in control.
The embodiment of the present invention also provides a kind of electronic equipment, including:
Memory;
Processor;
Install/be stored in the memory and by the above-mentioned control control device of the computing device.
The embodiment of the present invention also provides a kind of readable storage medium storing program for executing, is stored thereon with computer program, the computer journey Sequence realizes above-mentioned control control method upon execution.
Compared with prior art, control control method, device, electronic equipment and the readable storage medium of the embodiment of the present invention Matter, by calling text adding method to add character string and corresponding genre parameters, the character string number of addition as required The genre parameters of amount and every group of character string are unrestricted, so that the space ultimately produced can show the character string of a variety of styles.
To enable the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate Appended accompanying drawing, is described in detail below.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by embodiment it is required use it is attached Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, therefore be not construed as pair The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to this A little accompanying drawings obtain other related accompanying drawings.
Fig. 1 is the block diagram for the electronic equipment that present pre-ferred embodiments provide.
Fig. 2 is the flow chart for the control control method that present pre-ferred embodiments provide.
Fig. 3 is the step S102 for the control control method that present pre-ferred embodiments provide flow chart.
Fig. 4 is the high-level schematic functional block diagram for the control control device that present pre-ferred embodiments provide.
Embodiment
Below in conjunction with accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Ground describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.Generally exist The component of the embodiment of the present invention described and illustrated in accompanying drawing can be configured to arrange and design with a variety of herein.Cause This, the detailed description of the embodiments of the invention to providing in the accompanying drawings is not intended to limit claimed invention below Scope, but it is merely representative of the selected embodiment of the present invention.Based on embodiments of the invention, those skilled in the art are not doing The every other embodiment obtained on the premise of going out creative work, belongs to the scope of protection of the invention.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi It is defined, then it further need not be defined and explained in subsequent accompanying drawing in individual accompanying drawing.Meanwhile the present invention's In description, term " first ", " second " etc. are only used for distinguishing description, and it is not intended that instruction or hint relative importance.
As shown in figure 1, it is the block diagram of an electronic equipment 100.The electronic equipment 100 includes control control device 110th, memory 111, storage control 112, processor 113, Peripheral Interface 114, input-output unit 115, display unit 116.It will appreciated by the skilled person that the structure shown in Fig. 1 is only to illustrate, it is not to the knot of electronic equipment 100 It is configured to limit.For example, electronic equipment 100 may also include more either less components than shown in Fig. 1 or have and figure Different configuration shown in 1.Electronic equipment 100 described in the present embodiment can be mobile electronic device, the mobile electronic device In android system is installed.
The memory 111, storage control 112, processor 113, Peripheral Interface 114, input-output unit 115 and aobvious Show that 116 each element of unit is directly or indirectly electrically connected between each other, to realize the transmission of data or interaction.For example, these Element can be realized by one or more communication bus or signal wire be electrically connected between each other.The control control device 110 The electricity can be stored in the memory 111 or be solidificated in including at least one in the form of software or firmware (Firmware) Software function module in the operating system (Operating System, OS) of sub- equipment 100.The processor 113 is used to hold The executable module stored in line storage, such as the software function module or computer that the control control device 110 includes Program.
Wherein, the memory 111 may be, but not limited to, random access memory (Random Access Memory, RAM), read-only storage (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..Wherein, memory 111 is used for storage program, the processor 113 after execute instruction is received, Described program is performed, the method performed by electronic equipment 100 that the process that any embodiment of the embodiment of the present invention discloses defines can To be realized applied in processor 113, or by processor 113.
The processor 113 is probably a kind of IC chip, has the disposal ability of signal.Above-mentioned processor 113 can be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network processes Device (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (DSP), application specific integrated circuit (ASIC), field programmable gate array (FPGA) either other PLDs, discrete gate or transistor logic, Discrete hardware components.It can realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general Processor can be microprocessor or the processor can also be any conventional processor etc..
Various input/output devices are coupled to processor 113 and memory 111 by the Peripheral Interface 114.At some In embodiment, Peripheral Interface 114, processor 113 and storage control 112 can be realized in one single chip.Other one In a little examples, they can be realized by independent chip respectively.
The input-output unit 115 is used to be supplied to user input data.The input-output unit 115 can be, But it is not limited to, mouse and keyboard etc..
The display unit 116 provided between the electronic equipment 100 and user an interactive interface (such as user behaviour Make interface) or for display image data give user reference.In the present embodiment, the display unit can be liquid crystal display Or touch control display.If touch control display, it can be the capacitance type touch control screen or resistance for supporting single-point and multi-point touch operation Formula touch screen etc..Single-point and multi-point touch operation is supported to refer to that touch control display can sense on the touch control display one Or multiple opening positions touch control operation with caused by, and the touch control operation that this is sensed transfers to processor to be calculated and located Reason.
Referring to Fig. 2, it is the control controlling party for being applied to the electronic equipment shown in Fig. 1 that present pre-ferred embodiments provide The flow chart of method.The idiographic flow shown in Fig. 2 will be described in detail below.
Step S101, call text adding method that incoming character string and corresponding genre parameters are packaged into text object And it is stored in tables of data.
In the present embodiment, the genre parameters can include character string display color, display font, display size and character Whether string responds click event etc..
In an example, step S101 can add the character string and corresponding style by addText () method Parameter.Wherein, the addText () method may include four parameters, be text text, color color respectively, if response Event onclick and display size size.For example, addText (String text, int Color, boolean onclick, int size).The addText () method can be pre-set by technical staff.
In the present embodiment, the size parameter can be sky, and when the size is space-time, size parameter is null character string Display size in control is default default size.
In the present embodiment, addText () method can be repeatedly called to add multigroup text object into the tables of data, often The genre parameters of one group of text object can be the same or different.
Step S102, it is that the text object in the tables of data sets coordinate.
In the present embodiment, the step S102 includes:The text object in the tables of data is traveled through, it is big according to the display Small parameter is one by one coordinate corresponding to text object setting.
In an example, it is that the text object setting in the tables of data corresponds to that can use onMeasure () method Coordinate.
In the present embodiment, every group of character string is shown as a region in control, in one embodiment, can pass through The coordinate on four borders is to represent a rectangular area.Specifically, coordinate corresponding to each text object include left coordinate, Right coordinate, lower coordinate, upper coordinate, wherein the difference of the left coordinate and right coordinate is the width needed for the text object, it is described The difference of upper coordinate and lower coordinate is the height needed for the text object.It is corresponding by using each text object of four coordinate representations Position, the convenient region identified where each character string, can directly can be also convenient for controlling by one region of coordinate representation Character string to be shown is drawn in part.
In another embodiment, coordinate corresponding to the text object setting can also be made up of two coordinates, be appointed Length of the distance of the coordinate of two adjacent text objects of meaning not less than the half of the size sum of two text objects. For example, A objects and B objects are two horizontally adjacent objects, then the difference of the horizontal coordinate of A objects and the horizontal coordinate of B objects Not less than the half of length sum needed for the level of A objects and B objects.For example, A objects and C objects are two vertical phases Adjacent object, then the difference of the vertical coordinate of vertical coordinate and the C object of A objects not less than A objects and C objects it is vertical needed for grow Spend the half of sum.
Step S103, by each text object in the tables of data, coordinate and style according to corresponding to text object are joined Number is plotted in control.
In an example, using in onDraw () method by coordinate and wind corresponding to each text object in tables of data Lattice parameter is plotted in control.
For example, need to show two groups of character strings " main broadcaster " and " 2330 " in a control.Display styles are:" main broadcaster " is aobvious It is shown as red;" 2330 " are shown as orange." main broadcaster " two words then are depicted as into red to show in the control, by described in " 2330 " are depicted as orange showing in the control.In this example, two groups of character strings " main broadcaster " " 2330 " are not sized, It can be then shown in default default size in the control.
In the present embodiment, the genre parameters include response and click on event argument, and referring to Fig. 2, methods described is also Including:Step S104 to step S106.
Step S104, receive clicking operation of the user to the control.
In an example, the control includes two groups of character strings " main broadcaster " and " 2330 ".The clicking operation of user can It can be click on " main broadcaster " or " 2330 ".In an example, response click event argument is true corresponding to described " main broadcaster ", described It is false that event argument is clicked in " 2330 " response.
Step S105, judge clicking operation operation position whether in the tables of data any one response is clicked on Event argument is in the coordinate range of genuine text object.
In an example, self-defined determination methods onTouchEvent () method judges the position of the clicking operation operation Put whether in the tables of data any one response click on event argument for genuine text object coordinate range in.
It is true that event argument is clicked in response in this example, corresponding to " main broadcaster ", judges the position of the clicking operation Whether in the scope residing for " main broadcaster " two words.
If event argument is clicked in any one response in the coordinate range of genuine text object, to perform step S106;Otherwise flow terminates.
Step S106, respond the click event of the position correspondence of the clicking operation.
In an example, click event corresponding to described " main broadcaster " can be display main broadcaster's card, then can be small with one The pattern of window shows main broadcaster's card.
In the present embodiment, the onDraw () method can be that the primary display control TextView of android are carried Method for drafting.The onMeasure () method, addText () method, onTouchEvent () method are customized side Method.
Control control method according to embodiments of the present invention, by calling text adding method to add word as required Symbol string and corresponding genre parameters, the character string quantity of addition and the genre parameters of every group of character string are unrestricted, so that finally The space of generation can show the character string of a variety of styles.In addition, every group of character string can also correspond to response click event, one Control can realize the display of kinds of words and a variety of response click events.
In the present embodiment, as shown in figure 3, the step S102 includes:Step S1021 to step S1025.
Step S1021, width is set for the control.
Step S1022, the length of control is zero described in Initialize installation.
In the present embodiment, the width of the control can be preset, and the length of the control can be shown as needed Character string amount and size generation.
In other embodiments, the length of the control can be with default settings, and the width of the control can be as needed The magnitude generation of the character string of display.
Step S1023, it is coordinate corresponding to the setting of each text object in the tables of data.
In one embodiment, in the tables of data, each row text element, by a left side for first text element Coordinate be arranged to zero, upper coordinate is arranged to the upper coordinate of the row, right coordinate is arranged to the width of text element, lower coordinate set For the height of text element.For the m-th text element of every a line, the left coordinate of the m-th text element is arranged to Right coordinate, the upper coordinate of M-1 elements are arranged to coordinate identical with the upper coordinate of the M-1 element, right and are arranged to m-th member The width of element and the right coordinate sum of the M-1 element, lower coordinate are arranged to the upper coordinate of the row and the row of the row text element High sum, the peak of the height of all text elements in a height of row of row of the wherein row text element.When n-th element When width is more than the width of default control plus the right coordinate value of the N-1 element, text of the aforesaid way for next line is used This element sets coordinate.In present embodiment, the upper coordinate of the first row is zero, and the upper coordinate of X row is the upper coordinate of the row of X -1 With the high sum of row of the row of X -1.
In another embodiment, for each row text element, by the left coordinate of first text element and upper seat Mark is arranged to the length currency of control, right coordinate is arranged to the width of text element, lower coordinate is arranged to the length of the control The height sum of currency and text element is spent, when behavior the first row, the length currency of the control is zero.For every The m-th text element of a line, by the left coordinate of the m-th text element is arranged to the right coordinate of M-1 elements, upper coordinate is set It is set to coordinate identical with the upper coordinate of the M-1 element, right and is arranged to the width of the m-th element and the right side of the M-1 element Coordinate sum, lower coordinate are arranged to the length currency of the control and the high sum of row of the row text element, wherein the style of writing sheet The peak of the height of all text elements in a height of row of row of element.When the width of n-th element adds the N-1 element Right coordinate value be more than default control width when, use aforesaid way be next line text element setting coordinate, and The length of the control is reset to the high sum of row of currency and lastrow.
Step S1024, after coordinate corresponding to each text object is calculated, by the coordinate of text object set to The coordinate member variable of text object.
Step S1025, the value of the length of the control is reset to and sits target value under last column text element.
It is understood that the length of the control can also be the high sum of row of every a line.
Referring to Fig. 4, it is the functional module of the control control device 110 shown in Fig. 1 of present pre-ferred embodiments offer Schematic diagram.The modules and unit of the control control device 110 are used to perform each step in above method embodiment. The control control device 110 includes package module 1101, setup module 1102 and drafting module 1103.
The package module 1101, for calling text adding set to seal incoming character string and corresponding genre parameters Dress up text object and be stored in tables of data.
The setup module 1102, for setting coordinate for the text object in the tables of data.
The drafting module 1103, for by each text object in the tables of data according to corresponding to text object Coordinate and genre parameters are plotted in control.
In the present embodiment, the genre parameters include response and click on event argument, and institute's control control device 110 also includes: Receiving module 1104, judge module 1105 and respond module 1106.
The receiving module 1104, for receiving clicking operation of the user to the control.
The judge module 1105, for judge clicking operation operation position whether in the tables of data it is any One response clicks on event argument as in the coordinate range of genuine text object.
The respond module 1106, the position for being operated when clicking operation click on event argument in any one response and are In the coordinate range of genuine text object, then the click event of the position correspondence of the clicking operation is responded.
In one embodiment, the setup module 1102 is additionally operable to be directed to each row text element, by first text The left coordinate of this element be arranged to zero, upper coordinate be arranged to the upper coordinate of the row, right coordinate be arranged to text element width, Lower coordinate is arranged to the height of text element;For the m-th text element of every a line, by a left side for the m-th text element Coordinate is arranged to the right coordinate of M-1 elements, upper coordinate is arranged to identical with the upper coordinate of the M-1 element, right coordinate and set The upper coordinate that the right coordinate sum of width and the M-1 element for the m-th element, lower coordinate are arranged to the row adds the style of writing The row of this element is high, the peak of the height of all text elements in a height of row of row of the wherein row text element;Work as n-th When the width of element is more than the width of default control plus the right coordinate value of the N-1 element, aforesaid way is used to be next Capable text element sets coordinate.In present embodiment, the upper coordinate of the first row is zero, and the upper coordinate of X row is the row of X -1 Upper coordinate adds the row of the row of X -1 high.
In another embodiment, the setup module 1102 is additionally operable to be directed to each row text element, by first The left coordinate and upper coordinate of text element are arranged to the length currency of control, right coordinate be arranged to text element width, The length currency that lower coordinate is arranged to the control adds the height of text element, when behavior the first row, the length of the control It is zero to spend currency;For the m-th text element of every a line, the left coordinate of the m-th text element is arranged to M-1 members Right coordinate, the upper coordinate of element are arranged to width identical with the upper coordinate of the M-1 element, that right coordinate is arranged to the m-th element The length currency that the right coordinate sum of degree and the M-1 element, lower coordinate are arranged to the control adds the row of the row text element Height, the peak of the height of all text elements in a height of row of row of the wherein row text element;When the width of n-th element Plus the N-1 element right coordinate value be more than default control width when, use text element of the aforesaid way for next line Element sets coordinate, and the length of the control is reset into row height of the currency plus a line.
Other details on the present embodiment can further refer to the description in above method embodiment, herein no longer Repeat.
Control control device according to embodiments of the present invention, by calling text adding method to add word as required Symbol string and corresponding genre parameters, the character string quantity of addition and the genre parameters of every group of character string are unrestricted, so that finally The space of generation can show the character string of a variety of styles.In addition, every group of character string can also correspond to response click event, one Control can realize the display of kinds of words and a variety of response click events.
The embodiment of the present invention provides a kind of readable storage medium storing program for executing, is stored thereon with computer program, the computer program The control control method that above-described embodiment provides is realized upon execution.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, can also pass through Other modes are realized.Device embodiment described above is only schematical, for example, flow chart and block diagram in accompanying drawing Show the device of multiple embodiments according to the present invention, method and computer program product architectural framework in the cards, Function and operation.At this point, each square frame in flow chart or block diagram can represent the one of a module, program segment or code Part, a part for the module, program segment or code include one or more and are used to realize holding for defined logic function Row instruction.It should also be noted that at some as in the implementation replaced, the function that is marked in square frame can also with different from The order marked in accompanying drawing occurs.For example, two continuous square frames can essentially perform substantially in parallel, they are sometimes It can perform in the opposite order, this is depending on involved function.It is it is also noted that every in block diagram and/or flow chart The combination of individual square frame and block diagram and/or the square frame in flow chart, function or the special base of action as defined in performing can be used Realize, or can be realized with the combination of specialized hardware and computer instruction in the system of hardware.
In addition, each functional module in each embodiment of the present invention can integrate to form an independent portion Point or modules individualism, can also two or more modules be integrated to form an independent part.
If the function is realized in the form of software function module and is used as independent production marketing or in use, can be with It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words The part to be contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are causing a computer equipment (can be People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the present invention. And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.Need Illustrate, herein, such as first and second or the like relational terms be used merely to by an entity or operation with Another entity or operation make a distinction, and not necessarily require or imply between these entities or operation any this reality be present The relation or order on border.Moreover, term " comprising ", "comprising" or its any other variant are intended to the bag of nonexcludability Contain, so that process, method, article or equipment including a series of elements not only include those key elements, but also including The other element being not expressly set out, or also include for this process, method, article or the intrinsic key element of equipment. In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including the key element Process, method, other identical element also be present in article or equipment.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent substitution, improvement etc., should be included in the scope of the protection.It should be noted that:Similar label and letter exists Similar terms is represented in following accompanying drawing, therefore, once being defined in a certain Xiang Yi accompanying drawing, is then not required in subsequent accompanying drawing It is further defined and explained.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.

Claims (10)

1. a kind of control control method, it is characterised in that the control control method includes:
Call text adding method that incoming character string and corresponding genre parameters are packaged into text object and be stored in data In table;
For the text object in the tables of data, coordinate is set;And
By each text object in the tables of data, coordinate and genre parameters according to corresponding to text object are plotted in control In.
2. control control method as claimed in claim 1, it is characterised in that the genre parameters include response click event ginseng Number, methods described also include:
Receive clicking operation of the user to the control;
Judge clicking operation operation position whether in the tables of data event argument is clicked in any one response is true Text object coordinate range in;
If click on event argument in any one response to grasp in the coordinate range of genuine text object, to respond described click on The click event of the position correspondence of work.
3. control control method as claimed in claim 1, it is characterised in that the genre parameters include the aobvious of the character string Show size, described is that the step of text object in the tables of data sets coordinate includes:
The text object in the tables of data is traveled through, is set one by one for the text object according to the display size parameter corresponding Coordinate.
4. control control method as claimed in claim 3, it is characterised in that the coordinate of each text object includes left seat Mark, right coordinate, lower coordinate, upper coordinate, wherein the difference of the left coordinate and right coordinate is the width needed for the text object, institute State height of the difference of coordinate and lower coordinate needed for the text object.
5. control control method as claimed in claim 4, it is characterised in that the text pair in the traversal tables of data As including according to corresponding to the display size parameter is set for the text object one by one the step of coordinate:
For in the tables of data, each row text element, the left coordinate of first text element being arranged into zero, upper coordinate and set It is set to the upper coordinate of the row, right coordinate is arranged to the width of text element, lower coordinate is arranged to the height of text element;
For the m-th text element of every a line, the left coordinate of the m-th text element is arranged to the right seat of M-1 elements Mark, upper coordinate are arranged to width and M-1 that coordinate identical with the upper coordinate of the M-1 element, right is arranged to the m-th element The right coordinate sum of individual element, lower coordinate are arranged to the upper coordinate of the row and the high sum of row of the row text element, the wherein row The peak of the height of all text elements in a height of row of row of text element;
When the width of n-th element is more than the width of default control plus the right coordinate value of the N-1 element, use is above-mentioned Mode sets coordinate for the text element of next line;
Wherein, the upper coordinate of the first row is zero, and the upper coordinate of X row is row height of the upper coordinate with the row of X -1 of the row of X -1 With.
6. a kind of control control device, it is characterised in that the control control device includes:
Package module, for calling text adding set that incoming character string and corresponding genre parameters are packaged into text object And it is stored in tables of data;
Setup module, for setting coordinate for the text object in the tables of data;And
Drafting module, join for coordinate and style according to corresponding to text object by each text object in the tables of data Number is plotted in control.
7. control control device as claimed in claim 6, it is characterised in that the genre parameters include response click event ginseng Number, described device also include:
Receiving module, for receiving clicking operation of the user to the control;
Judge module, for judge clicking operation operation position whether in the tables of data any one response is clicked on Event argument is in the coordinate range of genuine text object;
Respond module, it is genuine text object that event argument is clicked in the position for being operated when clicking operation in any one response Coordinate range in, then respond the click event of the position correspondence of the clicking operation.
8. control control device as claimed in claim 6, it is characterised in that the genre parameters include the aobvious of the character string Show size, the setup module is additionally operable to travel through the text object in the tables of data, according to the display size parameter one by one For coordinate corresponding to text object setting.
9. a kind of electronic equipment, it is characterised in that including:
Memory;
Processor;
Install/be stored in the memory and as the control control described in the claim any one of 6-8 of the computing device Device.
10. a kind of readable storage medium storing program for executing, is stored thereon with computer program, it is characterised in that the computer program is performing Control control method in Shi Shixian the claims 1-5 described in any one.
CN201710928583.8A 2017-10-09 2017-10-09 Control control method, device, electronic equipment and readable storage medium storing program for executing Pending CN107643916A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710928583.8A CN107643916A (en) 2017-10-09 2017-10-09 Control control method, device, electronic equipment and readable storage medium storing program for executing
PCT/CN2017/109573 WO2019071677A1 (en) 2017-10-09 2017-11-06 Control method and device for control, electronic device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710928583.8A CN107643916A (en) 2017-10-09 2017-10-09 Control control method, device, electronic equipment and readable storage medium storing program for executing

Publications (1)

Publication Number Publication Date
CN107643916A true CN107643916A (en) 2018-01-30

Family

ID=61123079

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710928583.8A Pending CN107643916A (en) 2017-10-09 2017-10-09 Control control method, device, electronic equipment and readable storage medium storing program for executing

Country Status (2)

Country Link
CN (1) CN107643916A (en)
WO (1) WO2019071677A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109213485A (en) * 2018-08-20 2019-01-15 武汉斗鱼网络科技有限公司 A kind of text folds implementation method, terminal device and storage medium
CN109388299A (en) * 2018-09-04 2019-02-26 广州优视网络科技有限公司 Display methods, device and the electronic equipment of interface object

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077156A (en) * 2012-11-01 2013-05-01 广州汇讯营销咨询有限公司 Method for producing electronic magazine in mobile equipment
CN103186912A (en) * 2011-12-28 2013-07-03 北京神州泰岳软件股份有限公司 Method and system for showing letter in picture format
CN106598410A (en) * 2016-12-07 2017-04-26 掌阅科技股份有限公司 Display method, device and terminal equipment of electronic book
CN107122104A (en) * 2017-03-29 2017-09-01 武汉斗鱼网络科技有限公司 data display method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6388686B1 (en) * 1998-12-15 2002-05-14 International Business Machines Corporation Method, system and computer program product for rotating through a sequence of display states in a multi-field text string class in a graphical user interface
CN101944027A (en) * 2010-09-26 2011-01-12 北京神州泰岳软件股份有限公司 User interface generation method
CN104267945A (en) * 2014-09-22 2015-01-07 北京金山安全软件有限公司 Character display method and device and mobile terminal
CN105760177B (en) * 2016-03-16 2019-01-22 飞天诚信科技股份有限公司 A kind of the arrangement display methods and device of the control text suitable for Mac system
CN106681586A (en) * 2016-12-21 2017-05-17 广东欧珀移动通信有限公司 Placement position adjusting method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186912A (en) * 2011-12-28 2013-07-03 北京神州泰岳软件股份有限公司 Method and system for showing letter in picture format
CN103077156A (en) * 2012-11-01 2013-05-01 广州汇讯营销咨询有限公司 Method for producing electronic magazine in mobile equipment
CN106598410A (en) * 2016-12-07 2017-04-26 掌阅科技股份有限公司 Display method, device and terminal equipment of electronic book
CN107122104A (en) * 2017-03-29 2017-09-01 武汉斗鱼网络科技有限公司 data display method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109213485A (en) * 2018-08-20 2019-01-15 武汉斗鱼网络科技有限公司 A kind of text folds implementation method, terminal device and storage medium
CN109388299A (en) * 2018-09-04 2019-02-26 广州优视网络科技有限公司 Display methods, device and the electronic equipment of interface object

Also Published As

Publication number Publication date
WO2019071677A1 (en) 2019-04-18

Similar Documents

Publication Publication Date Title
US9874995B2 (en) Maintaining context for maximize interactions on grid-based visualizations
US10261660B2 (en) Orbit visualization animation
US8949742B2 (en) Compressing tree diagrams
US20140365389A1 (en) Interactive Organization Visualization Tools For Use in Analyzing Multivariate Human-Resource Data of Organizations
CN107844243A (en) Cloud tabletop touch implementation method and device
CN105988665B (en) Information dubbing system, information duplicating method and electronic equipment
CN107480148A (en) The method and device and user terminal that control webpage redirects
CN108038894A (en) Animation creation method, device, electronic equipment and computer-readable recording medium
CN110889056B (en) Page marking method and device
CN107452055A (en) Three-dimensional house type drawing generating method and device
CN109740282A (en) Chip pin configuration method, device, equipment and medium
CN108664461A (en) A kind of web form Auto-writing method and device
DE102014117614A1 (en) Changing an interface mode by means of an input gesture
CN111881662A (en) Form generation method, device, processing equipment and storage medium
CN106406738A (en) A keyboard key content information input method and a mobile terminal
CN106951267A (en) Screen size adaptive approach and device
CN107942662A (en) Finite time state feedback controller design method and device
CN107484134A (en) resident position analysis method and device
CN101501615A (en) Method and system for displaying a multitude of objects on a display
CN107479892A (en) Play frame view creation method, device and electronic equipment
CN107643916A (en) Control control method, device, electronic equipment and readable storage medium storing program for executing
CN107180032A (en) Comment on content display method and system
CN107193450A (en) Page elements system of selection and device
CN106775256A (en) Icon is across screen sliding method and device
CN106873880A (en) Electronic writing method and device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180130