Specific embodiment
Many details are explained in the following description in order to fully understand this specification.But this specification energy
Enough to be implemented with being much different from other way described herein, those skilled in the art can be without prejudice to this specification intension
In the case where do similar popularization, therefore this specification is not limited by following public specific implementation.
Fig. 1 is to show the structural block diagram of the calculating equipment 100 according to one embodiment of this specification.The calculating equipment 100
Component include but is not limited to memory 110 and processor 120.Processor 120 is connected with memory 110 by bus 130,
Database 150 is for saving related data.
Calculating equipment 100 further includes access device 140, access device 140 enable calculate equipment 100 via one or
Multiple networks 160 communicate.The example of these networks includes public switched telephone network (PSTN), local area network (LAN), wide area network
(WAN), the combination of the communication network of personal area network (PAN) or such as internet.Access device 140 may include wired or wireless
One or more of any kind of network interface (for example, network interface card (NIC)), such as IEEE802.11 wireless local area
Net (WLAN) wireless interface, worldwide interoperability for microwave accesses (Wi-MAX) interface, Ethernet interface, universal serial bus (USB) connect
Mouth, cellular network interface, blue tooth interface, near-field communication (NFC) interface, etc..
In one embodiment of this specification, unshowned other component in above-mentioned and Fig. 1 of equipment 100 is calculated
It can be connected to each other, such as pass through bus.It should be appreciated that calculating device structure block diagram shown in FIG. 1 is merely for the sake of example
Purpose, rather than the limitation to this specification range.Those skilled in the art can according to need, and increase or replace other portions
Part.
Calculating equipment 100 can be any kind of static or mobile computing device, including mobile computer or mobile meter
Calculate equipment (for example, tablet computer, personal digital assistant, laptop computer, notebook computer, net book etc.), movement
Phone (for example, smart phone), wearable calculating equipment (for example, smartwatch, intelligent glasses etc.) or other kinds of shifting
Dynamic equipment, or the static calculating equipment of such as desktop computer or PC.Calculating equipment 100 can also be mobile or state type
Server.
Wherein, processor 120 can execute the step in method shown in Fig. 2.Fig. 2 is to show according to this specification one in fact
Apply the schematic flow chart of the data processing method of example, including step 202, step 204 and step 206.
Step 202: receive user input operation expression, wherein the element in the operation expression include variable,
Operator and connector.
In a kind of embodiment, passes through RichTextBox interactive interface and receive user and click the variable of selection input, operator
Or connector, wherein the RichTextBox interactive interface includes clicking selection region and text box field, and the click selects area
Domain includes the multiple variables choice labels provided in a manner of row arrangement, multiple operators selection label and the selection of multiple connectors
Label;User is clicked into the corresponding variable of variables choice label of selection or operator selects the corresponding operator of label or connection
The corresponding connector of symbol selection label is shown in the text box field.In specific implementation, variables choice label, operator
Selection label and connector selection label are shown in click selection region in a manner of row arrangement respectively.The present embodiment will be by that will transport
Variable, operator and connector in operator expression formula carry out capable arrangement, display mode letter in a manner of selectable label respectively
It is clean, shared space on interactive interface can be reduced, checks and selects convenient for user, the user experience is improved.
In a kind of embodiment, at least one of variable, operator and connector in the text box field are to scheme
Target mode is shown.For example, the icon can also be provided with can delete button, one of icon is deleted when the user clicks
When except button, corresponding icon is deleted from the text box field.
In a kind of embodiment, user is clicked into the corresponding variable of variables choice label of selection or operator is selected described
It selects the corresponding operator of label or the corresponding connector of connector selection label is shown in the text box field after step
Further include: it receives user and Subgraph target in the text box field is pulled to realize variable in the operation expression, fortune
The rearrangement of operator and connector.This implementation is by way of dragging to variable, operator and connector in operation expression
It resequences, it is easy to operate, it is adjusted convenient for sequence of the user to each element in operation expression.
In a kind of embodiment, in response to the cursor dwell event of the text box field, selection is provided in cursor side
Frame at least partly shows variable, operator or connector to receive user's when the choice box to user when the user clicks
Selection is clicked, convenient for improving the input speed of user, saves the time of user.
In a kind of embodiment, when receiving the character that user is inputted by the choice box, searching for and showing has
The variable of the character saves the time of user with the click selection for receiving user convenient for improving the input speed of user.
Step 204: according to the corresponding relationship of cohesion and spacing between preset variable, operator, variate-value,
Adjust the operator in the operation expression and the spacing between variable and the spacing between operator and variate-value.This reality
Example is applied to pass through according to the adjustment of the corresponding relationship of cohesion and spacing between preset variable, operator, variate-value
The spacing between operator and variable in operation expression and the spacing between operator and variate-value, are checked convenient for user
Variable in operation expression, operator, the cohesion between variate-value, facilitate user and understand operation expression, promote user
Experience.
In a kind of embodiment, the element of the operation expression further includes key-value pair, after the step further include:
According to the corresponding relationship of cohesion and spacing between preset key-value pair and connector, adjust in the operation expression
Key-value pair and connector between spacing, checked convenient for user intimate between key-value pair and connector in operation expression
Degree promotes user experience.
Step 206: according to the spacing between each adjacent element in the operation expression adjusted by the operation
Expression formula shows user.
In a kind of embodiment, the connector in the operation expression is highlighted.For example, in the operation expression
Connector highlighted in a manner of at least one of overstriking, color and background color, checked in operation expression convenient for user each
Connection relationship between variable.
In a kind of embodiment, according to the operation degree of operator each in the operation expression, by the operation expression
In each operator highlight in different ways.Such as each operator in operation expression with the lines of different thicknesses,
At least one of different colors and different background colors mode highlight, and check each variable in operation expression convenient for user
Between operation degree.
In a kind of embodiment, the RichTextBox interactive interface further includes preview area, and the operation expression is in institute
It states preview area and shows user, final operation expression is checked convenient for user.
Fig. 3 a~Fig. 3 c shows the implementation of the RichTextBox of one embodiment of this specification, and Fig. 3 a is to show this theory
The screenshot capture of the operation expression RichTextBox of bright one embodiment of book;Fig. 3 b is to show the operation of one embodiment of this specification
The screenshot capture of the interbehavior of expression formula RichTextBox;Fig. 3 c is to show the operation expression richness of one embodiment of this specification
The screenshot capture of the operator of different connector and nonidentity operation degree is marked in text box using color.As shown in Figure 3a, rich
Text box interactive interface includes clicking selection region and text box field, and the click selection region includes in a manner of row arrangement
Multiple variables choice labels, multiple operators selection label and the multiple connectors provided selects label;User is clicked and is selected
The corresponding variable of variables choice label or the operator corresponding operator of selection label or the corresponding company of connector selection label
Symbol is connect to be shown in the text box field.In specific implementation, variables choice label, operator selection label and connector choosing
It selects label and is shown in click selection region in a manner of row arrangement respectively.As shown in Figure 3b, being clicked the label chosen can fall into
Text box field is shown.Variable, operator and connector in text box field show that icon also mentions in a manner of icon
Be provided with can delete button, when the user clicks one of icon can delete button when, corresponding icon is from the text box area
It deletes in domain.It may be implemented in the operation expression when receiving user and being pulled to Subgraph target in the text box field
The rearrangement of variable, operator and connector.As shown in Figure 3c, different companies is distinguished in the present embodiment with different colors
Connect the operator of symbol and nonidentity operation degree, it is this to distinguish different connectors and the mode of operator is simple and clear.
This specification embodiment passes through according to the cohesion and spacing between preset variable, operator, variate-value
Corresponding relationship adjust the operator in the operation expression and the spacing between variable and between operator and variate-value
Spacing, check variable in operation expression, operator, the cohesion between variate-value convenient for user, facilitate user's understanding
Operation expression promotes user experience.
Corresponding with aforementioned data processing method, this specification additionally provides data processing equipment embodiment, described device
Embodiment can also be realized by software realization by way of hardware or software and hardware combining.Taking software implementation as an example,
It is by the processor of equipment where it by calculating corresponding in nonvolatile memory as the device on a logical meaning
Machine program instruction is read into memory what operation was formed.For hardware view, equipment where this specification data processing equipment
A kind of hardware configuration may include device in embodiment except processor, network interface, memory and nonvolatile memory
The equipment at place can also include other hardware, repeat no more to this generally according to the actual functional capability of the event detection.
Fig. 4 is to show the data processing equipment module map of one embodiment of this specification.Data processing equipment in Fig. 4
400 have corresponded to embodiment illustrated in fig. 2, and described device 400 includes:
Receiver 410 is configured as receiving the operation expression of user's input, wherein the member in the operation expression
Element includes variable, operator and connector;
Adjuster 420 is configured as according to the cohesion and spacing between preset variable, operator, variate-value
Corresponding relationship, adjust the operator in the operation expression and the spacing between variable and between operator and variate-value
Spacing;
Display device 430 is configured as according to the spacing between each adjacent element in the operation expression adjusted
The operation expression is showed into user.
In an optional embodiment, the receiver includes:
Interface module is configured as receiving variable, the operation of user's click selection input by RichTextBox interactive interface
Symbol or connector, wherein the RichTextBox interactive interface includes clicking selection region and text box field, the click selection
Region includes multiple variables choice labels, multiple operators selection label and multiple connectors selection label;
Display module is configured as clicking user into the corresponding variable of variables choice label of selection or operator selection mark
It signs corresponding operator or the corresponding connector of connector selection label is shown in the text box field.
In an optional embodiment, at least one of variable, operator and connector in the text box field
It is shown in a manner of icon.
In an optional embodiment, the icon has can delete button.
In an optional embodiment, the receiver further include:
Sorting module is configured as receiving user to Subgraph target dragging in the text box field to realize the fortune
The rearrangement of variable, operator and connector in operator expression formula.
In an optional embodiment, the connector in the operation expression is highlighted.
In an optional embodiment, connector in the operation expression in overstriking, color and background color at least
A kind of mode highlights.
In an optional embodiment, the configurator is additionally configured to according to operator each in the operation expression
Operation degree highlights each operator in the operation expression in different ways.
In an optional embodiment, each operator in the operation expression is with lines of different thicknesses, different
At least one of color and different background colors mode highlight.
In an optional embodiment, the display module is additionally configured to stop in response to the cursor of the text box field
Event is stayed, choice box is provided in cursor side, at least partly shows variable, fortune to user when the choice box when the user clicks
Operator or connector are selected with the click for receiving user.
In an optional embodiment, the display module is additionally configured to defeated by the choice box when receiving user
When the character entered, searches for and show the variable with the character to receive the click selection of user.
In an optional embodiment, the RichTextBox interactive interface further includes preview area, the operation expression
User is showed in the preview area.
Device, module or the unit that above-described embodiment illustrates, can specifically be realized by computer chip, or by having certain
The product of function is planted to realize.A kind of typically to realize that equipment is computer, the concrete form of computer can be individual calculus
Machine, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media player, navigation equipment,
Any several equipment in E-mail receiver/send equipment, game console, tablet computer, wearable device or these equipment
Combination.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus
Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit
The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with
It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual
The purpose for needing to select some or all of the modules therein to realize this specification scheme.Those of ordinary skill in the art are not
In the case where making the creative labor, it can understand and implement.
One embodiment of this specification also provides a kind of calculating equipment, including memory, processor and storage are on a memory
And the computer instruction that can be run on a processor, the processor realize the data processing method when executing described instruction
The step of.
One embodiment of this specification also provides a kind of computer readable storage medium, is stored with computer instruction, this refers to
Enable the step of data processing method is realized when being executed by processor.
A kind of exemplary scheme of above-mentioned computer readable storage medium for the present embodiment.It should be noted that this is deposited
The technical solution of the technical solution of storage media and above-mentioned data processing method belongs to same design, the technical solution of storage medium
The detail content being not described in detail may refer to the description of the technical solution of above-mentioned data processing method.
The computer instruction includes computer program code, the computer program code can for source code form,
Object identification code form, executable file or certain intermediate forms etc..The computer-readable medium may include: that can carry institute
State any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disk, CD, the computer storage of computer program code
Device, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory),
Electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that the computer-readable medium include it is interior
Increase and decrease appropriate can be carried out according to the requirement made laws in jurisdiction with patent practice by holding, such as in certain jurisdictions of courts
Area does not include electric carrier signal and telecommunication signal according to legislation and patent practice, computer-readable medium.
It should be noted that for the various method embodiments described above, describing for simplicity, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, this specification is not limited by the described action sequence, because
For according to this specification, certain steps can use other sequences or carry out simultaneously.Secondly, those skilled in the art also should
Know, the embodiments described in the specification are all preferred embodiments, and related actions and modules might not all be this
Necessary to specification.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiments.
This specification preferred embodiment disclosed above is only intended to help to illustrate this specification.Alternative embodiment is not
All details of detailed descriptionthe, do not limit the invention to the specific embodiments described.Obviously, according in this specification
Hold, can make many modifications and variations.These embodiments are chosen and specifically described to this specification, is in order to preferably explain this theory
The principle and practical application of bright book, so that skilled artisan be enable to better understand and utilize this specification.This
Specification is limited only by the claims and their full scope and equivalents.