Abstract:
Disclosed is a multi-zone interface switching device, comprising: a special-effect adding module configured for establishing a special effect information list using a plurality of set special effect zones, a special effect style and a special effect frame number of each special effect zone, and providing the special effect information list to the special-effect calculating module; a special-effect controlling module configured for sending, upon receiving an instruction to perform an interface switching operation, the special-effect calculating module a notification to calculate a switching picture; and a special-effect calculating module configured for calculating, after receiving the notification to calculate a switching picture sent by the special-effect controlling module, a switching picture to be displayed in each special effect zone using the special effect information list in the special-effect adding module. Also disclosed is a multi-zone interface switching method. With the disclosure, it is possible to provide an interface switching solution with natural transition and rich forms.

Description:
TECHNICAL FIELD 
       [0001]    The disclosure relates to display control technology in the field of mobile communication, and particularly to a multi-zone interface switching method and device. 
       BACKGROUND 
       [0002]    With fast development of electronic technology, there is a wide use of various embedded terminals with display equipments, in particular terminals with interfaces for human-computer interaction, such as mobile phones, tablet computers, electronic books, Global Positioning Systems (GPS). Such terminals are frequently used. However, during interface switching of such terminals, an interface is displayed directly without processing or transition, such that a user experiences sudden and unnatural interface switching. 
         [0003]    Currently, with some terminals, simple transition during interface switching, such as colour change, distortion, enlargement, rotation, is displayed, which improves visual experience in terminal usage to a certain degree. However, such monotonic interface switching fails to meet a user requirement for diversified displaying solutions during the interface switching operation. 
         [0004]    It can be seen that an existing method fails to provide a solution for multi-zone interface switching in a display equipment of a terminal, thereby failing to provide an interface switching solution with natural transition and rich forms. 
       SUMMARY 
       [0005]    In view of the above, it is desired that embodiments of the disclosure provide a multi-zone interface switching method and device, capable of providing an interface switching solution with natural transition and rich forms. 
         [0006]    To this end, a technical solution according to the disclosure is implemented as follows. 
         [0007]    The disclosure provides a multi-zone interface switching device, including a special-effect adding module, a special-effect controlling module and a special-effect calculating module, wherein 
         [0008]    the special-effect adding module is configured for establishing a special effect information list using a plurality of set special effect zones, a special effect style and a special effect frame number of each special effect zone, and providing the special effect information list to the special-effect calculating module; 
         [0009]    the special-effect controlling module is configured for sending, upon receiving an instruction to perform an interface switching operation, the special-effect calculating module a notification to calculate a switching picture; and 
         [0010]    the special-effect calculating module is configured for calculating, after receiving the notification to calculate a switching picture sent by the special-effect controlling module, a switching picture to be displayed in each special effect zone using the special effect information list in the special-effect adding module. 
         [0011]    In an embodiment, the special-effect calculating module is configured for: setting a maximal special effect frame number in the special effect information list as an overall switching picture number, and setting an execution counter as one; calculating a switching picture to be displayed in each special effect display zone to be displayed in a current switching frame, and increasing the execution counter by one; determining whether the execution counter is equal to the overall switching picture number; and when the execution counter is not equal to the overall switching picture number, continuing to calculate a switching picture to be displayed in each special effect display zone to be displayed in a next frame, and increasing the execution counter by one, or when the execution counter is equal to the overall switching picture number, performing no operation. 
         [0012]    In an embodiment, the special-effect calculating module is configured for: determining whether a switching picture has to be calculated for each special effect zone; when a switching picture has to be calculated for a special effect zone, calculating the switching picture about to be displayed in the special effect zone, and increasing a switching picture counter of the special effect zone by one, or when no switching frame has to be calculated for a special effect zone, calculating no switching frame; and after calculation is done for all special effect zones, forming the current switching frame to be displayed by any switching picture about to be displayed in a special effect zone. 
         [0013]    In an embodiment, the device further includes an image-resource setting module configured for providing the special-effect calculating module with an image before switching and an image after switching, 
         [0014]    where the special-effect calculating module is configured for: calling a locally pre-stored calculating method corresponding to a special effect style of the special effect zone recorded in the special effect information list, and calculating the switching picture about to be displayed in the special effect zone with the calculating method corresponding to the special effect style of the special effect zone using the switching picture counter of the special effect zone, the special effect frame number and the special effect style of the special effect zone in the special effect information list, and the image before switching and the image after switching in the image-resource setting module. 
         [0015]    In an embodiment, the special-effect adding module is further configured for testing validity of a set special effect zone, and adding a valid special effect zone in the special effect information list. 
         [0016]    In an embodiment, the special-effect adding module, the special-effect controlling module, the special-effect calculating module and the image-resource setting module are installed in an equipment with an interface for human-computer interaction. 
         [0017]    The disclosure further provides a multi-zone interface switching method, including steps of: 
         [0018]    establishing a special effect information list using a plurality of set special effect zones, a special effect style and a special effect frame number of each special effect zone; and upon receiving an instruction to perform an interface switching operation, calculating a switching picture to be displayed in each special effect zone according to the special effect information list. 
         [0019]    In an embodiment, the step of calculating a switching picture to be displayed in each special effect zone according to the special effect information list includes: 
         [0020]    setting a maximal special effect frame number in the special effect information list as an overall switching picture number, and setting an execution counter as one; and 
         [0021]    calculating a switching picture to be displayed in each special effect display zone to be displayed in a current switching frame, and increasing the execution counter by one; determining whether the execution counter is equal to the overall switching picture number; and when the execution counter is not equal to the overall switching picture number, continuing to calculate a switching picture to be displayed in each special effect display zone to be displayed in a next switching frame, and increasing the execution counter by one, or ending the flow when the execution counter is equal to the overall switching picture number. 
         [0022]    In an embodiment, the step of calculating a switching picture to be displayed in each special effect display zone to be displayed in a current switching frame includes: 
         [0023]    determining whether a switching picture has to be calculated for each special effect zone; when a switching picture has to be calculated for a special effect zone, calculating the switching picture about to be displayed in the special effect zone, and increasing a switching picture counter of the special effect zone by one, or when no switching frame has to be calculated for a special effect zone, calculating no switching frame; and 
         [0024]    after calculation is done for all special effect zones, forming the current switching frame to be displayed by any switching picture about to be displayed in a special effect zone. 
         [0025]    In an embodiment, the step of calculating the switching picture about to be displayed in the special effect zone includes: calling a locally pre-stored calculating method corresponding to a special effect style of the special effect zone recorded in the special effect information list, and calculating the switching picture about to be displayed in the special effect zone with the calculating method corresponding to the special effect style of the special effect zone using the switching picture counter of the special effect zone, the special effect frame number and the special effect style of the special effect zone in the special effect information list, and an image before switching and an image after switching. 
         [0026]    In an embodiment, the step of establishing a special effect information list using a plurality of set special effect zones, a special effect style and a special effect frame number of each special effect zone includes: testing validity of a set special effect zone, and adding a valid special effect zone in the special effect information list. 
         [0027]    The multi-zone interface switching method and device provided by the disclosure have advantages and features that: various special effects are presented in multiple non-overlapping zones according to a plurality of user-set special effect zones as well as a special effect style and a special effect frame number of each special effect zone. Moreover, multiple special effect styles may be pre-set in the multi-zone interface switching device, thereby providing an interface switching solution with more natural transition and richer forms and significantly improving visual experience of a user. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0028]      FIG. 1  is a schematic diagram of a structure of a multi-zone interface switching device according to the disclosure; and 
           [0029]      FIG. 2  is a flowchart of a multi-zone interface switching method according to the disclosure. 
       
    
    
     DETAILED DESCRIPTION 
       [0030]    According to embodiments of the disclosure, a special effect information list is established using a plurality of set special effect zones, a special effect style and a special effect frame number of each special effect zone; and once an instruction to perform an interface switching operation is received, a switching picture to be displayed is calculated according to the special effect information list. 
         [0031]    The disclosure is further elaborated with reference to drawings and specific embodiments. 
         [0032]    The disclosure provides a multi-zone interface switching device, as shown in  FIG. 1 . The device includes a special-effect adding module  11 , a special-effect controlling module  12  and a special-effect calculating module  13 . 
         [0033]    The special-effect adding module  11  is configured for establishing a special effect information list using a plurality of set special effect zones, a special effect style and a special effect frame number of each special effect zone, and providing the special effect information list to the special-effect calculating module  13 . 
         [0034]    The special-effect controlling module  12  is configured for sending, upon receiving an instruction to perform an interface switching operation, the special-effect calculating module  13  a notification to calculate a switching picture. 
         [0035]    The special-effect calculating module  13  is configured for calculating, after receiving the notification to calculate a switching picture sent by the special-effect controlling module  12 , a switching picture to be displayed in each special effect zone using the special effect information list in the special-effect adding module  11 . 
         [0036]    The device may further include an image-resource setting module  14  for saving an image before switching and an image after switching. 
         [0037]    The image before switching and the image after switching may be user-selected. The images may be selected from a gallery in an accessed system by a user, where a format of the images may be jpg. 
         [0038]    The special-effect adding module  11  may be configured for establishing the special effect information list using user-set special effect zones, a user-selected special effect style of each special effect zone, and user-set special effect frame numbers received; 
         [0039]    Each entry of the special effect information list may include a special effect zone, a special effect style within the special effect zone, and a special effect frame number of the special effect zone. The special effect information list may be established using an existing doubly linked list. 
         [0040]    A special effect zone is a rectangular zone divided according to user-set coordinates of a lower-left corner and an upper-right corner of a display interface; the lower-left corner of the display interface may be taken as the origin of two-dimensional coordinates (X, Y); specifically, a special effect zone is denoted by {lower-left x, lower-left y; upper-right x, upper-right y}; where the coordinates are set according to a resolution of a display equipment of the accessed system; for example, when the resolution of the display equipment of the accessed system is 240×400, three special effect zones are set, respectively with coordinates of display interfaces of {0, 0; 240, 133}, {0, 134; 240, 267} and {0, 268; 240, 400}.| 
         [0041]    A special effect style is pre-set, with an existing specific special effect implementing method which will not be repeated herein. The special effect may include flying toward the left, rotation and the like; for instance, three special effect zones are set, respectively with styles of flying from left to right, flying from right to left, and flying from left to right. 
         [0042]    A special effect frame number is a user-specified number of switching frames to be displayed in displaying the special effect and accomplishing the special effect style of a special effect zone. 
         [0043]    The special-effect adding module  11  may be specifically configured for interacting with a display interaction module of the accessed system and receiving a user operation sent from the display interaction module. 
         [0044]    The special-effect controlling module  12  may be specifically configured for determining whether an instruction to perform an interface switching operation is received; sending, when such an instruction is received, the special-effect calculating module  13  a notification to calculate a switching picture, or continuing to determine whether an instruction to perform an interface switching operation is received. 
         [0045]    The special-effect controlling module  12  may be specifically configured for determining whether an instruction sent by the accessed system is an instruction to perform an interface switching operation, where when an interface switching operation is to be performed in the accessed system, an instruction to perform an interface switching operation will be generated inside the accessed system; once the instruction to perform an interface switching operation is detected, interface switching is initiated, or if no instruction to perform an interface switching operation is detected, interface switching is not performed. 
         [0046]    The instruction to perform an interface switching operation may be generated inside the accessed system according to a requirement of existing technology, using a specific generating method which is not repeated here. 
         [0047]    The special-effect calculating module  13  is specifically configured for extracting the special effect information list in the special-effect adding module  11 , selecting the maximal special effect frame number in the special effect information list, setting the maximal special effect frame number as the overall switching picture number, and setting the execution counter as one; setting a switching picture counter for each special effect zone in the special effect information list, and setting the switching picture counter of each special effect as one. 
         [0048]    The special-effect calculating module  13  may be specifically configured for: calculating a switching picture to be displayed in a current switching frame, and increasing the execution counter by one; determining whether the execution counter is equal to the overall switching picture number; and when the execution counter is not equal to the overall switching picture number, continuing to calculate a switching picture to be displayed in a next switching frame, and increasing the execution counter by one, or when the execution counter is equal to the overall switching picture number, deleting locally saved switching information in displaying the current switching operation and ending the flow, wherein the locally saved switching information may include a switching picture counter, the execution counter; the special effect frame number of the special effect zone, the overall switching picture number, and each calculated switching picture to be displayed. 
         [0049]    The special-effect calculating module  13  may be specifically configured for: when calculating a switching picture to be displayed in the current switching frame, determining whether a switching picture has to be calculated for each special effect zone; when a switching picture has to be calculated for a special effect zone, calculating the switching picture about to be displayed in the special effect zone, and increasing the switching picture counter of the special effect zone by one, or when no switching frame has to be calculated for a special effect zone, calculating no switching frame; and after calculation is done for all special effect zones, forming the current switching frame to be displayed by any switching picture about to be displayed in a special effect zone. 
         [0050]    The special-effect calculating module  13  may be specifically configured for determining whether a switching picture has to be calculated for each special effect zone, and performing determination on all special effect zones in the special effect information list with a formula: 
         [0000]      switching picture counter==execution counter*special effect frame number in special effect zone/overall switching picture number; 
         [0051]    when the result given by the formula is 1, it is determined that a switching picture has to be calculated for the special effect zone. 
         [0052]    The special-effect calculating module  13  may be specifically configured for: calling a locally pre-stored calculating method corresponding to a special effect style of the special effect zone recorded in the special effect information list, and calculating the switching picture about to be displayed in the special effect zone with the calculating method corresponding to the special effect style of the special effect zone using the switching picture counter of the special effect zone, the special effect frame number and the special effect style of the special effect zone in the special effect information list, and the image before switching and the image after switching in the image-resource setting module  14 ; the image-resource setting module  14  may be further configured for providing the special-effect calculating module  13  with an image before switching and an image after switching. 
         [0053]    The special-effect calculating module  13  may be specifically configured for saving a pre-set switching picture calculating method corresponding to a special effect style; the pre-set calculating method is existing technology, and is not repeated here. 
         [0054]    For example, assume that there are three special effect zones A, B, C respectively with special effect frame numbers 5, 7, 10. Then, the overall switching picture number is 10, the execution counter is set to be 1. 
         [0055]    The special-effect calculating module  13  initiates switching picture counters of all special effect zones A, B, C as 1; according to the formula, 1==1*5/10 gives 0, i.e. no switching picture has to be calculated for the special effect zone A; 1==1*7/10 gives 0, i.e. no switching picture has to be calculated for the special effect zone B; 1==1*10/10 gives 1, i.e. a switching picture has to be calculated for the special effect zone C, then a switching picture is calculated for the special effect zone C and a picture displayed in C is updated; the switching picture counter of the special effect zone C is increased by one; such determination and calculation continues until the execution counter is equal to the overall switching picture number, and then the flow ends. 
         [0056]    The special-effect adding module  11  may be further configured for testing validity of a user-set special effect zone, and adding a valid special effect zone in the special effect information list. 
         [0057]    The special-effect adding module  11  may be specifically configured for determining whether a special effect zone currently set by the user is a special effect zone recorded in the special effect information list; when the special effect zone currently set by the user is a special effect zone recorded in the special effect information list, replacing content of the special effect zone recorded in the special effect information list by the special effect zone currently set by the user and saving the list; when the special effect zone currently set by the user does not cover, but overlaps with, an original special effect zone recorded in the special effect information list, determining that the special effect zone currently set by the user is invalid; and when the special effect zone currently set by the user is not related to any special effect zone recorded in the special effect information list, determining that the special effect zone currently set by the user is valid. 
         [0058]    The interface switching device may be installed, as a module, on an existing equipment with an interface for human-computer interaction, such as a mobile phone, a tablet computer and the like. In the multi-zone interface switching device: 
         [0059]    the special-effect adding module  11  is connected to the display interaction module of a system actually accessed, and receives a user-set special effect zone, a user-selected special effect style of each special effect zone, and a user-set special effect frame number; 
         [0060]    the image-resource setting module  14  receives a picture sent by the accessed system; and will perform, when the multi-zone interface switching device accesses the system for the first time, an initial test specifically by testing whether remaining memory space of the accessed system is enough for saving two pictures corresponding to the resolution of the display interaction equipment of the accessed system; when there are enough memory space, initialization is successful, and then the user is informed to select the image before switching and the image after switching via the display interaction module of the accessed system, or when there are not enough memory space, the initialization fails and no operation is performed; 
         [0061]    a switching picture to be displayed in each special effect zone finally calculated by the special-effect calculating module  13  is sent to the display interaction module of the actually-accessed system so as to be displayed. 
         [0062]    A multi-zone interface switching method according to the disclosure, as shown in  FIG. 2 , includes steps as follows. 
         [0063]    In step  201 , an image before switching and an image after switching are saved in a multi-zone interface switching device. 
         [0064]    In step  202 , a special effect information list is established using set special effect zones, a special effect style and a special effect frame number of each special effect zone set in the multi-zone interface switching device. 
         [0065]    Here, a special effect zone is a rectangular zone divided according to user-set coordinates of a lower-left corner and an upper-right corner of a display interface; the lower-left corner of the display interface may be taken as the origin of two-dimensional coordinates (X, Y); specifically, a special effect zone is denoted by {lower-left x, lower-left y; upper-right x, upper-right y}; where the coordinates are set according to a resolution of a display equipment of the accessed system; for example, when the resolution of the display equipment of the accessed system is 240×400, three special effect zones are set, respectively with coordinates of display interfaces of {0, 0; 240, 133}, {0, 134; 240, 267} and {0, 268; 240, 400}. 
         [0066]    A special effect style is pre-set, with an existing specific special effect implementing method which will not be repeated herein. The special effect may include flying toward the left, rotation and the like; for instance, three special effect zones are set, respectively with styles of flying from left to right, flying from right to left, and flying from left to right. 
         [0067]    A special effect frame number is a user-specified number of switching frames to be displayed in displaying the special effect and accomplishing the special effect style of a special effect zone. 
         [0068]    Each entry of the special effect information list may include a special effect zone, a special effect style within the special effect zone, and a special effect frame number of the special effect zone. The special effect information list may be established using an existing doubly linked list. 
         [0069]    In step  203 , the multi-zone interface switching device determines whether an instruction to perform an interface switching operation is received, and performs step  204  when such an instruction is received, or repeats step  203  when such an instruction is not received. 
         [0070]    Here, the multi-zone interface switching device determines whether an instruction to perform an interface switching operation is received by determining whether an instruction sent by the accessed system is an instruction to perform an interface switching operation, where when an interface switching operation is to be performed in the accessed system, an instruction to perform an interface switching operation will be generated inside the accessed system; once the instruction to perform an interface switching operation is detected, interface switching is initiated, or if no instruction to perform an interface switching operation is detected, interface switching is not performed. The instruction to perform an interface switching operation may be generated inside the accessed system according to a requirement of existing technology, using a specific generating method which is not repeated here. 
         [0071]    In step  204 : the multi-zone interface switching device sets a maximal special effect frame number in the special effect information list as an overall switching picture number, and sets an execution counter as one. 
         [0072]    Specifically, the multi-zone interface switching device extracts the special effect information list in the special-effect adding module  11 , selects the maximal special effect frame number in the special effect information list, sets the maximal special effect frame number as the overall switching picture number, and sets the execution counter as one; sets a switching picture counter for each special effect zone in the special effect information list, and sets the switching picture counter of each special effect as one. 
         [0073]    Step  205 : the multi-zone interface switching device calculates a switching picture to be displayed in each special effect display zone to be displayed in a current switching frame, and increases the execution counter by one; determines whether the execution counter is equal to the overall switching picture number; and when the execution counter is not equal to the overall switching picture number, repeats step  205 , or when the execution counter is equal to the overall switching picture number, ends the processing flow. 
         [0074]    Here, the multi-zone interface switching device calculates a switching picture to be displayed in each special effect display zone to be displayed in a current switching frame by: determining whether a switching picture has to be calculated for each special effect zone; when a switching picture has to be calculated for a special effect zone, calculating the switching picture about to be displayed in the special effect zone, and increasing the switching picture counter of the special effect zone by one, or when no switching frame has to be calculated for a special effect zone, calculating no switching frame; and after calculation is done for all special effect zones, forming the current switching frame to be displayed by any switching picture about to be displayed in a special effect zone. 
         [0075]    The multi-zone interface switching device determines whether a switching picture has to be calculated for each special effect zone with a formula: 
         [0000]      switching picture counter==execution counter*special effect frame number in special effect zone/overall switching picture number; 
         [0076]    when the result given by the formula is 1, it is determined that a switching picture has to be calculated for the special effect zone. 
         [0077]    The multi-zone interface switching device calculates the switching picture about to be displayed in the special effect zone by: calling a locally pre-stored calculating method corresponding to a special effect style of the special effect zone recorded in the special effect information list, and calculating the switching picture about to be displayed in the special effect zone with the calculating method corresponding to the special effect style of the special effect zone using the switching picture counter of the special effect zone, the special effect frame number and the special effect style of the special effect zone in the special effect information list, and the image before switching and the image after switching in the image-resource setting module. 
         [0078]    Additionally, before step  201 , the multi-zone interface switching device may perform initialization specifically by testing, when the multi-zone interface switching device accesses a system for the first time, whether remaining memory space of the accessed system is enough for saving two pictures corresponding to the resolution of the display interaction equipment of the accessed system; when there are enough memory space, initialization is successful, and then step  201  is performed, or when there are not enough memory space, the initialization fails and the processing flow ends. 
         [0079]    In establishing the special effect information list in step  202 , it is further required to test validity of a user-set special effect zone, and a valid special effect zone may be added in the special effect information list. Specifically, it is determined whether a special effect zone currently set by the user is a special effect zone recorded in the special effect information list; when the special effect zone currently set by the user is a special effect zone recorded in the special effect information list, content of the special effect zone recorded in the special effect information list is replaced by the special effect zone currently set by the user and the list is saved; when the special effect zone currently set by the user does not cover, but overlaps with, an original special effect zone recorded in the special effect information list, it is determined that the special effect zone currently set by the user is invalid; and when the special effect zone currently set by the user is not related to any special effect zone recorded in the special effect information list, it is determined that the special effect zone currently set by the user is valid. 
         [0080]    In step  205 , the multi-zone interface switching device sends a calculated switching picture to be displayed to the display interaction module of the actually-accessed system so as to be displayed. Furthermore, after step  205  is performed, when multi-zone switching is displayed, the multi-zone interface switching device further needs to delete locally saved switching information in displaying the current switching operation and ends the flow, wherein the locally saved switching information may include a switching picture counter, the execution counter; the special effect frame number of the special effect zone, the overall switching picture number, and each calculated switching picture to be displayed. 
         [0081]    What described are merely embodiments of the disclosure, and are not intended to limit the scope of the disclosure.