CN104298510B - A kind of animation method and device for realizing control button locking - Google Patents

A kind of animation method and device for realizing control button locking Download PDF

Info

Publication number
CN104298510B
CN104298510B CN201410523095.5A CN201410523095A CN104298510B CN 104298510 B CN104298510 B CN 104298510B CN 201410523095 A CN201410523095 A CN 201410523095A CN 104298510 B CN104298510 B CN 104298510B
Authority
CN
China
Prior art keywords
control button
locking
event
lock
animation
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
Application number
CN201410523095.5A
Other languages
Chinese (zh)
Other versions
CN104298510A (en
Inventor
常永耘
许昆
马波
张弛
郭滔
刘飞
杨星
王斌
张旺
陈仁雄
朱发昌
罗璇
陈思尧
雷贤聪
郭鹏飞
钟振东
姚辉
刘桂峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Seal Interest Technology Co Ltd
Original Assignee
Zhuhai Juntian Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Juntian Electronic Technology Co Ltd filed Critical Zhuhai Juntian Electronic Technology Co Ltd
Priority to CN201410523095.5A priority Critical patent/CN104298510B/en
Publication of CN104298510A publication Critical patent/CN104298510A/en
Application granted granted Critical
Publication of CN104298510B publication Critical patent/CN104298510B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Processing Or Creating Images (AREA)

Abstract

Embodiments of the invention disclose a kind of animation method and device for realizing control button locking.Realizing the animation method of control button locking includes:Captured in current window after generation lock event, hide the unlocking control button of the triggering lock event, triggered and eject locking control button in the position pre-set;The locking control button of driving ejection is moved to the position for capturing the lock event according to the animation strategy pre-set;Locking control button is loaded in the position for capturing the lock event, and locks current window.Using the present invention, the visually-perceptible of user, abundant business application setting can be lifted.

Description

A kind of animation method and device for realizing control button locking
Technical field
The present invention relates to cartoon technique, more particularly to a kind of animation that control button locking is realized based on rainbow bubble picture Method and device.
Background technology
In desktop application software, especially some need to show in the desktop application software of multinomial information simultaneously, in order to Classification display is carried out, it is necessary to be split to desktop application software window to multinomial information, i.e., torn desktop application software window open It is divided into multiple subwindows, each subwindow corresponds to the relevant position of desktop application software window, and in the corresponding position of subwindow Show corresponding information.
Because each subwindow is shown in desktop application software window information is the individual character for lifting Consumer's Experience mostly Change information, and the individual demand of each user varies, in order to meet individual character of the user to desktop application software display information Change demand, desktop application software has provided the user the function of display information in customization subwindow, it is possible to by by subwindow It is set to lock (pegging) state, so that the subwindow is fixed on into current location and immovable;Or, by by locking Subwindow is unlocked (releasing is pegged), so as to realize the random movement of subwindow by mouse drag.That is, logical Cross and locking control button and unlocking control button are set for subwindow, preassigned so as to which subwindow is moved into user Position, and locked in the position specified, be allowed to move with user's mouse action, so as to realize subwindow Function is pegged in addition and function is pegged in releasing.
Existing desktop application software, the locking control button and unlocking control button provided for subwindow, in sub- window A control button is shared in mouthful, for example, representing current by the way that control button (locking control button) is set into lock icon Subwindow is in the lock state, and control button (unlocking control button) is set on into lock icon represents that current sub-window is in solution Lock status, and by the control button static state setting in the precalculated position of subwindow.So, if user needs to perform locking currently Subwindow is operated, by obtaining control button state, if control button is shown as the locking control button of lock icon, nothing Operation is needed, if control button is shown as the unlocking control button of unlocking icon, by clicking on the unlocking control button, so that The corresponding unlocking icon of unlocking control button is updated to the corresponding lock icon of locking control button by triggering, current to realize The locking of subwindow;And if user needs to unlock current sub-window, by obtaining control button state, if control button is aobvious The unlocking control button of unlocking icon is shown as, then current sub-window can be moved by mouse action, for example, by pressing mouse Left button simultaneously keeps pinning dragging current sub-window, when subwindow is dragged to the position pre-set, unclamps left mouse button, and Can be by clicking on the corresponding unlocking control button of unlocking icon, so as to trigger the corresponding unlocking icon of unlocking control button Be updated to the corresponding lock icon of locking control button, realize by subwindow current location locking, if control button is aobvious The corresponding lock icon of locking control button is shown as, then by clicking on the corresponding lock icon of the locking control button, so as to touch The corresponding lock icon of locking control button is updated to the corresponding unlocking icon of unlocking control button by hair, and according to unlocking icon It is corresponding to operate the unblock and movement for realizing subwindow.
From above-mentioned, existing desktop application software design lock function and unlocking function in window (subwindow), Locking is realized by the switching of static control button and unlocked so that during locking and unblock is realized, in subwindow Business application setting is more dull, and user interface (UI, User Interface) interaction effect is poor, and the visual impression of user is not By force, user may be caused to lack the concern of business in child windows, so as to have impact on effective extension of service application, i.e., from locking Unblock is converted into, and, locking is converted into from unblock, user's visually-perceptible sense is not strong, have impact on the business experience of user.
The content of the invention
In view of this, the embodiment of the present invention provides a kind of animation method and device for realizing control button locking, and lifting is used The visually-perceptible at family, abundant business application setting.
To reach above-mentioned purpose, embodiments of the invention are adopted the following technical scheme that:
On the one hand, the embodiment of the present invention provides a kind of animation method for realizing control button locking, including:
Captured in current window after generation lock event, hide the unlocking control button of the triggering lock event, Trigger and eject locking control button in the position pre-set;
The locking control button of ejection is driven to be moved to the capture lock event according to the animation strategy pre-set Position;
Locking control button is loaded in the position for capturing the lock event, and locks current window.
The animation method provided in an embodiment of the present invention for realizing control button locking, captures in current window and locks Determine after event, hide the unlocking control button that shows in current window, trigger the position ejection lock controls pre-set by Button;The locking control button of driving ejection is moved to the position for capturing the lock event according to the animation strategy pre-set; Locking control button is loaded in the position for capturing the lock event, and locks current window.So, realizing locking and unlocking During, aid in animated show, so as to enrich the business application setting in window, greatly improve the vision of user Perceive sense.
On the other hand, the embodiment of the present invention provides a kind of animating means for realizing control button locking, including:Lock event Trapping module, latched position drive module and locking module, wherein,
Lock event trapping module, occurs after lock event for being captured in current window, hides the triggering lock Determine the unlocking control button of event, trigger and eject locking control button in the position pre-set;
Latched position drive module, for driving the locking control button of ejection to be moved according to the animation strategy pre-set To the position for capturing the lock event;
Locking module, for loading locking control button in the position for capturing the lock event, and locks current window.
The animating means provided in an embodiment of the present invention for realizing control button locking, the capture locking of lock event trapping module Event, hides the unlocking control button shown in current window, triggers and ejects locking control button in the position pre-set;Lock The locking control button for determining location drive module driving ejection is moved to the capture locking according to the animation strategy pre-set The position of event;Locking module loads locking control button in the position for capturing the lock event, and locks current window.This Sample, during locking and unblock is realized, is aided in animated show, so as to enrich the business application setting in window, pole The earth improves the visually-perceptible sense of user.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the animation method schematic flow sheet that the embodiment of the present invention realizes control button locking;
Fig. 2 is the animating means structural representation that the embodiment of the present invention realizes control button locking.
Embodiment
The embodiment of the present invention is described in detail below in conjunction with the accompanying drawings.
It will be appreciated that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Base Embodiment in the present invention, those of ordinary skill in the art obtained under the premise of creative work is not made it is all its Its embodiment, belongs to the scope of protection of the invention.
Fig. 1 is the animation method schematic flow sheet that the embodiment of the present invention realizes control button locking.Referring to Fig. 1, this method Including:
Step 101, captured in current window after generation lock event, hide the solution lock control of the triggering lock event Part button, triggers and ejects locking control button in the position pre-set;
As an alternative embodiment, generation lock event is captured in current window to be included:
A11, monitors user's operation in current window;
In this step, if a desktop application software window includes multiple subwindows, each subwindow is monitored respectively User's operation in the range of corresponding subwindow.User's operation includes:Mouse action, touching pen operation, finger touch operation etc..
A12, whether be click on control button, if it is, trigger control button exports control button thing if judging user's operation Part;
, can be by clicking on the control set in the subwindow if user needs to lock a certain subwindow in this step Part button, triggering is locked or unlocked to the subwindow.If for example, the control set in current sub-window (current window) Button is unlocking control button, then after the unlocking control button is clicked on, and triggers unlocking control button output lock event;Such as The control button set in fruit current window is locking control button, then after the locking control button is clicked on, triggers the locking Control button exports unblock event.
A13, extracts control button event mark, is determined whether according to the control button event of extraction mark for locking thing Part.
In this step, lock event can be made a distinction from unblock event by different marks, for example, to identify 1 table Show lock event, represent to unlock event to identify 0, then after the control button event of control button output is captured, if should Control button event is designated 1, is shown to be lock event, and current control button is unlocking control button;If the control button Event identifier is 0, is shown to be unblock event, and current control button is locking control button.
Certainly, in practical application, control button event mark can also be represented using other modes.
In the embodiment of the present invention, after generation lock event is captured, the unlock control of the triggering lock event is hidden Button, can make it that the effect of subsequent animation reality is more obvious, user's visually-perceptible is stronger, so as to lift user interface Interaction effect.
During the position pre-set is current window, the position different from control button position.If for example, control Button position is that the position then pre-set can be current window upper left quarter or lower-left in the middle part of current window Portion, can also be upper right quarter, right lower quadrant, middle and upper part or middle and lower part etc., and particular location can be actually needed according to user and be configured.
As another alternative embodiment, before generation lock event is captured, this method can further include:
Monitor that user is operated into the control button zone of action pre-set, animation shows the control button.
In this step, when mouse is moved in the control button zone of action, animation can be carried out to the control button and shown Show, so that user confirms that the control button is locking control button or unlocking control button, to determine the need for performing Corresponding operation.
As an alternative embodiment, animation shows that the control button includes:
Centered on the control button center in current window, animation shows control button in the way of gradually amplifying, The control button is amplified to after the multiple pre-set, then animation shows control in the way of being gradually reduced to former control button Button.
Can be that control button is shown or with working as with the direction animation perpendicular to current window in this step Front window is into angle is pre-set, for example, the direction animation at 30 degree of angles or 60 degree of angles shows control button.
As another alternative embodiment, animation shows that the control button includes:
The control button prompt message that animated pop-up is pre-set.
In this step, animated pop-up can be using the mode such as be fade-in fade-out, flash.Control button prompt message can be " current window is in the lock state ", " current control button is unlocking control button ", " please click on toggle control button " etc..
Step 102, the locking control button of driving ejection is moved to the capture lock according to the animation strategy pre-set Determine the position of event;
As an alternative embodiment, this step is specifically included:
B21, driving locking control button is moved according to the position motion track pre-set, and is moved in locking control button During dynamic, animated show is carried out according to the animation strategy pre-set;
In this step, position motion track be locking control button ejected position to capture the lock event position it Between track.In the embodiment of the present invention, user can set location motion track according to actual needs.For example, can be by position Motion track is set to straight line, position motion track can also be set into multistage broken line, can also set position motion track It is set to conic section, cubic curve etc..
In the embodiment of the present invention, position motion track is the position coordinates function using the time as variable, i.e. position moving rail Mark can be expressed as follows:
xt=x (t)
yt=y (t)
In formula,
xtFor locking control button t x position coordinate;
X (t) is the position motion track of x position;
ytFor locking control button t y location coordinate;
Y (t) is the position motion track of y location.
In the embodiment of the present invention, the position coordinates for setting locking control button ejected position is (x0,y0), capture the lock The position coordinates for determining the position of event is (xT,yT), the position coordinates is coordinate information of the control button in current window.
As alternative embodiment, when locking control button can be set according to the position motion track motion pre-set, Can be uniform motion or variable motion, for example, speed is slower during firm setting in motion, then movement velocity gradually adds It hurry up, last movement velocity is gradually reduced, in arriving at location motion track terminal, movement velocity is reduced to zero.
B22, starts timer, when timer is timed to, and calling station obtains function and obtains locking control button position Coordinate;
In this step, consumed in order to avoid obtaining computing resource caused by locking control button position coordinates in real time, can be with Setting obtains position coordinates according to cycle regular hour, therefore, timer can be set, and timing is set into this The time cycle of setting, after timer is timed to the time cycle of the setting, obtain locking control button position coordinates.
As alternative embodiment, the time cycle can be according to actual needs configured by user.
In the embodiment of the present invention, position acquisition function can be by cumulative time cycle number, from position coordinates function In the position motion track of expression, locking control button position coordinates is obtained.Wherein, cumulative time cycle number can pass through timing The time cycle number of device record adds 1 and obtained.
B23, judges the position coordinates of position of the locking control button position coordinates obtained with capturing the lock event Whether match, if matched, it is determined that the lock controls of ejection are moved to the position for capturing the lock event, terminate and drive It is dynamic;If do not matched that, timer period number is added 1, timer is reset, returns and performs step B22.
In this step, if the locking control button position coordinates (current position coordinates) obtained is (xt,yt), as it was previously stated, The position coordinates (target location coordinate) for capturing the position of the lock event is (xT,yT), wherein,
T=nT '
In formula,
T ' is the timer timing set, i.e. timer period;
N is cumulative time cycle number.
In the embodiment of the present invention, it is determined whether the matching formula matched is as follows:
In formula,
ΔtFor the position of the locking control button position coordinates and the position coordinates of the position of the capture lock event of acquisition Put difference;
Δ is the alternate position spike threshold value pre-set.
If that is, calculating obtained alternate position spike is less than or equal to the alternate position spike threshold value pre-set, it is determined that phase Matching, otherwise, it determines not matching that.
As another alternative embodiment, the locking control button of driving ejection is moved to according to the animation strategy pre-set Capturing the position of the lock event can also specifically include:
C31, starting point is in the locking control button position using ejection, to capture the position of the lock event as terminal, if Put the position motion track function using the time as variable;
In this step, a position motion track function is set so that the position motion track function of setting passes through Point and terminal.
C32, sets the starting point to the time needed for the terminal, according to position described in the required set of time set Each segmentation position motion track function in motion track function;
, can be by set location motion track function by multistage point in order to strengthen the visual experience of user in this step Fragment position motion track function is constituted, and in each segmentation position motion track function, sets the time parameter and fortune of motion Dynamic speed parameter.Wherein, the time parameter in each segmentation position motion track function can be with identical, can also be different, when total Between parameter sum for set the starting point to the terminal needed for time;Motion in each segmentation position motion track function Speed parameter can be with identical, can also be different, to embody different visual effects.
C33, the locking control button of driving ejection is moved according to the position motion track function, and starts timing, In locking control button moving process, animated show is carried out according to the animation strategy pre-set;
In this step, animation strategy can be fade-in fade-out, flash, flying into, scaling, it is flickering etc..According to setting in advance It can in the position motion track that locking control button is moved, pre-set many that the animation strategy put, which carries out animated show, Frame, and frame number, the playing interval time between the duration of each frame of setting and front and rear frame are set for each frame so that Playing interval time sum and equal to setting the starting point between the duration sum of all frames and all front and rear frames Frame is parsed to the time needed for the terminal, and using GDI, frame is sequentially played according to frame number.On according to pre-setting Animation strategy carries out animated show, and see the relevant technical literature for details, detailed description is omitted here.
C34, after the time needed for timing to the starting point to the terminal set, terminates driving, it is determined that ejection Lock controls have been moved into the position for capturing the lock event.
In this step, due to position motion track and time correlation of the locking control button from starting point to the end of ejection, Thus, by timing, you can it is determined that the particular location track (position coordinates) of the locking control button of ejection.
Certainly, in practical application, the locking control button of ejection can also be driven by other means according to pre-setting Animation strategy be moved to the position for capturing the lock event.
Step 103, locking control button is loaded in the position for capturing the lock event, and locks current window.
In this step, behind the position where locking control button is moved to control button, the control button is replaced, and touch Send out control button (i.e. locking control button) the locking current window of the replacement.
Exemplified by pegging rainbow bubble below with poison despot, the animation method of control button locking is realized to the embodiment of the present invention It is described in detail:After user, which clicks on releasing, pegs control button (unlocking control button), control is pegged into the releasing do not pegged The corresponding drawing pin of part button is hidden, and then, will peg the initial position fix of the corresponding drawing pin of control button in relative to releasing The upper right corner of the corresponding drawing pin of control button is pegged, wherein, abscissa x and ordinate y distance are all 18 pixels.It is used as one Alternative embodiment, if the position coordinates that the position coordinates of the relatively current windows of x is the relatively current windows of 270, y is 18.Then, open A timer is moved, the position that timer driver pegs the corresponding drawing pin of control button is moved to left down, i.e., subtracted x coordinate timing 1, y-coordinate timing Jia 1.Then, whether the current location for judging to peg the corresponding drawing pin of control button is purpose position, i.e., relative Whether the position coordinates of current window is (258,36), if it is, showing to have reached destination locations, closes the timer, no Then, timer timing and the flow judged are continued executing with.So, the animation that rainbow bubble is pinned can finally be realized.
As alternative embodiment, this method further comprises:
Step 104, capture after generation unblock event, replaced using the unlocking control button pre-set in current window Change the locking control button for triggering the unblock event;
In this step, in order to be different from the movement locus vector of lock event triggering, it is to perform solution to make user easily distinguishable Lock operation or lock operation, set the movement locus triggered with lock event to swear the movement locus vector of the event of unblock triggering Amount is on the contrary, i.e. movement locus is that control button position is moved to the picture mark position pre-set.
Step 105, the corresponding unlocking control button icon of the unlocking control button is replicated, drives the unlock control to press Button icon is moved to the picture mark position pre-set according to the animation strategy pre-set, and the unlock control pre-set by Button picture mark position blanking;
In this step, the mode of driving unlocking control button icon motion and the locking control button motion of driving ejection Mode is similar, detailed description is omitted here.
In the embodiment of the present invention, it is preferred that the unlocking control button picture mark position pre-set can with lock controls by Button ejected position is identical.So, the fortune that the movement locus of unlocking control button icon motion can be moved with locking control button Dynamic rail mark is identical, but in the opposite direction, and the corresponding position coordinates function of position motion track is identical, simply time variable is each The span for being segmented position motion track function is different.The animation strategy set during exercise for unlocking control button icon Can be identical with the animation strategy that locking control button is set during exercise, simply animation frame playing sequence is opposite.
Certainly, in practical application, or unlocking control button icon sets the position different from locking control button The animation strategy of motion track, position coordinates function and playing animation frame.
Step 106, current window is moved in the operation for moving current window according to user.
In this step, after being unlocked to current window, user can current window position drag area, pass through Left mouse button is pressed in the position drag area and keeps left mouse button to be contacted with position drag area, so as to by current window Mouth drags to expected position, after desired location is reached, and unclamps left mouse button, terminates dragging process, if necessary to pre- at this Phase position locking current window, the then unlocking control button that can be shown by clicking in current window, triggering unlock control is pressed Button performs step 101 to perform the flow of locking current window.
From above-mentioned, the animation method for realizing control button locking of the embodiment of the present invention, captured in current window To occurring after lock event, the unlocking control button shown in current window is hidden, triggers and ejects lock in the position pre-set Determine control button;The locking control button of ejection is driven to be moved to the capture lock event according to the animation strategy pre-set Position;Locking control button is loaded in the position for capturing the lock event, and locks current window.So, lock is being realized During fixed and unblock, aid in animated show and by outside animated show Path extension to control button scope, that is, utilize The method of frame-by-frame cartoons, solves the problem of drawing pin pegs stiff, by pegging the design of animation to drawing pin, calculates animation position Key frame during movement locus, then order switch, and reach the effect for pegging animation, so that the business enriched in window should With setting, the perception that user is pinned to bubble picture is added so that user thinks there is a kind of feeling of freshness, greatly improves The visually-perceptible sense of user, can effectively attract concern of the user to business in window, so as to effectively extend service application, increase Strong user interface interaction effect, lifts the business experience of user;And for realizing that the animation developer of control button locking is come Say, it is only necessary to specify the initial position of drawing pin (control button) and the speed of drawing pin motion, can hide in development process and be permitted The details for needing to consider, the detail that will peg animation realization is packaged more, so as to lift development efficiency.
Fig. 2 is the animating means structural representation that the embodiment of the present invention realizes control button locking.Referring to Fig. 2, the device Including:Lock event trapping module 201, latched position drive module 202 and locking module 203, wherein,
Lock event trapping module 201, occurs after lock event for being captured in current window, hides triggering described The unlocking control button of lock event, triggers and ejects locking control button in the position pre-set;
In the embodiment of the present invention, as an alternative embodiment, lock event trapping module 201 includes:Monitoring unit, judgement Unit, marker extraction unit, hidden unit and trigger element (not shown), wherein,
Monitoring unit, for monitoring user's operation in current window;
In the embodiment of the present invention, user's operation includes mouse action, touching pen operation, finger touch operation etc..
Judging unit, for judging whether user's operation is to click on control button, if it is, trigger control button output control Part button event;
Marker extraction unit, for extracting control button event mark, identifies according to the control button event of extraction and determines Whether it is lock event;
In the embodiment of the present invention, lock event can be made a distinction from unblock event by different marks, for example, to mark Know 1 and represent lock event, represent to unlock event to identify 0, then after the control button event of control button output is captured, such as Really the control button event is designated 1, is shown to be lock event.
Hidden unit, for after marker extraction unit is defined as lock event, hiding the solution of the triggering lock event Lock control part button;
Trigger element is triggered, for after marker extraction unit is defined as lock event, in the position ejection pre-set Locking control button.
Latched position drive module 202, for driving the locking control button of ejection according to the animation strategy pre-set It is moved to the position for capturing the lock event;
In the embodiment of the present invention, as alternative embodiment, latched position drive module 202 includes:Lock driver element, determine When device unit and position coordinates matching unit (not shown), wherein,
Driver element is locked, for driving locking control button to be moved according to the position motion track pre-set, and In locking control button moving process, animated show is carried out according to the animation strategy pre-set;
In the embodiment of the present invention, position motion track is locking control button ejected position to capturing the lock event Track between position, is a vector.
In the embodiment of the present invention, position motion track is expressed as the position coordinates function using the time as variable.
Timer units, when locking driver element driving locking control button motion, start timer, fixed in timer When then, calling station obtain function obtain locking control button position coordinates;
Position coordinates matching unit, for locking control button position coordinates and the capture lock event for judging to obtain The position coordinates of position whether match, if matched, it is determined that the lock controls of ejection are moved to the capture locking thing The position of part, terminates driving;If do not matched that, notify timer units to add 1 by timer period number, reset timer After restart.
As another alternative embodiment, latched position drive module 202 includes:Position motion track function setup unit, Piecewise function variable setting unit, driving timing unit and timing processing unit (not shown), wherein,
Position motion track function setup unit, for using the locking control button position of ejection as starting point, to capture The position for stating lock event is terminal, sets the position motion track function using the time as variable;
In the embodiment of the present invention, starting point and terminal are passed through in the track of the position motion track function of setting.
Piecewise function variable setting unit, for setting the time needed for the starting point to the terminal, according to what is set Each segmentation position motion track function in position motion track function described in required set of time;
In the embodiment of the present invention, it is preferred that position motion track function is made up of multistage segmentation position motion track function, And in each segmentation position motion track function, the time parameter and movement velocity parameter of motion are set.
Driving timing unit, for driving the locking control button of ejection to be moved according to the position motion track function, And start timing, in locking control button moving process, animated show is carried out according to the animation strategy pre-set;
Timing processing unit, after the time needed for timing to the starting point to the terminal set, terminates driving, really Surely the lock controls ejected have been moved into the position for capturing the lock event.
Locking module 203, for loading locking control button in the position for capturing the lock event, and locks current window Mouthful.
In the embodiment of the present invention, behind the position where locking control button is moved to control button, replace the control and press Button, and trigger locking control button locking current window.
As an alternative embodiment, the device can further include:
Monitoring modular 204, for after monitoring that user is operated into the control button zone of action pre-set, animation Show the control button.
In the embodiment of the present invention, as an alternative embodiment, animation shows that the control button includes:
Centered on the control button center in current window, animation shows control button in the way of gradually amplifying, The control button is amplified to after the multiple pre-set, then animation shows control in the way of being gradually reduced to former control button Button.
As another alternative embodiment, animation shows that the control button includes:
The control button prompt message that animated pop-up is pre-set.
As yet another alternative embodiment, the device can further include:Unlock event capturing module 205, solution lock-bit Drive module 206 and unlocked state 207 are put, wherein,
Event capturing module 205 is unlocked, is occurred for being captured in current window after unblock event, using pre-setting Unlocking control button replace the locking control button of the triggering unblock event;
Unlocked position drive module 206, for replicating the corresponding unlocking control button icon of the unlocking control button, drives Move the unlocking control button icon and the picture mark position pre-set is moved to according to the animation strategy pre-set, and advance The unlocking control button picture mark position blanking of setting;
In the embodiment of the present invention, it is preferred that the position movement locus vector of unlocking control button icon is set and locking The position movement locus vector of control button is on the contrary, i.e. the position movement locus of unlocking control button icon is control button place Position is moved to the unlocking control button picture mark position pre-set.
Current window is moved in unlocked state 207, the operation for moving current window according to user.
In the embodiment of the present invention, after being unlocked to current window, user can be in the position dragging area of current window Domain drags current window.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, the change or replacement that can be readily occurred in, all should It is included within the scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.

Claims (15)

1. a kind of animation method for realizing control button locking, it is characterised in that this method includes:
Captured in current window after generation lock event, hide the unlocking control button of the triggering lock event, triggering Locking control button is ejected in the position pre-set;
The locking control button of driving ejection is moved to the position for capturing the lock event according to the animation strategy pre-set;
Locking control button is loaded in the position for capturing the lock event, and locks current window.
2. according to the method described in claim 1, it is characterised in that the locking control button of the driving ejection according to setting in advance The animation strategy put, which is moved to, to be captured the position of the lock event and includes:
Driving locking control button is moved according to the position motion track pre-set, and in locking control button moving process In, carry out animated show according to the animation strategy pre-set;
Start timer, when timer is timed to, calling station obtains function and obtains locking control button position coordinates;
Judge the locking control button position coordinates obtained and capture whether the position coordinates of the lock event matches, if Match, it is determined that the locking control button of ejection is moved to the position for capturing the lock event, terminate driving;If not phase Match somebody with somebody, timer period number is added 1, reset timer, return and perform the driving locking control button according to pre-setting Position motion track motion flow.
3. according to the method described in claim 1, it is characterised in that the locking control button of the driving ejection according to setting in advance The animation strategy put, which is moved to, to be captured the position of the lock event and includes:
Starting point is in locking control button position using ejection, and the position to capture the lock event is set with the time as terminal For the position motion track function of variable;
Time needed for the starting point to the terminal is set, according to position motion track described in the required set of time set Each segmentation position motion track function in function;
The locking control button of driving ejection is moved according to the position motion track function, and starts timing, in lock controls In button moving process, animated show is carried out according to the animation strategy pre-set;
After the time needed for timing to the starting point to the terminal set, driving is terminated, it is determined that the lock controls of ejection Button has been moved into the position for capturing the lock event.
4. according to the method described in claim 1, it is characterised in that described that generation lock event bag is captured in current window Include:
User's operation is monitored in current window;
Whether be click on control button, if it is, trigger control button exports control button event if judging user's operation;
Control button event mark is extracted, is determined whether according to the control button event of extraction mark for lock event.
5. according to the method described in claim 1, it is characterised in that before generation lock event is captured, methods described is entered One step includes:
Monitor that user is operated into the control button zone of action pre-set, animation shows the control button.
6. method according to claim 5, it is characterised in that the animation shows that the control button includes:
Centered on the control button center in current window, animation shows control button in the way of gradually amplifying, described Control button is amplified to after the multiple pre-set, then in the way of being gradually reduced to former control button animation show control by Button.
7. method according to claim 5, it is characterised in that the animation shows that the control button includes:
The control button prompt message that animated pop-up is pre-set.
8. the method according to any one of claim 1 to 7, it is characterised in that methods described further comprises:
Captured in current window after generation unblock event, replaced using the unlocking control button pre-set and trigger the solution The locking control button of lock event;
The corresponding unlocking control button icon of the unlocking control button is replicated, the unlocking control button icon is driven according to pre- The animation strategy first set is moved to the picture mark position pre-set, and disappears in the unlocking control button picture mark position pre-set It is hidden;
Current window is moved according to the operation that user moves current window.
9. method according to claim 8, it is characterised in that the position motion rail of the unlocking control button icon motion Mark is identical with the position movement locus that the locking control button of the ejection is moved, in the opposite direction.
10. a kind of animating means for realizing control button locking, it is characterised in that the device includes:Lock event trapping module, Latched position drive module and locking module, wherein,
Lock event trapping module, occurs after lock event for being captured in current window, hides the triggering locking thing The unlocking control button of part, triggers and ejects locking control button in the position pre-set;
Latched position drive module, the locking control button for driving ejection is moved to according to the animation strategy pre-set catches Obtain the position of the lock event;
Locking module, for loading locking control button in the position for capturing the lock event, and locks current window.
11. device according to claim 10, it is characterised in that the lock event trapping module includes:Monitoring unit, Judging unit, marker extraction unit, hidden unit and trigger element, wherein,
Monitoring unit, for monitoring user's operation in current window;
Judging unit, for judging whether user's operation is to click on control button, if it is, trigger control button output control is pressed Button event;
Marker extraction unit, for extracting control button event mark, determines whether according to the control button event of extraction mark For lock event;
Hidden unit, for after marker extraction unit is defined as lock event, hiding the solution lock control of the triggering lock event Part button;
Trigger element is triggered, for after marker extraction unit is defined as lock event, locking to be ejected in the position pre-set Control button.
12. device according to claim 10, it is characterised in that the latched position drive module includes:Locking driving Unit, timer units and position coordinates matching unit, wherein,
Driver element is locked, for driving locking control button to be moved according to the position motion track pre-set, and in locking In control button moving process, animated show is carried out according to the animation strategy pre-set;
Timer units, when locking driver element driving locking control button motion, start timer, are timed in timer When, calling station obtains function and obtains locking control button position coordinates;
Position coordinates matching unit, for the locking control button position coordinates for judging to obtain and the position of the capture lock event Put whether coordinate matches, if matched, it is determined that the locking control button of ejection is moved to the position for capturing the lock event Put, terminate driving;If do not matched that, notify timer units to add 1 by timer period number, reset after timer again Start.
13. device according to claim 10, it is characterised in that the latched position drive module includes:Move position Lopcus function setting unit, piecewise function variable setting unit, driving timing unit and timing processing unit, wherein,
Position motion track function setup unit, for using the locking control button position of ejection as starting point, to capture the lock The position for determining event is terminal, sets the position motion track function using the time as variable;
Piecewise function variable setting unit, it is required according to what is set for setting the time needed for the starting point to the terminal Set of time described in each segmentation position motion track function in position motion track function;
Driving timing unit, for driving the locking control button of ejection to be moved according to the position motion track function, and is opened Beginning timing, in locking control button moving process, animated show is carried out according to the animation strategy pre-set;
Timing processing unit, after the time needed for timing to the starting point to the terminal set, terminates driving, determines bullet The locking control button gone out has been moved into the position for capturing the lock event.
14. the device according to any one of claim 10 to 13, it is characterised in that further comprise:
Monitoring modular, for after monitoring that user is operated into the control button zone of action pre-set, animation to show institute State control button.
15. the device according to any one of claim 10 to 13, it is characterised in that further comprise:Unlock event capturing Module, unlocked position drive module and unlocked state, wherein,
Event capturing module is unlocked, occurs for being captured in current window after unblock event, utilizes the unblock pre-set Control button replaces the locking control button of the triggering unblock event;
Unlocked position drive module, for replicating the corresponding unlocking control button icon of the unlocking control button, driving is described Unlocking control button icon is moved to the picture mark position pre-set according to the animation strategy pre-set, and pre-setting Unlocking control button picture mark position blanking;
Current window is moved in unlocked state, the operation for moving current window according to user.
CN201410523095.5A 2014-09-30 2014-09-30 A kind of animation method and device for realizing control button locking Active CN104298510B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410523095.5A CN104298510B (en) 2014-09-30 2014-09-30 A kind of animation method and device for realizing control button locking

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410523095.5A CN104298510B (en) 2014-09-30 2014-09-30 A kind of animation method and device for realizing control button locking

Publications (2)

Publication Number Publication Date
CN104298510A CN104298510A (en) 2015-01-21
CN104298510B true CN104298510B (en) 2017-08-25

Family

ID=52318253

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410523095.5A Active CN104298510B (en) 2014-09-30 2014-09-30 A kind of animation method and device for realizing control button locking

Country Status (1)

Country Link
CN (1) CN104298510B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105787983A (en) * 2016-03-21 2016-07-20 上海斐讯数据通信技术有限公司 System and method for realizing animation effect through Checkbox control
CN107168606B (en) * 2017-05-12 2019-05-17 武汉斗鱼网络科技有限公司 Dialog control display methods, device and user terminal
CN107392004A (en) * 2017-08-08 2017-11-24 广州杰之良软件有限公司 Pattern unlocking method and device
CN118069267A (en) * 2018-10-22 2024-05-24 青岛海信移动通信技术有限公司 Mobile terminal and method for locking and unlocking widgets in mobile terminal
CN117170545A (en) * 2022-06-10 2023-12-05 荣耀终端有限公司 Display method of switch control and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102147701A (en) * 2010-02-04 2011-08-10 三星电子株式会社 Apparatus and method for displaying a lock screen of a terminal equipped with a touch screen
CN102354270A (en) * 2011-09-04 2012-02-15 上海量明科技发展有限公司 Method and system for locking contact in instant messaging
CN103064619A (en) * 2012-12-18 2013-04-24 广东欧珀移动通信有限公司 Method and system for performing slingshot unlocking on touch screen mobile device
CN103455405A (en) * 2012-06-04 2013-12-18 阿里巴巴集团控股有限公司 Method and system for preventing button from being clicked repeatedly and method and system for unlocking button
CN103853451A (en) * 2012-12-06 2014-06-11 三星电子株式会社 Display device and method of controlling the same

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8015509B2 (en) * 2007-11-14 2011-09-06 International Business Machines Corporation Selectively locking GUI controls to prevent accidental operations in a computing environment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102147701A (en) * 2010-02-04 2011-08-10 三星电子株式会社 Apparatus and method for displaying a lock screen of a terminal equipped with a touch screen
CN102354270A (en) * 2011-09-04 2012-02-15 上海量明科技发展有限公司 Method and system for locking contact in instant messaging
CN103455405A (en) * 2012-06-04 2013-12-18 阿里巴巴集团控股有限公司 Method and system for preventing button from being clicked repeatedly and method and system for unlocking button
CN103853451A (en) * 2012-12-06 2014-06-11 三星电子株式会社 Display device and method of controlling the same
CN103064619A (en) * 2012-12-18 2013-04-24 广东欧珀移动通信有限公司 Method and system for performing slingshot unlocking on touch screen mobile device

Also Published As

Publication number Publication date
CN104298510A (en) 2015-01-21

Similar Documents

Publication Publication Date Title
CN104298510B (en) A kind of animation method and device for realizing control button locking
EP2941756B1 (en) Rendering augmented reality based on foreground object
CN103827785B (en) Using pressure differences with a touch-sensitive display screen
CN106575444B (en) User gesture-driven avatar apparatus and method
Kang et al. Recognition-based gesture spotting in video games
US9218683B2 (en) Collection rearrangement animation
US9911231B2 (en) Method and computing device for providing augmented reality
US8958631B2 (en) System and method for automatically defining and identifying a gesture
CN110622219B (en) Interactive augmented reality
US20130234957A1 (en) Information processing apparatus and information processing method
US20150161095A1 (en) Method for inserting or deleting cells, rows or columns in spreadsheet and a device therefor
JP2014501996A5 (en)
CN104123520A (en) Two-dimensional code scanning method and device
CN108334273B (en) Information display method and device, storage medium, processor and terminal
CN110413187B (en) Method and device for processing annotations of interactive intelligent equipment
CN102520954B (en) Implementation method and implementation device for mouse following
CN105183214B (en) Touch control operation identifies and response method, device and game control method, device
CN107609199A (en) A kind of method, equipment and storage medium for handling and recovering the page
CN105912185A (en) Method and device for unloading application program, and terminal device
CN105242825A (en) Terminal control method and apparatus
CN111841013A (en) Information display method and device
CN111803960A (en) Method and equipment for starting preset process
CN105159573B (en) Touch control operation identifies and response method, device and game control method, device
US8842120B2 (en) Physics rules based animation engine
CN111766989A (en) Interface switching method and device

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

Effective date of registration: 20190111

Address after: 519031 Room 105-53811, No. 6 Baohua Road, Hengqin New District, Zhuhai City, Guangdong Province

Patentee after: Zhuhai Seal Interest Technology Co., Ltd.

Address before: 519070, six level 601F, 10 main building, science and technology road, Tangjia Bay Town, Zhuhai, Guangdong.

Patentee before: Zhuhai Juntian Electronic Technology Co.,Ltd.

TR01 Transfer of patent right