CN104951223B - A kind of touch screen realizes the method, apparatus and host of magnifying glass - Google Patents
A kind of touch screen realizes the method, apparatus and host of magnifying glass Download PDFInfo
- Publication number
- CN104951223B CN104951223B CN201410123969.8A CN201410123969A CN104951223B CN 104951223 B CN104951223 B CN 104951223B CN 201410123969 A CN201410123969 A CN 201410123969A CN 104951223 B CN104951223 B CN 104951223B
- Authority
- CN
- China
- Prior art keywords
- magnifying glass
- input
- gesture
- target object
- input operation
- 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.)
- Active
Links
- 239000011521 glass Substances 0.000 title claims abstract description 155
- 238000000034 method Methods 0.000 title claims abstract description 74
- 230000005540 biological transmission Effects 0.000 claims abstract description 34
- 230000003321 amplification Effects 0.000 claims description 26
- 238000003199 nucleic acid amplification method Methods 0.000 claims description 26
- 230000006870 function Effects 0.000 claims description 20
- 238000012545 processing Methods 0.000 claims description 18
- 238000004891 communication Methods 0.000 claims description 13
- 238000004898 kneading Methods 0.000 claims description 13
- 230000008569 process Effects 0.000 claims description 12
- 230000008859 change Effects 0.000 claims description 9
- 238000010586 diagram Methods 0.000 description 8
- 235000013399 edible fruits Nutrition 0.000 description 6
- 238000004091 panning Methods 0.000 description 6
- 238000006243 chemical reaction Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 5
- 230000002452 interceptive effect Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 1
- 230000003796 beauty Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000002407 reforming Methods 0.000 description 1
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the present invention provides the method and device that magnifying glass operation is realized on a kind of touch screen, is applied to the electronic equipment with magnifying function and touch screen, including:Obtain the input operation on touch screen;Whether the target object according to input operation judges input operation is magnifying glass, carries out gesture judgement if it is, being operated to input, obtains gesture judging result;Judge to input according to gesture judging result to operate and whether be handled by the target object being amplified, if it is, being converted and then being passed through the target object being amplified to input operation;Judge whether content update is had by the corresponding coordinates regional of the target object being amplified of transparent transmission, if so, then updating the display content of magnifying glass.The embodiment of the present invention provides the method that magnifying glass operation is realized on touch screen, can automatically carry out model selection.The embodiment of the present invention also provides a kind of host.
Description
Technical field
The present invention relates to data processing field, more particularly to a kind of touch screen realizes the method for magnifying glass, dress
It sets and host.
Background technology
With the fast development of mobile platform, people have begun the dependence of intelligent movable touch screen terminal to surmount PC, move
Dynamic intelligent terminal has abandoned traditional key mouse input mode, and uses more humanized touch-screen input, to greatly simple
The use changed and facilitate people to it so that the people of various age brackets can use under the premise of no trained.
And keeping reforming and improving with technology, the processing capacity of mobile intelligent terminal constantly enhances, it is already possible to and PC matches in excellence or beauty,
But compared to PC, mobile intelligent terminal smaller is lighter, it is easier to carry.Although mobile intelligent terminal has various features and excellent
Gesture, but PC still can not be substituted at present, one of them important reason is, since mobile platform screen is small, resolution ratio is opposite
It is low, font is small, the application on many PC has no idea to be also impossible to directly migrate to mobile intelligent terminal, and which results in movements
Intelligent terminal helps people to carry out routine office work etc. like that without image of Buddha PC.
Due to mobile platform screen is small, resolution ratio is relatively low, font is small etc. so that read etc. operation and other
Using relatively difficult under special occasions, although there is component as similar scrollView to support to amplify, occasion still has very much
Limit, in this case, the appearance of software magnifier can solve problems, and will be amplified object by magnifying glass puts
Greatly, user is facilitated to read and operate, the user experience to reach.There are a kind of magnifying glass technical solution, the technical side at present
Magnifying glass operation is divided into both of which by case:Drag (panning) and it is non-drag (non-panning), it passes through model selection
Component selects different patterns.
However, the prior art provide magnifying glass operation mode, it is necessary to needs artificially manually select, and cannot automatically into
Row model selection.
Invention content
In view of this, the purpose of the present invention is to propose to a kind of method that touch screen realizes magnifying glass, it can be with automatic identification
The operation mode of magnifying glass, the first aspect of the application provide a kind of method that touch screen realizes magnifying glass, applied to having
The electronic equipment of magnifying function and touch screen, including:
Obtain the input operation on touch screen;
Input whether the target object of operation is magnifying glass according to described in the input operation judges, if it is, to institute
It states input operation and carries out gesture judgement, obtain gesture judging result;
Judge whether input operation is handled by the target object being amplified according to the gesture judging result, such as
Fruit is then to be converted and then passed through the target object being amplified to the input operation;
Judge whether the corresponding coordinates regional of the target object being amplified described in transparent transmission has content update, if so,
Then update the display content of magnifying glass.
With reference to first aspect, in the first possible realization method of first aspect,
It is described to be converted and then passed through the target object being amplified to the input operation, including:
Judge whether to carry out application virtualization to the target object that is amplified, if it is, being amplified described
Target object is converted into corresponding incoming event, and transparent transmission is carried out to the incoming event.
With reference to first aspect, in second of possible realization method of first aspect,
It is described to judge whether input operation is carried out by the target object being amplified according to the gesture judging result
Reason, if it is not, then input operation is handled by magnifying glass itself.
Second of possible realization method with reference to first aspect, in the third possible realization method of first aspect
In,
The input operation is handled by magnifying glass itself, including:
The classification for identifying the input operation, obtains the input and operates corresponding gesture event, according to the gesture thing
Part is operated accordingly respectively;
Judge whether the magnification region of magnifying glass changes, if it is, the amplifier for updating the magnification region is aobvious
Show component.
The third possible realization method with reference to first aspect, in the 4th kind of possible realization method of first aspect
In,
The classification of the identification input operation, obtains the input and operates corresponding gesture event, according to the hand
Gesture event is operated accordingly respectively, including:
When identifying that the input operation is rotation process classification, the corresponding change magnifying glass amplification of the rotation process is obtained
The gesture event of the factor;
According to the gesture event for changing magnifying glass amplification factor, change the amplification factor of magnifying glass.
The third possible realization method with reference to first aspect, in the 5th kind of possible realization method of first aspect
In,
The classification of the identification input operation, obtains the input and operates corresponding gesture event, according to the hand
Gesture event is operated accordingly respectively, including:
Identify that the gesture operation is to obtain described drag when dragging class of operation and operate the corresponding hand for dragging magnifying glass
Gesture event;
According to the gesture event for dragging magnifying glass, moving magnifier to new coordinates regional.
The third possible realization method with reference to first aspect, in the 6th kind of possible realization method of first aspect
In,
The classification of the identification input operation, obtains the input and operates corresponding gesture event, according to the hand
Gesture event is operated accordingly respectively, including:
When identifying that the gesture operation is kneading operation classification, the hand of the corresponding scaling magnifying glass of the kneading operation is obtained
Gesture event;
According to the gesture event of the scaling magnifying glass, the enlarged view of magnifying glass is zoomed in or out.
With reference to first aspect, in the 7th kind of possible realization method of first aspect,
It is described to input whether the target object of operation is magnifying glass according to described in the input operation judges, if it is not, then
Directly the input is operated and carries out transparent transmission.
The second aspect of the application provides a kind of device of touch screen realization magnifying glass, is applied to have magnifying function
And the electronic equipment of touch screen, including:
Acquiring unit, for obtaining the operation of the input on touch screen;
Processing unit, for inputting whether the target object of operation is magnifying glass according to described in the input operation judges,
Gesture judgement is carried out if it is, being operated to the input, obtains gesture judging result;Judged according to the gesture judging result
Whether the input operation is handled by the target object being amplified, if it is, to input operation convert so
The target object being amplified is passed through afterwards;
Updating unit, for judging whether the corresponding coordinates regional of the target object being amplified described in transparent transmission has content
Update, if so, then updating the display content of magnifying glass.
In conjunction with second aspect, in the first possible realization method of second aspect,
The processing unit includes:
First judgment module carries out application virtualization for judging whether to the target object being amplified, if so,
The target object being amplified then is converted into corresponding incoming event, transparent transmission is carried out to the incoming event.
In conjunction with second aspect, in second of possible realization method of second aspect,
The processing unit includes identification module, for whether judging the input operation according to the gesture judging result
It is handled by the target object being amplified, if it is not, then input operation is handled by magnifying glass itself.
In conjunction with second of possible realization method of second aspect, in the third possible realization method of second aspect
In,
The identification module, including:
Execution module, the classification of the input operation, obtains the input and operates corresponding gesture event, root for identification
It is operated accordingly respectively according to the gesture event;
Update module, for judging whether the magnification region of magnifying glass changes, if it is, updating the amplification region
The amplifier display unit in domain.
In conjunction with the third possible realization method of second aspect, in the 4th kind of possible realization method of second aspect
In,
The execution module, including:
First identification submodule obtains the rotation process when input operation is rotation process classification for identification
The corresponding gesture event for changing magnifying glass amplification factor;
First implementation sub-module, for according to the gesture event for changing magnifying glass amplification factor, changing magnifying glass
Amplification factor.
In conjunction with the third possible realization method of second aspect, in the 5th kind of possible realization method of second aspect
In,
The execution module, including:
Second identification submodule, the gesture operation is to obtain described dragging operation when dragging class of operation for identification
The corresponding gesture event for dragging magnifying glass;
Second implementation sub-module, the gesture event for dragging magnifying glass according to, moving magnifier to new coordinate
Region.
In conjunction with the third possible realization method of second aspect, in the 6th kind of possible realization method of second aspect
In,
The execution module, including:
Third identifies submodule, when the gesture operation is kneading operation classification for identification, obtains the kneading operation
The gesture event of corresponding scaling magnifying glass;
Third implementation sub-module zooms in or out putting for magnifying glass for the gesture event according to the scaling magnifying glass
Big view.
In conjunction with second aspect, in the 7th kind of possible realization method of second aspect,
The processing unit includes second judgment unit, and the second judgment unit is sentenced for root according to input operation
Whether the target object of the disconnected input operation is magnifying glass, and transparent transmission is carried out if it is not, then directly being operated to the input.
The third aspect of the application provides a kind of host, including processor, communication interface, memory and bus:
Wherein processor, communication interface, memory complete mutual communication by bus;
The communication interface, for obtaining the operation of the input on touch screen;
The processor, for executing program;
The memory, for storing program;
Its Program is used for:
Input whether the target object of operation is magnifying glass according to described in the input operation judges, if it is, to institute
It states input operation and carries out gesture judgement, obtain gesture judging result;
Judge whether input operation is handled by the target object being amplified according to the gesture judging result, such as
Fruit is then to be converted and then passed through the target object being amplified to the input operation;
Judge whether the corresponding coordinates regional of the target object being amplified described in transparent transmission has content update, if so,
Then update the display content of magnifying glass.
The embodiment of the present invention provides the method that magnifying glass operation is realized on touch screen, be applied to magnifying function and
The magnifying function of the electronic equipment of touch screen, electronic equipment has from gesture recognition capability, can judge to input hand
Gesture determines how to handle input operation, if input operation is located by being amplified target object according to input gesture
Reason then needs that input is converted and then passed through to be amplified target object, if by the target object of transparent transmission being amplified
Corresponding coordinates regional has content update, then updates the display content of magnifying glass.The embodiment of the present invention provides to be realized on touch screen
The method of magnifying glass operation, can automatically carry out model selection.In addition input is operated, can also be targetedly carried out
Input conversion, the input gesture operation on magnifying glass is passed through and is amplified target object, is realized in the upper progress of amplifier itself
The purpose of operating interactive.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
Obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of flow diagram that touch screen provided in an embodiment of the present invention realizes magnifying glass method;
Fig. 2 is another flow diagram that touch screen provided in an embodiment of the present invention realizes magnifying glass method;
Fig. 3 is another flow diagram that touch screen provided in an embodiment of the present invention realizes magnifying glass method;
Fig. 4 is another flow diagram that touch screen provided in an embodiment of the present invention realizes magnifying glass method;
Fig. 5 is a kind of structural schematic diagram that touch screen provided in an embodiment of the present invention realizes magnifier apparatus;
Fig. 6 is a kind of structural schematic diagram of host provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Referring to Fig. 1, the embodiment of the present invention provides a kind of method that touch screen realizes magnifying glass, is applied to have amplifier work(
The electronic equipment of energy and touch screen, method include:
Step 101:Obtain the input operation on touch screen.
Step 102:Whether the target object according to the input operation of input operation judges is magnifying glass, if it is, into
Row step 103.
Step 103:Input is operated and carries out gesture judgement, obtains gesture judging result.
Step 104:Judge to input according to gesture judging result to operate and whether be handled by the target object being amplified, such as
Fruit is then to carry out step 105.
Step 105:The target object being amplified is converted and then is passed through to input operation;
Step 106:Judge whether the corresponding coordinates regional of the target object being amplified described in transparent transmission has content update,
If so, then carrying out step 107.
Step 107:Update the display content of magnifying glass.
The embodiment of the present invention provides the method that magnifying glass operation is realized on touch screen, be applied to magnifying function and
The magnifying function of the electronic equipment of touch screen, electronic equipment has from gesture recognition capability, can judge to input hand
Gesture determines how to handle input operation, if input operation is located by being amplified target object according to input gesture
Reason then needs that input is converted and then passed through to be amplified target object, if by the target object of transparent transmission being amplified
Corresponding coordinates regional has content update, then updates the display content of magnifying glass.The embodiment of the present invention provides to be realized on touch screen
The method of magnifying glass operation, can automatically carry out model selection.In addition input is operated, can also be targetedly carried out
Input conversion, the input gesture operation on magnifying glass is passed through and is amplified target object, is realized in the upper progress of amplifier itself
The purpose of operating interactive.
Referring to Fig. 2, the embodiment of the present invention provides a kind of method that touch screen realizes magnifying glass, is applied to have amplifier work(
The electronic equipment of energy and touch screen, method include:
Step 201:Obtain the input operation on touch screen.
The input operation on electronic device touchscreen is obtained, which can be smart mobile phone, tablet computer, electronics
The equipment that book etc. has touch panel.Above-mentioned electronic equipment has iOS mobile platform systems, or, Androaid systems.
Input operation is the touch event on touch screen, and touch event can be clicked or touch touch screen or drag and drop, pinch
The gesture operations events such as conjunction, rotation.Such as input operation can be iOS mobile platform systems touchesBegin,
The action events such as touchesEnd.When Zoom lens system get input operation, as iOS system touchesBegin,
When the events such as touchesEnd, so that it may with the locationInView by UITouch come view where obtaining touch events
Coordinate, and according to OS(Operating system, Operating System)The API of offer(Application Programming
Interface, application programming interface)Obtain the opportunity of current touch event.
Step 202:Whether the target object according to input operation judges input operation is magnifying glass, if it is, carrying out
Step 203.Transparent transmission is carried out if it is not, then directly being operated to input.
Whether the target object according to input operation judges input operation is magnifying glass, if it is, indicating input operation
It is operated for magnifying glass, if the target object of input operation is not magnifying glass, the target object for inputting operation is operation system
System or application program consumption input, then directly operate input and carry out transparent transmission.Further, magnifying glass operation is divided into two kinds of moulds
Formula:It drags (panning) and non-drags (non-panning).Magnifying glass operation can be selected not by model selection component
Same pattern can consume input simultaneously moving magnifier sheet in the case where dragging (panning) pattern after magnifying glass catcher input operation
Body, updates magnification region, and it is non-drag (non-panning) pattern under, magnifying glass can receive input, however without any
Processing, but input is directly transmitted to the application being amplified or operating system.
Step 203:Input is operated and carries out gesture judgement, obtains gesture judging result.
Step 204:Judge to input according to gesture judging result to operate and whether be handled by the target object being amplified, such as
Fruit is then to carry out step 205.If it is not, then the gesture operation is handled by magnifying glass itself.
Magnifying glass is a functional component module, is the target object being amplified by the object that it amplifies, is amplified
Target object be the object that is amplified of reference, can be OS, can be some application, can also be to be regarded using some inner
Figure, for example in application virtualization iOS clients, it is that display application virtualization delivers the content that comes to be amplified object
UIView。
Step 205:Judge whether to carry out application virtualization to the target object being amplified, if it is, carrying out step
206。
Step 206:The target object being amplified is converted into corresponding incoming event, transparent transmission is carried out to incoming event.
Application virtualization is that application program is decoupling with operating system, and a virtual operation is provided for application program
Environment not only includes the executable file of application program in this environment, further includes its required runtime environment.It answers
With virtualization technology can by traditional Windows desktop or application be delivered on mobile intelligent terminal, can thus lead to
Mobile intelligent terminal is crossed to use desktop or the application on Windows.Therefore, the target object being amplified is carried out using virtual
Change, the target object being amplified can abstract the system of low layer and the dependence of hardware, solve asking for incompatible version
Topic.If the target object being amplified is the such application of application virtualization, needs to convert the input of transparent transmission, such as turn
It is changed to corresponding incoming event in Windows systems, then transparent transmission goes down again.
Further, in other embodiments of the invention, Forwarding component can be arranged in electronic equipment
Transparent transmission component, the input which is used for receive pass through the target object being amplified, which can be former
The untreated input or defeated after the conversion of Gesture transform component gesture converting members begun
Enter.Gesture transform component gesture identification components are primarily used to being customized, by the input of reception
It is converted, the input for being amplified that target object is recognizable or receives is converted to, then as the defeated of the target object being amplified
Enter to be transmitted to be amplified object such as OS or App.Such as in the iOS clients of application virtualization, the gesture identification component is by long-press thing
Part is converted on Windows and clicks event by right key, and the function of clicking by mouse right button is realized in iOS mobile platforms to reach.
Step 207:Judge whether content update is had by the corresponding coordinates regional of the target object being amplified of transparent transmission, if
Have, then carries out step 208.
Step 208:Update the display content of magnifying glass.
The embodiment of the present invention provides the method that magnifying glass operation is realized on touch screen, be applied to magnifying function and
The magnifying function of the electronic equipment of touch screen, electronic equipment has from gesture recognition capability, can judge to input hand
Gesture determines how to handle input operation, if input operation is located by being amplified target object according to input gesture
Reason then needs that input is converted and then passed through to be amplified under target object, such as application virtualization scene, by single finger
It clicks screen and is converted to left mouse button click event, otherwise directly pass through and be amplified object.If by being amplified for transparent transmission
The corresponding coordinates regional of target object has content update, then updates the display content of magnifying glass.The embodiment of the present invention provides touch
The method that magnifying glass operation is realized on screen, can automatically carry out model selection.In addition input is operated, can also be directed to
Property carry out input conversion, the input gesture operation on magnifying glass is passed through and is amplified target object, realize in amplifier sheet
The purpose of operating interactive is carried out with it.
Referring to Fig. 3, the embodiment of the present invention provides a kind of method that touch screen realizes magnifying glass, is applied to have amplifier work(
The electronic equipment of energy and touch screen, method include:
Step 310:Obtain the input operation on touch screen.
Step 320:Whether the target object according to the input operation of input operation judges is magnifying glass, if it is, into
Row step 330.
Step 330:Input is operated and carries out gesture judgement, obtains gesture judging result.
Step 340:Judge to input according to gesture judging result to operate and whether be handled by the target object being amplified, such as
Fruit is no, then carries out step 341~342.If it is, carrying out step 343~344.
Step 341:Gesture operation is handled by magnifying glass itself.
Step 342:Judge whether the corresponding coordinates regional of the processed target object being amplified has content update, if
Have, then carries out step 350.
Step 343:Transparent transmission is carried out to the target object being amplified.
Step 344:Judge whether content update is had by the corresponding coordinates regional of the target object being amplified of transparent transmission, if
Have, then carries out step 350.
Step 350:Update the display content of magnifying glass.
The embodiment of the present invention provides the method that magnifying glass operation is realized on touch screen, be applied to magnifying function and
The magnifying function of the electronic equipment of touch screen, electronic equipment has from gesture recognition capability, can judge to input hand
Gesture determines how to handle input operation, if input operation is located by being amplified target object according to input gesture
Reason then needs that input is converted and then passed through to be amplified under target object, such as application virtualization scene, by single finger
It clicks screen and is converted to left mouse button click event, otherwise directly pass through and be amplified object.If by being amplified for transparent transmission
The corresponding coordinates regional of target object has content update, then updates the display content of magnifying glass.The embodiment of the present invention provides touch
The method that magnifying glass operation is realized on screen, can automatically carry out model selection.
Referring to Fig. 4, the embodiment of the present invention provides a kind of method that touch screen realizes magnifying glass, is applied to have amplifier work(
The electronic equipment of energy and touch screen, method include:
Step 410:Obtain the input operation on touch screen.
Step 420:Whether the target object according to the input operation of input operation judges is magnifying glass, if it is, into
Row step 430.
Step 430:Input is operated and carries out gesture judgement, obtains gesture judging result.
Step 440:Judge to input according to gesture judging result to operate and whether be handled by the target object being amplified, such as
Fruit is no, then carries out step 450.
Step 450:The classification of identification input operation, obtains input and operates corresponding gesture event, according to gesture event point
It is not operated accordingly.
Gesture detect component gesture identifications component can detect input operation by the gesture of registration
In gesture classification, such as in iOS mobile platforms, when user carries out dragging operation on the touch screen of mobile terminal,
Mobile terminal just will receive the gesture event message of UI Pan Gesture Recognizer gestures, and when user carries out both hands
When referring to kneading operation, which just will receive the gesture event message of UI Pinch Gesture Recognizer gestures.
Further, which may include following methods:
First:When identification input operation is rotation process classification, obtain corresponding the changes magnifying glass of rotation process amplify because
The gesture event of son;According to the gesture event for changing magnifying glass amplification factor, change the amplification factor of magnifying glass.
Further, the Configuration component arrangement components modules in electronic equipment are used for that magnifying glass is arranged
Attribute, such as amplification factor, magnifying glass Display component frame sizes.In iOS mobile platforms, acquiescence does not carry
For the component, because these configuration attributes can be realized by touch gestures, without configuration.
Second:Identification gesture operation is to obtain dragging the corresponding gesture for dragging magnifying glass of operation when dragging class of operation
Event;According to the gesture event for dragging magnifying glass, moving magnifier to new coordinates regional.
Further, View auto-scroll component view auto Scrolls portion can be set in electronic equipment
Part, the component are used for for the control that can be amplified diminution as so similar scrollView in iOS, Android platform, when this
It after the control of sample is amplified, carries out touching when dragging operation in magnifying glass, current visible content can only be checked, due to amplification
Sightless content can not be checked by magnifying glass, but have the View auto-scroll component views
It, will be automatically according to dragging operation automatic to roll content to which make can not when carrying out dragging operation after auto Scroll component
The content seen is visible.
Third:When identifying that gesture operation is kneading operation classification, the gesture of the corresponding scaling magnifying glass of kneading operation is obtained
Event;According to the gesture event of scaling magnifying glass, the enlarged view of magnifying glass is zoomed in or out.
Further, the Magnification function amplification components in electronic equipment are used for being amplified mirror enhanced processing,
The module specifies the content in region to amplify specified multiple according to amplification factor by object is amplified, and provides and automatically update amplification
Function.Display component magnifying glass display units are the UI for the enlarging function that magnifying glass is presented, in iOS mobile platforms
The module view layer is indicated with UIView.
Step 460:Judge whether the magnification region of magnifying glass changes, if it is, carrying out step 470.
Step 470:Update the amplifier display unit of magnification region.
The embodiment of the present invention provides the method that magnifying glass operation is realized on touch screen, be applied to magnifying function and
The magnifying function of the electronic equipment of touch screen, electronic equipment has from gesture recognition capability, can judge to input hand
Gesture determines how to handle input operation according to input gesture, and if being handled by magnifying glass, then user is defeated
Enter for operating magnifying glass itself, such as scaling magnifying glass, moving magnifier etc..If the magnification region of magnifying glass changes
Become, then updates the amplifier display unit of magnification region.The embodiment of the present invention provides the side that magnifying glass operation is realized on touch screen
Method can automatically carry out model selection.
Referring to Fig. 5, the embodiment of the present invention provides a kind of device of touch screen realization magnifying glass, including:
Acquiring unit 100, for obtaining the operation of the input on touch screen;
Processing unit 200, for inputting whether the target object of operation is amplification according to described in the input operation judges
Mirror carries out gesture judgement if it is, being operated to the input, obtains gesture judging result;According to the gesture judging result
Judge whether the input operation is handled by the target object being amplified, if it is, turning to input operation
Change and then pass through the target object being amplified;
Updating unit 300, for judging whether the corresponding coordinates regional of the target object being amplified described in transparent transmission has
Content update, if so, then updating the display content of magnifying glass.
The embodiment of the present invention provides the device that magnifying glass operation is realized on touch screen, be applied to magnifying function and
The magnifying function of the electronic equipment of touch screen, electronic equipment has from gesture recognition capability, can judge to input hand
Gesture determines how to handle input operation, if input operation is located by being amplified target object according to input gesture
Reason then needs that input is converted and then passed through to be amplified target object, if by the target object of transparent transmission being amplified
Corresponding coordinates regional has content update, then updates the display content of magnifying glass.The embodiment of the present invention provides to be realized on touch screen
The method of magnifying glass operation, can automatically carry out model selection.In addition input is operated, can also be targetedly carried out
Input conversion, the input gesture operation on magnifying glass is passed through and is amplified target object, is realized in the upper progress of amplifier itself
The purpose of operating interactive.
Further, in other embodiments of the invention, processing unit 200 includes:
First judgment module carries out application virtualization, if it is, will for judging whether to the target object being amplified
The target object being amplified is converted into corresponding incoming event, and transparent transmission is carried out to incoming event.
Further, in other embodiments of the invention, processing unit 200 includes identification module, for according to gesture
Judging result judges whether input operation is handled by the target object being amplified, if it is not, then input operation is by magnifying glass
Itself is handled.
Further, in other embodiments of the invention, the identification module in processing unit 200, including:
Execution module inputs the classification of operation for identification, obtains input and operates corresponding gesture event, according to gesture thing
Part is operated accordingly respectively;
Update module, for judging whether the magnification region of magnifying glass changes, if it is, update magnification region
Amplifier display unit.
Further, in other embodiments of the invention, above-mentioned execution module, including:
First identification submodule obtains that rotation process is corresponding to be changed when input operation is rotation process classification for identification
Become the gesture event of magnifying glass amplification factor;
First implementation sub-module, for according to the gesture event for changing magnifying glass amplification factor, changing the amplification of magnifying glass
The factor.
Further, in other embodiments of the invention, above-mentioned execution module, including:
Second identifies submodule, and gesture operation operates corresponding drag when dragging class of operation, to obtain dragging for identification
Move the gesture event of magnifying glass;
Second implementation sub-module, for according to the gesture event for dragging magnifying glass, moving magnifier to new coordinates regional.
Further, in other embodiments of the invention, above-mentioned execution module, including:
Third identifies submodule, when gesture operation is kneading operation classification for identification, obtains the corresponding contracting of kneading operation
Put the gesture event of magnifying glass;
Third implementation sub-module, for the gesture event according to scaling magnifying glass, the amplification for zooming in or out magnifying glass regards
Figure.
Further, in other embodiments of the invention, above-mentioned processing unit includes second judgment unit, and second judges
Whether unit is magnifying glass according to the target object of input operation judges input operation for root, if it is not, then directly to input
Operation carries out transparent transmission.
Referring to Fig. 6, an embodiment of the present invention provides a kind of schematic diagrames of host 400.Host 400 may be comprising calculating energy
The host server personal computer PC or portable portable computer or terminal etc. of power, the present invention
Specific embodiment does not limit the specific implementation of host.Host 400 includes:
Processor (processor) 410, communication interface (Communications Interface) 420, memory
(memory) 430, bus 440.
Processor 410, communication interface 420, memory 430 complete mutual communication by bus 440.
Communication interface 420, for obtaining the operation of the input on touch screen.
Processor 410, for executing program 432.
Specifically, program 432 may include program code, and said program code includes computer-managed instruction.
Processor 410 may be a central processor CPU or specific integrated circuit ASIC(Application
Specific Integrated Circuit), or be arranged to implement the integrated electricity of one or more of the embodiment of the present invention
Road.
Memory 430, for storing program 432.Memory 430 may include high-speed RAM memory, it is also possible to further include
Nonvolatile memory(non-volatile memory), a for example, at least magnetic disk storage.
Program 432 specifically can be used for:
According to input operation judges input operation target object whether be magnifying glass, if it is, to input operate into
Row gesture judges, obtains gesture judging result;
Judge to input according to gesture judging result to operate and whether be handled by the target object being amplified, if it is,
The target object being amplified is converted and then is passed through to input operation;
Judge whether content update is had by the corresponding coordinates regional of the target object being amplified of transparent transmission, if so, then more
The display content of new magnifying glass.
It will be appreciated by those skilled in the art that attached drawing is the schematic diagram of a preferred embodiment, the module in attached drawing or stream
Journey is not necessarily implemented necessary to the present invention.
It will be appreciated by those skilled in the art that the module in device in embodiment can describe be distributed according to embodiment
In the device of embodiment, respective change can also be carried out and be located in one or more devices different from the present embodiment.Above-mentioned reality
The module for applying example can be merged into a module, can also be further split into multiple submodule.
One of ordinary skill in the art will appreciate that all or part of processing in above-described embodiment method is can to pass through
Program instructs the relevant hardware to complete, and the program can be stored in a kind of computer readable storage medium.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention.
Various modifications to these embodiments will be apparent to those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest range caused.
Claims (17)
1. a kind of method for realizing magnifying glass operation on touch screen, which is characterized in that be applied to magnifying function and touch
The electronic equipment of screen is touched, including:
Obtain the input operation on touch screen;
Input whether the target object of operation is magnifying glass according to described in the input operation judges, if it is, to described defeated
Enter operation and carry out gesture judgement, obtains gesture judging result;
Judge whether input operation is handled by the target object being amplified according to the gesture judging result, if
It is then to be converted and then passed through the target object being amplified to the input operation;
Judge whether the corresponding coordinates regional of the target object being amplified described in transparent transmission has content update, if so, then more
The display content of new magnifying glass.
2. according to the method described in claim 1, it is characterized in that, described converted and then passed through to input operation
The target object being amplified, including:
Judge whether to carry out application virtualization to the target object being amplified, if it is, by the target being amplified
Object is converted into corresponding incoming event, and transparent transmission is carried out to the incoming event.
3. according to the method described in claim 1, it is characterized in that, described judge the input according to the gesture judging result
Whether operation is handled by the target object being amplified, if it is not, then input operation is handled by magnifying glass itself.
4. according to the method described in claim 3, it is characterized in that, the input operation handled by magnifying glass itself, wrap
It includes:
The classification for identifying the input operation, obtains the input and operates corresponding gesture event, according to the gesture event point
It is not operated accordingly;
Judge whether the magnification region of magnifying glass changes, if it is, updating the amplifier display unit of the magnification region
Part.
5. according to the method described in claim 4, it is characterized in that, the classification of the identification input operation, obtains described
Input operates corresponding gesture event, is operated accordingly respectively according to the gesture event, including:
When identifying that the input operation is rotation process classification, the corresponding change magnifying glass amplification factor of the rotation process is obtained
Gesture event;
According to the gesture event for changing magnifying glass amplification factor, change the amplification factor of magnifying glass.
6. according to the method described in claim 4, it is characterized in that, the classification of the identification input operation, obtains described
Input operates corresponding gesture event, is operated accordingly respectively according to the gesture event, including:
Identify that the input operation operates the corresponding gesture thing for dragging magnifying glass when dragging class of operation, to obtain described drag
Part;
According to the gesture event for dragging magnifying glass, moving magnifier to new coordinates regional.
7. according to the method described in claim 4, it is characterized in that, the classification of the identification input operation, obtains described
Input operates corresponding gesture event, is operated accordingly respectively according to the gesture event, including:
When identifying that the input operation is kneading operation classification, the gesture thing of the corresponding scaling magnifying glass of the kneading operation is obtained
Part;
According to the gesture event of the scaling magnifying glass, the enlarged view of magnifying glass is zoomed in or out.
8. according to the method described in claim 1, it is characterized in that, described operate according to input described in the input operation judges
Target object whether be magnifying glass, if it is not, then directly to the input operate carry out transparent transmission.
9. a kind of touch screen realizes the device of magnifying glass, it is applied to the electronic equipment with magnifying function and touch screen,
It is characterized in that, including:
Acquiring unit, for obtaining the operation of the input on touch screen;
Processing unit, for inputting whether the target object of operation is magnifying glass according to described in the input operation judges, if
It is then to be operated to the input and carry out gesture judgement, obtain gesture judging result;According to gesture judging result judgement
Whether input operation is handled by the target object being amplified, if it is, convert then thoroughly to input operation
It is transmitted to the target object being amplified;
Updating unit, for judging whether the corresponding coordinates regional of the target object being amplified described in transparent transmission has content more
Newly, if so, then updating the display content of magnifying glass.
10. device according to claim 9, which is characterized in that the processing unit includes:
First judgment module carries out application virtualization, if it is, will for judging whether to the target object being amplified
The target object being amplified is converted into corresponding incoming event, and transparent transmission is carried out to the incoming event.
11. device according to claim 9, which is characterized in that the processing unit includes identification module, for according to institute
It states gesture judging result and judges whether the input operation is handled by the target object being amplified, if it is not, then described defeated
Enter operation to be handled by magnifying glass itself.
12. according to the devices described in claim 11, which is characterized in that the identification module, including:
Execution module, the classification of the input operation, obtains the input and operates corresponding gesture event, according to institute for identification
Gesture event is stated to be operated accordingly respectively;
Update module, for judging whether the magnification region of magnifying glass changes, if it is, updating the magnification region
Amplifier display unit.
13. device according to claim 12, which is characterized in that the execution module, including:
First identification submodule obtains the rotation process and corresponds to when the input operation is rotation process classification for identification
Change magnifying glass amplification factor gesture event;
First implementation sub-module, for according to the gesture event for changing magnifying glass amplification factor, changing the amplification of magnifying glass
The factor.
14. device according to claim 12, which is characterized in that the execution module, including:
Second identifies submodule, and the input operation for identification operates correspondence when dragging class of operation, to obtain described drag
The gesture event for dragging magnifying glass;
Second implementation sub-module, the gesture event for dragging magnifying glass according to, moving magnifier to new coordinates regional.
15. device according to claim 12, which is characterized in that the execution module, including:
Third identifies submodule, when the input operation is kneading operation classification for identification, obtains the kneading operation and corresponds to
Scaling magnifying glass gesture event;
Third implementation sub-module, for the gesture event according to the scaling magnifying glass, the amplification for zooming in or out magnifying glass regards
Figure.
16. device according to claim 9, which is characterized in that the processing unit includes second judgment unit, and described
Two judging units input whether the target object of operation is magnifying glass for root according to described in the input operation judges, if
It is no, then directly the input is operated and carries out transparent transmission.
17. a kind of host, which is characterized in that including processor, communication interface, memory and bus:
Wherein processor, communication interface, memory complete mutual communication by bus;
The communication interface, for obtaining the operation of the input on touch screen;
The processor, for executing program;
The memory, for storing program;
Its Program is used for:
Input whether the target object of operation is magnifying glass according to described in the input operation judges, if it is, to described defeated
Enter operation and carry out gesture judgement, obtains gesture judging result;
Judge whether input operation is handled by the target object being amplified according to the gesture judging result, if
It is then to be converted and then passed through the target object being amplified to the input operation;
Judge whether the corresponding coordinates regional of the target object being amplified described in transparent transmission has content update, if so, then more
The display content of new magnifying glass.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410123969.8A CN104951223B (en) | 2014-03-28 | 2014-03-28 | A kind of touch screen realizes the method, apparatus and host of magnifying glass |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410123969.8A CN104951223B (en) | 2014-03-28 | 2014-03-28 | A kind of touch screen realizes the method, apparatus and host of magnifying glass |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104951223A CN104951223A (en) | 2015-09-30 |
CN104951223B true CN104951223B (en) | 2018-10-30 |
Family
ID=54165907
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410123969.8A Active CN104951223B (en) | 2014-03-28 | 2014-03-28 | A kind of touch screen realizes the method, apparatus and host of magnifying glass |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104951223B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11899918B2 (en) | 2020-10-21 | 2024-02-13 | Anhui Hongcheng Opto-Electronics Co., Ltd. | Method, apparatus, electronic device and storage medium for invoking touch screen magnifier |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108595241A (en) * | 2018-04-24 | 2018-09-28 | 苏州蜗牛数字科技股份有限公司 | A method of touch screen is virtualized |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8558803B2 (en) * | 2008-11-28 | 2013-10-15 | Samsung Electronics Co., Ltd. | Input device for portable terminal and method thereof |
FR2973899B1 (en) * | 2011-04-07 | 2013-04-26 | Archos | METHOD FOR SELECTING AN ELEMENT OF A USER INTERFACE AND DEVICE IMPLEMENTING SUCH A METHOD |
CN102662566B (en) * | 2012-03-21 | 2016-08-24 | 中兴通讯股份有限公司 | Screen content amplification display method and terminal |
JP2014016714A (en) * | 2012-07-06 | 2014-01-30 | Sharp Corp | Information display device, information display method, information display program, and program recording medium |
JP5793484B2 (en) * | 2012-09-24 | 2015-10-14 | 京セラドキュメントソリューションズ株式会社 | Display input device and image forming apparatus |
-
2014
- 2014-03-28 CN CN201410123969.8A patent/CN104951223B/en active Active
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11899918B2 (en) | 2020-10-21 | 2024-02-13 | Anhui Hongcheng Opto-Electronics Co., Ltd. | Method, apparatus, electronic device and storage medium for invoking touch screen magnifier |
Also Published As
Publication number | Publication date |
---|---|
CN104951223A (en) | 2015-09-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11947792B2 (en) | Devices, methods, and graphical user interfaces for providing multitouch inputs and hardware-based features using a single touch input | |
US12045440B2 (en) | Method, device, and graphical user interface for tabbed and private browsing | |
US20200371676A1 (en) | Device, Method, and Graphical User Interface for Providing and Interacting with a Virtual Drawing Aid | |
US20210191582A1 (en) | Device, method, and graphical user interface for a radial menu system | |
EP3091426B1 (en) | User terminal device providing user interaction and method therefor | |
WO2021203821A1 (en) | Page manipulation method and device, storage medium, and terminal | |
US10394441B2 (en) | Device, method, and graphical user interface for controlling display of application windows | |
US10331321B2 (en) | Multiple device configuration application | |
US10095386B2 (en) | Mobile device for displaying virtually listed pages and displaying method thereof | |
KR20170041219A (en) | Hover-based interaction with rendered content | |
US20150339018A1 (en) | User terminal device and method for providing information thereof | |
CN105718189B (en) | Electronic device and method for displaying webpage by using same | |
US9026951B2 (en) | Device, method, and graphical user interface for selection of views in a three-dimensional map based on gesture inputs | |
CN109446832A (en) | A kind of screenshotss method and device | |
CN106445956B (en) | Shopping data management method and device | |
CN110377220B (en) | Instruction response method and device, storage medium and electronic equipment | |
CN104063128A (en) | Information processing method and electronic equipment | |
CN114153344A (en) | Group creation method and device, electronic equipment and storage medium | |
KR20160134822A (en) | Method and Apparatus for Realizaing Human-Machine Interaction | |
EP2965181A1 (en) | Enhanced canvas environments | |
CN104898928A (en) | Graphic and text information display method and terminal | |
CN114415886A (en) | Application icon management method and electronic equipment | |
CN104951223B (en) | A kind of touch screen realizes the method, apparatus and host of magnifying glass | |
CN111638828A (en) | Interface display method and device | |
CN111796736B (en) | Application sharing method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220208 Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province Patentee after: Huawei Cloud Computing Technologies Co.,Ltd. Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd. |