Summary of the invention
A kind of object size method of adjustment that the embodiment of the present invention provides, if solving in current office software
The size of figure to be adjusted, uses the size adjustment point of mouse drag figure, to protect after needing to choose figure
Hold the wide high proportion regulation design that to be then adjusted again of feature size by lower keyboard shift key, therefore,
The when of adjusting feature size, owing to using mouse and keyboard shift key simultaneously so that operate complex,
And experience property is poor, and cause when figure adjusts, the technical problem of inconvenient operation.
A kind of object size method of adjustment that the embodiment of the present invention provides, including:
S1: obtain the size adjusting triggered by selection object and instruct, and show the wide high of described object
Button;
S2: obtain by triggering the corresponding size adjusting action of the high button of described width, and judge described right
Whether the width of elephant locks, if it is not, then perform step S3, the most then performs step S4;
S3: described width dimensions is carried out the adjustment that the abscissa of button high with described width is consistent, then performs
Step S4;
S4: judge whether the height of described object locks, if it is not, then carry out described height dimension and institute
State the adjustment that the vertical coordinate of wide high button is consistent.
Preferably, also include before step S2:
Judge the high edit pattern of width after the described size adjusting instruction triggered, if succinct pattern, then
Hidden lock is determined width button, is hidden locking height button, hides height text, hides width text, hidden
Tibetan highly increases button, hiding highly minimizing button, hiding width increases button, hiding width minimizing is pressed
Button, and perform step S2, if accurate model, then perform the action corresponding with described accurate model.
Preferably, perform the action corresponding with described accurate model to specifically include:
Judge whether graphic width locks, the most then show locking width button, lock width button figure
Mark state is lock-out state, if it is not, then show locking width button, described locking width button icon shape
State is non-locking state;
Judge whether pattern height locks, the most then show lock height button, lock height button figure
Mark state is lock-out state, if it is not, then show lock height button, lock height button icon state is
Non-locking state;
Display width text, increase width button, minimizing width button, highly text, increase are highly pressed
Button and minimizing height button;
Determine that described adjustment instructs as the locking width in described accurate model or lock height or input width
Or width finely tuned by input height or width increase button or width reduces button fine setting width or height increase is pressed
Button height-fine adjustment or height reduce the one in button height-fine adjustment, and perform corresponding size tune
Whole action.
Preferably, locking width specifically includes:
Get the first lock instruction triggered by described width button, it is judged that whether object width locks,
The most then arranging object width is non-locking state, and it is described non-for switching described locking width button icon
Lock-out state, if it is not, then arranging object width is lock-out state, switches described locking width button icon
For described lock-out state.
Preferably, lock height specifically includes:
Get the second lock instruction triggered by described height button, it is judged that whether object height locks,
The most then arranging object height is non-locking state, and it is described non-for switching described lock height button icon
Lock-out state, if it is not, then arranging object height is lock-out state, switches described lock height button icon
For described lock-out state.
Preferably, input width specifically includes:
Get the width input instruction by triggering described width text, it is judged that whether object width locks,
The most described width text enters editing mode;
Getting the width value of input, arranging object width is described width value.
Preferably, input highly specifically includes:
Get the height input instruction by triggering described height text, it is judged that whether object height locks,
The most described height text enters editing mode;
Getting the height value of input, arranging object height is described height value.
Preferably, width increase button fine setting width specifically includes:
Get the width increase fine setting instruction increasing button triggering by triggering width, it is judged that object width
Whether lock, the most then graphic width is set and adds 1.
Preferably, width minimizing button fine setting width specifically includes:
Get the width minimizing fine setting instruction reducing button triggering by triggering width, it is judged that object width
Whether lock, the most then graphic width is set and subtracts 1.
Preferably, height increase button fine setting width specifically includes:
Get the height increase fine setting instruction increasing button triggering by triggering height, it is judged that object height
Whether lock, the most then pattern height is set and adds 1;
Highly reduce button fine setting width to specifically include:
Get the height minimizing fine setting instruction reducing button triggering by triggering height, it is judged that object height
Whether lock, the most then pattern height is set and subtracts 1.
As can be seen from the above technical solutions, the embodiment of the present invention has the advantage that
Embodiments provide a kind of object size method of adjustment, wherein, object size method of adjustment
Including: S1: obtain the size adjusting triggered by selection object and instruct, and show the width of described object
High button;S2: obtain the size adjusting action corresponding by triggering the high button of described width, and judge institute
Whether the width stating object locks, if it is not, then perform step S3, the most then performs step S4;S3:
Described width dimensions is carried out the adjustment that the abscissa of button high with described width is consistent, then performs step S4;
S4: judge whether the height of described object locks, if it is not, then carry out described height dimension and described width
The adjustment that the vertical coordinate of high button is consistent.In the present embodiment, relative by obtaining by triggering wide high button
The size adjusting action answered, and judge whether the width of object locks, if it is not, then carried out by width dimensions
The adjustment that the abscissa of button high with width is consistent, the most then judge whether the height of object locks, if it is not,
Then height dimension is carried out the adjustment that the vertical coordinate of button high with width is consistent, just achieves the tune of object size
Whole function, solves in current office software to adjust the size of figure, uses after needing to choose figure
The size adjustment point of mouse drag figure, then will be by lower keyboard to keep wide high proportion to regulate feature size
The design that shift key is adjusted again, therefore, adjusting feature size when, owing to using Mus simultaneously
Mark and keyboard shift key so that operate complex, and experience property be poor, and cause when figure adjusts,
The technical problem of inconvenient operation.
Detailed description of the invention
Embodiments provide a kind of object size method of adjustment, if solving in current office software
The size of figure to be adjusted, uses the size adjustment point of mouse drag figure, to protect after needing to choose figure
Hold the wide high proportion regulation design that to be then adjusted again of feature size by lower keyboard shift key, therefore,
The when of adjusting feature size, owing to using mouse and keyboard shift key simultaneously so that operate complex,
And experience property is poor, and cause when figure adjusts, the technical problem of inconvenient operation.
For making the goal of the invention of the present invention, feature, the advantage can be the most obvious and understandable, below will
In conjunction with the 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 the embodiments described below are only a part of embodiment of the present invention, and not all
Embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creativeness
The all other embodiments obtained under work premise, broadly fall into the scope of protection of the invention.
Refer to Fig. 1, an embodiment of a kind of object size method of adjustment provided in the embodiment of the present invention
Including:
S1: obtain the size adjusting triggered by selection object and instruct, and show the high button of width of object;
When the size of object, such as figure is adjusted by needs when, need first to obtain by selecting
Object and the size adjusting instruction that triggers, and show the high button of width of object, this wide high button can be
The lower right corner of object shows, can be further when press wide high button display object width text and
Highly text.
S2: obtain the size adjusting action corresponding by triggering wide high button, and judge the width of object
Whether lock, if it is not, then perform step S3, the most then perform step S4;
When obtaining by selecting object and the size adjusting that triggers instructs, and show object the high button of width it
After, need to obtain the size adjusting action corresponding by triggering wide high button, and judge the width of object
Whether lock, if it is not, then perform step S3, the most then perform step S4.
The size adjusting action that aforesaid acquisition is corresponding by triggering wide high button, can be to obtain to pass through
Drag the action of wide high button.
S3: width dimensions is carried out the adjustment that the abscissa of button high with width is consistent, then performs step S4;
When the width judging object is non-locking, then width dimensions is carried out and the abscissa one of wide high button
The adjustment caused, then perform step S4.
S4: judge whether the height of object locks, if it is not, then carry out button high with width by height dimension
The adjustment that vertical coordinate is consistent.
When the width judging object locks, then judge whether the height of object locks, if it is not, then by height
Degree size carries out the adjustment that the vertical coordinate of button high with width is consistent.
In the present embodiment, by obtaining the size adjusting action corresponding by triggering wide high button, and sentence
Whether the width of disconnected object locks, if it is not, the abscissa that width dimensions then carries out button high with width is consistent
Adjustment, the most then judge whether the height of object locks, if it is not, then carried out by height dimension with wide
The adjustment that the vertical coordinate of high button is consistent, just achieves the function of the adjustment of object size, solves at present
To adjust the size of figure in office software, after needing to choose figure, use the big ditty of mouse drag figure
Node, then will be by setting that lower keyboard shift key is adjusted again to keep wide high proportion to regulate feature size
Meter, therefore, adjusting feature size when, owing to using mouse and keyboard shift key simultaneously so that
Operate complex, and experience property be poor, and cause when figure adjusts, the technology of inconvenient operation is asked
Topic.
The above is that the process to object size method of adjustment is described in detail, below will be to accurate model
It is described in detail, refers to Fig. 2, a kind of object size method of adjustment provided in the embodiment of the present invention
Another embodiment include:
201, obtain the size adjusting triggered by selection object to instruct, and show the high button of width of object;
When the size of object, such as figure is adjusted by needs when, need first to obtain by selecting
Object and the size adjusting instruction that triggers, and show the high button of width of object, this wide high button can be
The lower right corner of object shows, can be further when press wide high button display object width text and
Highly text.
202, the high edit pattern of width after the size adjusting instruction triggered is judged, if succinct pattern, then
Hidden lock is determined width button, is hidden locking height button, hides height text, hides width text, hidden
Tibetan highly increases button, hiding highly minimizing button, hiding width increases button, hiding width minimizing is pressed
Button, and perform step 203 to 205, if accurate model, then perform step 206 to 209;
When obtaining by selecting object and the size adjusting that triggers instructs, and show object the high button of width it
After, need the high edit pattern of width after the size adjusting instruction judging to trigger, if succinct pattern, then
Hidden lock is determined width button, is hidden locking height button, hides height text, hides width text, hidden
Tibetan highly increases button, hiding highly minimizing button, hiding width increases button, hiding width minimizing is pressed
Button, and perform step 203 to, if accurate model, then perform step 206 to 209.
203, obtain the size adjusting action corresponding by triggering wide high button, and judge the width of object
Whether lock, if it is not, then perform step 204, the most then perform step 205;
After the high edit pattern of width after judging the size adjusting triggered instruction is succinct pattern, need
Obtain the size adjusting action corresponding by triggering wide high button, and judge whether the width of object locks,
If it is not, then perform step 204, the most then perform step 205.
The size adjusting action that aforesaid acquisition is corresponding by triggering wide high button, can be to obtain to pass through
Drag the action of wide high button.
204, width dimensions is carried out the adjustment that the abscissa of button high with width is consistent, then performs step 205;
When the width judging object is non-locking, then width dimensions is carried out and the abscissa one of wide high button
The adjustment caused, then perform step 205.
205, judge whether the height of object locks, if it is not, then height dimension to be carried out button high with width
The adjustment that vertical coordinate is consistent;
When the width judging object locks, then judge whether the height of object locks, if it is not, then by height
Degree size carries out the adjustment that the vertical coordinate of button high with width is consistent.
206, judge whether object width locks, the most then show that locking width button, locking width are pressed
Button icon state is lock-out state, and performs step 207, if it is not, then show locking width button, locking
Width button icon state is non-locking state, and performs step 207;
After the high edit pattern of width after judging the size adjusting triggered instruction is accurate model, then sentence
Whether disconnected object width locks, the most then show locking width button, lock width button icon state
For lock-out state, and perform step 207, if it is not, then show locking width button, lock width button figure
Mark state is non-locking state, and performs step 207.
207, judging whether object height locks, the most then show lock height button, lock height is pressed
Button icon state is lock-out state, and performs step 208, if it is not, then show lock height button, and locking
Height button icon state is non-locking state, and performs step 208;
After step 206 terminates, need to judge whether object height locks, the most then show locking height
Degree button, lock height button icon state is lock-out state, and performs step 208, if it is not, then show
Lock height button, lock height button icon state is non-locking state, and performs step 208.
208, display width text, increase width button, minimizing width button, highly text, increase height
Degree button and minimizing height button;
After step 207, need display width text, increase width button, minimizing width button, height
Degree text, increase height button and minimizing height button.
209, determine that adjusting instruction for the locking width in accurate model or lock height or inputs width or defeated
Enter height or width increase button fine setting width or width reduces button fine setting width or height increase button is micro-
Adjusting height or height reduce the one in button height-fine adjustment, and perform corresponding size adjusting
Action.
When display width text, increase width button, minimizing width button, highly text, increase height
After button and minimizing height button, it is thus necessary to determine that adjust instruction for the locking width in accurate model or lock
Fixed height or input width or input are highly or width increases button fine setting width or width reduces button fine setting
Width or height increase button height-fine adjustment or height reduces the one in button height-fine adjustment, and perform with
The action of corresponding size adjusting.
It should be noted that aforesaid locking width or lock height or input width or input height or wide
Degree increases button fine setting width or width reduces button fine setting width or height increases button height-fine adjustment or height
Degree reduces button height-fine adjustment and will be described in detail in subsequent embodiment, and here is omitted.
In the present embodiment, by obtaining the size adjusting action corresponding by triggering wide high button, and sentence
Whether the width of disconnected object locks, if it is not, the abscissa that width dimensions then carries out button high with width is consistent
Adjustment, the most then judge whether the height of object locks, if it is not, then carried out by height dimension with wide
The adjustment that the vertical coordinate of high button is consistent, just achieves the function of the adjustment of object size, solves at present
To adjust the size of figure in office software, after needing to choose figure, use the big ditty of mouse drag figure
Node, then will be by setting that lower keyboard shift key is adjusted again to keep wide high proportion to regulate feature size
Meter, therefore, adjusting feature size when, owing to using mouse and keyboard shift key simultaneously so that
Operate complex, and experience property be poor, and cause when figure adjusts, the technology of inconvenient operation is asked
Topic, and the design of accurate model, further increase the accuracy that object size adjusts.
The above is that the judge process to accurate model is described in detail, below by respectively to locking width
Lock height or input width or input height or width increase button fine setting width or width reduce button
Fine setting width or height increase the process of button height-fine adjustment or height minimizing button height-fine adjustment and carry out one by one
Describe.
One, locking width;
Referring to Fig. 3, another of a kind of object size method of adjustment provided in the embodiment of the present invention is implemented
Example includes:
301, the first lock instruction triggered by locking width button is got, it is judged that object width whether
Locking, the most then perform step 302, if it is not, then perform step 303;
After needs trigger locking width button, need to get first triggered by width button
Lock instruction, it is judged that whether object width locks, the most then perform step 302, if it is not, then perform step
Rapid 303;
302, arranging object width is non-locking state, and switching locking width button icon is non-locking state;
When judge object width as locking, then arranging object width is non-locking state, switching locking width
Button icon is non-locking state.
303, arranging object width is lock-out state, and switching locking width button icon is lock-out state.
When judging that object width is non-locking, then arranging object width is lock-out state, switching locking width
Button icon is lock-out state.
Two, lock height;
Referring to Fig. 4, another of a kind of object size method of adjustment provided in the embodiment of the present invention is implemented
Example includes:
401, the first lock instruction triggered by lock height button is got, it is judged that object height whether
Locking, the most then perform step 402, if it is not, then perform step 403;
After needs trigger lock height button, need to get first triggered by height button
Lock instruction, it is judged that whether object height locks, the most then perform step 402, if it is not, then perform step
Rapid 403;
402, arranging object height is non-locking state, and switching lock height button icon is non-locking state;
When judge object height as locking, then arranging object height is non-locking state, switch lock height
Button icon is non-locking state.
403, arranging object height is lock-out state, and switching lock height button icon is lock-out state.
When judging that object height is non-locking, then arranging object height is lock-out state, switches lock height
Button icon is lock-out state.
Three, input width;
Referring to Fig. 5, another of a kind of object size method of adjustment provided in the embodiment of the present invention is implemented
Example includes:
501, the width input instruction by triggering width text is got, it is judged that whether object width locks,
The most then perform step 502;
After triggering width text, need the width input instruction got by triggering width text,
Judge whether object width locks, the most then perform step 502.
502: width text enters editing mode;
When object width is locking, then width text enters editing mode.
503, getting the width value of input, arranging object width is width value.
After width text enters editing mode, need to get the width value of input, arrange image width
Degree is width value.
Four, input height;
Referring to Fig. 6, another of a kind of object size method of adjustment provided in the embodiment of the present invention is implemented
Example includes:
601, the height input instruction by triggering height text is got, it is judged that whether object height locks,
The most then perform step 602;
After triggering height text, need the height input instruction got by triggering height text,
Judge whether object height locks, the most then perform step 602.
602: highly text enters editing mode;
When object height is locking, then height text enters editing mode.
603, getting the height value of input, arranging object height is height value.
After height text enters editing mode, need to get the height value of input, it is high that object is set
Degree is height value.
Five, width increases button fine setting width;
Referring to Fig. 7, another of a kind of object size method of adjustment provided in the embodiment of the present invention is implemented
Example includes:
701, get the width triggered by triggering width increase button and increase fine setting instruction, it is judged that object
Whether width locks, the most then perform step 702;
After triggering width and increasing button, need to get by triggering the width that width increase button triggers
Degree increases fine setting instruction, it is judged that whether object width locks, the most then perform step 702.
702, object width is set and adds 1.
When judging that object width as locking, then arranges object width and adds 1.
Six, width reduces button fine setting width;
Referring to Fig. 8, another of a kind of object size method of adjustment provided in the embodiment of the present invention is implemented
Example includes:
801, get the width triggered by triggering width minimizing button and increase fine setting instruction, it is judged that object
Whether width locks, the most then perform step 802;
After triggering width and reducing button, need to get by triggering the width that width minimizing button triggers
Degree increases fine setting instruction, it is judged that whether object width locks, the most then perform step 802.
802, object width is set and subtracts 1.
When judging that object width as locking, then arranges object width and subtracts 1.
Seven, height increases button height-fine adjustment;
Referring to Fig. 9, another of a kind of object size method of adjustment provided in the embodiment of the present invention is implemented
Example includes:
901, get the height triggered by triggering height increase button and increase fine setting instruction, it is judged that object
The most whether lock, the most then perform step 902;
After triggering height and increasing button, needing to get increases, by triggering height, the height that button triggers
Degree increases fine setting instruction, it is judged that whether object height locks, the most then perform step 902.
902, object width is set and adds 1.
When judging that object width as locking, then arranges object width and adds 1.
Eight, height reduces button height-fine adjustment;
Referring to Figure 10, another of a kind of object size method of adjustment provided in the embodiment of the present invention is real
Execute example to include:
1001, get the height triggered by triggering height minimizing button and increase fine setting instruction, it is judged that be right
As the most whether locking, the most then perform step 1002;
After triggering height and reducing button, need to get and reduce, by triggering height, the height that button triggers
Degree increases fine setting instruction, it is judged that whether object height locks, the most then perform step 1002.
1002, object height is set and subtracts 1.
When judging that object height as locking, then arranges object height and subtracts 1.
Those skilled in the art is it can be understood that arrive, and for convenience and simplicity of description, above-mentioned retouches
The specific works process of the system stated, device and unit, is referred to the correspondence in preceding method embodiment
Process, does not repeats them here.
In several embodiments provided herein, it should be understood that disclosed system, device and
Method, can realize by another way.Such as, device embodiment described above is only shown
Meaning property, such as, the division of described unit, be only a kind of logic function and divide, actual can when realizing
There to be other dividing mode, the most multiple unit or assembly can in conjunction with or be desirably integrated into another
System, or some features can ignore, or do not perform.Another point, shown or discussed each other
Coupling direct-coupling or communication connection can be the INDIRECT COUPLING by some interfaces, device or unit
Or communication connection, can be electrical, machinery or other form.
The described unit illustrated as separating component can be or may not be physically separate, makees
The parts shown for unit can be or may not be physical location, i.e. may be located at a place,
Or can also be distributed on multiple NE.Can select according to the actual needs part therein or
The whole unit of person realizes the purpose of the present embodiment scheme.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit,
Can also be that unit is individually physically present, it is also possible to two or more unit are integrated in a list
In unit.Above-mentioned integrated unit both can realize to use the form of hardware, it would however also be possible to employ software function list
The form of unit realizes.
If described integrated unit realizes and as independent production marketing using the form of SFU software functional unit
Or when using, can be stored in a computer read/write memory medium.Based on such understanding, this
The part that the most in other words prior art contributed of technical scheme of invention or this technical scheme
Completely or partially can embody with the form of software product, this computer software product is stored in one
In storage medium, including some instructions with so that computer equipment (can be personal computer,
Server, or the network equipment etc.) perform completely or partially walking of method described in each embodiment of the present invention
Suddenly.And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD
Etc. the various media that can store program code.
The above, above example only in order to technical scheme to be described, is not intended to limit;
Although being described in detail the present invention with reference to previous embodiment, those of ordinary skill in the art should
Work as understanding: the technical scheme described in foregoing embodiments still can be modified by it, or to it
Middle part technical characteristic carries out equivalent;And these amendments or replacement, do not make appropriate technical solution
Essence depart from various embodiments of the present invention technical scheme spirit and scope.