WO2017101730A1 - 数据归类的方法和装置 - Google Patents

数据归类的方法和装置 Download PDF

Info

Publication number
WO2017101730A1
WO2017101730A1 PCT/CN2016/108982 CN2016108982W WO2017101730A1 WO 2017101730 A1 WO2017101730 A1 WO 2017101730A1 CN 2016108982 W CN2016108982 W CN 2016108982W WO 2017101730 A1 WO2017101730 A1 WO 2017101730A1
Authority
WO
WIPO (PCT)
Prior art keywords
icon
style
target object
classified
user interface
Prior art date
Application number
PCT/CN2016/108982
Other languages
English (en)
French (fr)
Inventor
顾玉婷
Original Assignee
阿里巴巴集团控股有限公司
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 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2017101730A1 publication Critical patent/WO2017101730A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Definitions

  • the present invention relates to the field of data categorization, and in particular to a method and apparatus for data categorization.
  • the file or image categorization method is generally that the user overlaps any two icons to generate a folder, and then drags other icons into the folder. Complete the classification. However, if you need to categorize multiple images and files, you need to drag them multiple times. For example, if you need to classify 6 files, you need to drag at least 5 times.
  • An embodiment of the present invention provides a data categorization method and apparatus, to at least solve the prior art, when categorizing a plurality of target objects displayed in a user interface, multiple times of dragging or clicking on the user interface Only after the classification can be completed, the technical problem of the target object's classification efficiency is low.
  • a method for data categorization comprising: acquiring a style icon when an operation event is detected at any position of a user interface; and during a style icon being dragged, according to a style
  • the movement track of the icon on the user interface determines at least one target object to be classified; and at least one target object to be classified is transferred to a directory where the style icon is located.
  • a data categorization method comprising: generating a style icon at any position of the touch screen when the touch screen senses a corresponding touch operation; if the style icon is dragged and dropped in the touch screen , determining at least one target object to be classified according to the movement trajectory of the style icon; at least one to be classified The icon of a target object is displayed in the directory of the style icon.
  • an apparatus for data categorization comprising: an obtaining module, configured to acquire a style icon when an operation event is detected at any position of a user interface; and a determining module, configured to: During the dragging of the style icon, determining at least one target object to be classified according to the movement track of the style icon on the user interface; and transferring a module for transferring at least one target object to be classified to the style icon Under the directory.
  • an apparatus for data categorization including: a generating module, configured to generate a style icon at an arbitrary position of the touch screen when the touch screen senses a corresponding touch operation; For determining, if the style icon is dragged in the touch screen, determining at least one target object to be classified according to the movement trajectory of the style icon; and displaying a module for displaying an icon of the at least one target object to be classified in the style icon Under contents.
  • the style icon is acquired, and in the process of the style icon being dragged, according to the style icon
  • a movement track on the user interface determines at least one target object to be classified, and after determining at least one target object, transferring at least one target object to be classified to a directory in which the style icon is located.
  • the solution can determine the target object by categorizing at least one target object to be classified according to the obtained trajectory of the style icon on the user interface.
  • the new folder operation can be triggered by pressure pressing, after the style icon is acquired, at least one target object can be determined according to the movement track of the style icon, and at least one target object to be classified is transferred.
  • the purpose of categorizing the target object is achieved. Therefore, by using the solution provided by the embodiment of the present application, multiple icons (or files) can be selected and classified at one time to implement categorization of at least one target object. Class, trigger simple and avoid misuse, improve the classification efficiency of files or icons.
  • the solution provided by the present application solves the problem that the prior art classifies multiple target objects displayed in the user interface, and needs to perform multiple times of dragging or clicking on the user interface to complete the classification, resulting in the target object.
  • 1(a) is a schematic diagram of a data classification method according to the prior art
  • 1(b) is a schematic diagram of a data classification method according to the prior art
  • 1(c) is a schematic diagram of a data classification method according to the prior art
  • FIG. 2 is a block diagram showing the hardware structure of a computer terminal of a method for data classification according to an embodiment of the present application
  • FIG. 3 is a flowchart of a method for data classification according to Embodiment 1 of the present application.
  • FIG. 4(a) is a schematic diagram of an alternative data categorization method in accordance with an embodiment of the present application.
  • FIG. 4(b) is a schematic diagram of an alternative data categorization method in accordance with an embodiment of the present application.
  • 4(c) is a schematic diagram of an alternative data categorization method in accordance with an embodiment of the present application.
  • 4(d) is a schematic diagram of an alternative data categorization method in accordance with an embodiment of the present application.
  • FIG. 4(e) is a schematic diagram of an alternative data categorization method in accordance with an embodiment of the present application.
  • 4(f) is a schematic diagram of an alternative data categorization method in accordance with an embodiment of the present application.
  • FIG. 5 is a flowchart of a method for data classification according to Embodiment 2 of the present application.
  • FIG. 6 is a schematic diagram of an apparatus for classifying data according to Embodiment 3 of the present application.
  • FIG. 7 is a schematic diagram of an apparatus for classifying data according to Embodiment 4 of the present application.
  • FIG. 8 is a structural block diagram of a computer terminal according to an embodiment of the present application.
  • Force touch Pressure sensing is a touch sensor technology. With Force touch, the device can sense the granularity of light pressure and heavy pressure, and call out different corresponding functions.
  • a method embodiment of data categorization is also provided, it being noted that the steps illustrated in the flowchart of the figures may be performed in a computer system such as a set of computer executable instructions, and Although the logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
  • FIG. 2 is a hardware block diagram of a computer terminal of a data classification method according to an embodiment of the present invention.
  • computer terminal 10 may include one or more (only one of which is shown) processor 102 (processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA)
  • processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA)
  • a memory 104 for storing data and a transmission module 106 for communication functions.
  • FIG. 2 is merely illustrative and does not limit the structure of the above electronic device.
  • computer terminal 10 may also include more or fewer components than those shown in FIG. 2, or have a different configuration than that shown in FIG. 2.
  • the memory 104 can be used to store software programs and modules of the application software, such as program instructions/modules corresponding to the data categorization method in the embodiment of the present invention, and the processor 102 executes by executing the software programs and modules stored in the memory 104.
  • Memory 104 may include high speed random access memory, and may also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
  • memory 104 may further include memory remotely located relative to processor 102, which may be coupled to computer terminal 10 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • Transmission device 106 is for receiving or transmitting data via a network.
  • the network specific examples described above may include a wireless network provided by a communication provider of the computer terminal 10.
  • the transmission device 106 includes a Network Interface Controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet.
  • the transmission device 106 can be a Radio Frequency (RF) module for communicating with the Internet wirelessly.
  • NIC Network Interface Controller
  • RF Radio Frequency
  • FIG. 3 is a flowchart of a method for data categorization according to Embodiment 1 of the present invention. As shown in FIG. 3, the method includes the following steps:
  • Step S31 when an operation event is detected at any position of the user interface, the style icon is acquired.
  • the user interface may be a user interface on a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, a handheld computer, or the like, or may be a user interface on the computer terminal
  • the above operation event may be the user Click events, sliding events, drag events, etc. triggered by the operation on the user interface, for example, when the user presses the screen of the smart phone, the click event can be triggered, and the user can slide the counterclockwise circular track or the triangular track on the screen of the smart phone.
  • the sliding event is triggered, and the above style icon may be an icon drawn after detecting the operation event or an icon displayed on any one of the user interfaces.
  • the click event may be triggered, and the smart phone detects the click event. Thereafter, a style icon is displayed at a position pressed by the user in the user interface, and the style icon can be moved following the movement of the user gesture.
  • the above embodiment of the present invention is described in detail with the user interface being a user interface on a smartphone and the operation event being a click event as an example.
  • the screen of the smartphone can be pressed in a blank position of the user interface, and the smart phone detects the click triggered by the user pressing the screen of the mobile phone. After the event, draw a folder icon (which is one of the expressions of the above style icons) and display the obtained folder icon on the phone screen.
  • Step S33 in the process of the style icon being dragged, determining at least one target object to be classified according to the movement trajectory of the style icon on the user interface.
  • the above target object may be an icon or a file that the user wants to classify.
  • the movement track can be generated by dragging the style icon on the user interface, and any target object through which the movement path of the style icon passes is determined to be the target object to be classified.
  • the above embodiment of the present invention is described in detail with the user interface being the user interface on the smartphone and the operation event being a click event.
  • the mobile phone screen can be pressed in a blank position of the user interface, and the smart phone detects the click event triggered by the user pressing the mobile phone screen.
  • the folder icon is drawn, and the obtained folder icon is displayed on the screen of the mobile phone.
  • the user can sequentially drag the folder icon through icon 1, icon 2, icon 3 and icon 4, according to the folder icon on the user interface.
  • the movement track determines the four icons to be classified, namely icon 1, icon 2, icon 3 and icon 4.
  • Step S35 Transfer at least one target object to be classified to a directory where the style icon is located.
  • the to-be-classified One less target object is moved to the directory where the style icon is located.
  • the above embodiment of the present invention is described in detail with the user interface being the user interface on the smartphone and the operation event being a click event.
  • the mobile phone screen can be pressed in a blank position of the user interface, and the smart phone detects the click event triggered by the user pressing the mobile phone screen.
  • the user can sequentially drag the folder icon through icon 1, icon 2, icon 3 and icon 4, according to the folder icon on the user interface Move the track, determine the 4 icons to be classified, namely icon 1, icon 2, icon 3 and icon 4, and transfer icon 1, icon 2, icon 3 and icon 4 to the directory where the folder is located, the folder The icon is displayed on the user interface.
  • the style icon is acquired, and in the process that the style icon is dragged, And determining, according to the movement track of the style icon on the user interface, the at least one target object to be classified, and after determining the at least one target object, transferring the at least one target object to be classified to the directory where the style icon is located.
  • the solution can determine the target object by categorizing at least one target object to be classified according to the obtained trajectory of the style icon on the user interface.
  • the click event can be triggered by pressing the screen, after the style icon is acquired, at least one target object is determined according to the movement trajectory of the style icon, and at least one target object to be classified is transferred, and the pair is realized.
  • the target object is categorized. Therefore, by using the solution provided by the embodiment of the present application, multiple icons (or files) can be selected and classified at one time to implement classification of at least one target object. Triggering is simple while avoiding misuse and improving the categorization efficiency of files or icons.
  • the solution of the first embodiment provided by the present application solves the problem that the prior art needs to perform multiple times of dragging or clicking on the user interface to classify multiple target objects displayed in the user interface.
  • Classes technical problems that result in inefficient classification of target objects.
  • step S33 determining at least one target object to be classified according to the movement trajectory of the style icon on the user interface may include the following steps:
  • Step S331 acquiring a target object that the style icon sequentially passes in the movement track.
  • the user drags the style icon to move on the user interface to generate a movement track, and the plurality of target objects through which the movement track passes may be determined according to the movement track of the style icon.
  • the above embodiment of the present invention is described in detail with the user interface being the user interface on the smartphone and the operation event being a click event.
  • the smart phone detects the click event triggered by the user pressing the mobile phone screen, draws the folder icon, and displays the obtained folder icon on the mobile phone screen, and the user can drag
  • the moving folder icon generates a moving track, and acquires icon 1, icon 2, icon 3, and icon 4 through which the moving track passes.
  • Step S333 if the coordinate position of any one or more target objects through which the style icon passes is within the categorization area, determining that the target object within the categorization area is the target object to be categorized, or if the target object If the coincidence degree of the collation area corresponding to the style icon exceeds a predetermined threshold, the target object is determined to be the target object to be classified.
  • the categorization area is an area range defined by the display coordinates of the style icon in the user interface.
  • the categorization area may be a display area range of a style icon, or may be a predetermined area range larger than the style icon.
  • the style icon passes any one of the target objects, if the coordinate position of the target object is within the categorization area of the style icon, or the coordinate position of the target object and the categorization area of the style icon If the coincidence exceeds a predetermined threshold, it can be determined that the target object is the target object to be classified.
  • the above embodiment of the present invention is described in detail with the user interface being the user interface on the smartphone and the operation event being a click event.
  • the mobile phone screen can be pressed in a blank position of the user interface, and the smart phone detects the click event triggered by the user pressing the mobile phone screen.
  • the folder icon is drawn, and the obtained folder icon is displayed on the screen of the mobile phone, and the user can generate a movement track by dragging the folder icon to obtain the icon 1, icon 2, icon 3 and icon 4, which are sequentially passed by the movement track.
  • the icon of the folder passes the icon 1, it is determined that the icon 1 is in the categorization area of the folder icon, and then the icon 1 is determined to be an icon to be classified; when the icon of the folder passes the icon 2, the icon 2 and the folder are determined. If the coincidence degree of the categorization area of the icon exceeds a predetermined threshold, it is determined that the icon 2 is an icon to be classified; when the folder icon passes the icon 3, it is determined that the icon 3 is not in the categorization area of the folder icon, and the icon 3 is If the coincidence degree of the collation area of the folder icon does not exceed the predetermined threshold, it is determined that the icon 3 is not an icon to be classified.
  • the above method further includes:
  • Step S37 if it is detected that the staying time of the target icon staying in the target object within the categorization area exceeds a predetermined threshold, it is determined that the target object within the categorization area is the target object to be classified.
  • the above predetermined threshold may be 300 ms.
  • the style icon is at the display position of the target object If the stay position exceeds 300ms, it is determined that the target object is the target object to be classified, and the misoperation of the style icon when passing other icons can be avoided.
  • the above embodiment of the present invention is described in detail with the user interface being the user interface on the smartphone and the operation event being a click event.
  • the mobile phone screen can be pressed in a blank position of the user interface, and the smart phone detects the click event triggered by the user pressing the mobile phone screen.
  • the folder icon is drawn, and the obtained folder icon is displayed on the screen of the mobile phone, and the user can generate a movement track by dragging the folder icon to obtain the icon 1, icon 2, icon 3 and icon 4, which are sequentially passed by the movement track.
  • the folder icon passes the icon 1, it is determined that the icon 1 is in the categorization area of the folder icon, and the dwell time of the folder icon at the icon 1 is 350 ms, then it is determined that the icon 1 is an icon to be classified;
  • the icon of the clip passes the icon 2, it is determined that the coincidence degree of the icon 2 and the collation area of the folder icon exceeds a predetermined threshold, and the dwell time of the folder icon at the icon 2 is 250 ms, determining that the icon 2 is not an icon to be classified .
  • step S33 determining at least one target object to be classified according to the movement trajectory of the style icon on the user interface may further include the following steps:
  • step S335 in the process of the style icon being dragged, the icon coordinates of the style icon at different display positions are obtained.
  • Step S337 determining a corresponding categorization area based on each icon coordinate to obtain a categorization area set.
  • the position coordinates of the style icon on the user interface can be obtained in real time, and according to the position coordinate of the style icon determined in real time, the movement path of the style icon is obtained.
  • Step S339 after reading the display coordinates of each target object displayed in the user interface, matching the set of the classified regions with the display coordinates of each target object, and acquiring any one or more categories in the set of the classified regions.
  • the display coordinates of the region match as at least one target object to be classified.
  • the display coordinates of each target object in the user interface can be read, and the display coordinates of each target object are matched with the set of classification regions of the style icon, if the display coordinates of any one of the target objects If any one of the collation areas of the style icon matches the collation area, and the staying position of the style icon at the display position of the target object exceeds 300 ms, it is determined that the target object is an icon to be classified.
  • the user interface being the user interface on the smartphone and the operation event being a click event.
  • the smart phone detects the click event triggered by the user pressing the mobile phone screen, draws the folder icon, and displays the obtained folder icon on the mobile phone screen, and the user can drag
  • the moving folder icon generates a moving track, obtains a collection of the classified area of the folder icon during the dragging process, and matches the display coordinates of all icons on the user interface with the collection of the classified area to obtain a matching success icon, that is, icon 1 , icon 2, icon 3 and icon 4, and the dwell time of the folder icon in icon 1, icon 2, icon 3 and icon 4 exceeds 300 ms, then it is determined that icon 1, icon 2, icon 3 and icon 4 are to be classified icon.
  • the operation event includes any one or more of the following events: a click event, a sliding event, and a drag event.
  • the user can trigger a sliding event by sliding in a counterclockwise circle on the smartphone screen and generate a style icon at the center of the circle formed by the user sliding.
  • the above embodiment of the present invention is described in detail with the user interface being the user interface on the smartphone and the operation event being a click event.
  • the user interface being the user interface on the smartphone
  • the operation event being a click event.
  • FIG. 4(b) when the user slides in a counterclockwise circle at a blank position on the smartphone screen, a slide event is triggered, and the smartphone acquires the folder icon and displays the center position of the circle formed by the slide.
  • the above method further includes:
  • Step S391 when an operation event is detected at a blank position of the user interface, the coordinates of the blank position are acquired, and the style icon is drawn based on the coordinates of the blank position, wherein the coordinate of the blank position is the initial coordinate of the style icon.
  • Step S393 When the style icon is dragged, a motion callback event is triggered, and the motion callback event is used to move the style icon along the movement track, and the coordinates of the style icon are dynamically changed according to the movement track by using the initial coordinate as an initial value.
  • the click event is triggered, and the folder icon appears at the position pressed by the user, and
  • the user's pressing position is the initial position of the folder icon.
  • the user triggers a touch call event, and the style icon is redrawn according to the position of the user dragging the style icon, and the style icon is dragged along the user.
  • the track moves.
  • the above embodiment of the present invention is described in detail with the user interface being the user interface on the smartphone and the operation event being a click event.
  • the click event is triggered, the folder icon is drawn at the position pressed by the user, and the position pressed by the user is taken as the initial position of the folder icon, and
  • the mobile callback event is triggered, and the style icon is redrawn, so that the user sees that the style icon moves following the movement of the user gesture.
  • step S31 when an operation event is detected at any position of the user interface, Obtaining a style icon can include the following steps:
  • Step S311 When an operation event is detected, the position coordinates of the operation event occurring in the user interface are read.
  • Step S313 determining, according to the position coordinate of the detected operation event, whether the icon includes an icon in the predetermined area of the position coordinate, and if the icon is included, the icon is used as the style icon, and the object corresponding to the icon is the target object to be classified.
  • Step S315 When the style icon is dragged, a motion callback event is triggered, and the motion callback event is used to move the style icon along the movement track, and the coordinates of the style icon dynamically change based on the movement track.
  • the location coordinates of the user pressing the screen are read, and if the predetermined area of the position coordinate includes an icon, that is, the user presses the non-blank position of the screen, The icon is used as a style icon, and the object corresponding to the icon is determined to be a target object to be classified.
  • the style icon is redrawn, and the style icon moves along the user drag track.
  • the above embodiment of the present invention is described in detail with the user interface being the user interface on the smartphone and the operation event being a click event.
  • the click event is triggered, the folder icon is drawn at the position pressed by the user, and the position pressed by the user is taken as the initial position of the folder icon, and
  • the mobile callback event is triggered, and the style icon is redrawn, so that the user sees that the style icon moves following the movement of the user gesture.
  • the above method further includes:
  • Step S395 after the icon is included in the predetermined area of the determined position coordinate, the determined icon is enlarged, and the enlarged icon is used as the style icon.
  • the above embodiment of the present invention is described in detail with the user interface being the user interface on the smartphone and the operation event being a click event.
  • the click event is triggered, and if the position pressed by the user is the same as the display position of the icon 1, the icon 1 is enlarged, and the icon 1 is determined to be the style icon.
  • the above method further includes:
  • Step S397 If no icon is detected in the predetermined area of the position coordinate, the style icon is drawn based on the position coordinate of the detected operation event, wherein the position coordinate of the detected operation event is the initial coordinate of the style icon.
  • the location coordinates of the user pressing the screen are read, and if the predetermined area of the position coordinate does not include an icon, that is, the user presses the blank position of the screen, then The folder icon will be drawn as a style icon.
  • the above embodiment of the present invention is described in detail with the user interface being the user interface on the smartphone and the operation event being a click event.
  • the operation event being a click event.
  • FIG. 4(b) when the user presses a blank position of the smartphone screen, a click event is triggered, and a folder icon is drawn at a position pressed by the user.
  • step S35 transferring at least one target object to be classified to the directory where the style icon is located may include the following steps:
  • Step S351 Acquire a directory address saved by the target object corresponding to the style icon.
  • step S353 the storage address of the target object to be classified is set as the directory address.
  • At least one target object to be classified may be transferred to the target address after the storage directory address of the style icon is obtained.
  • the above embodiment of the present invention is described in detail with the user interface being the user interface on the smartphone and the operation event being a click event.
  • the user when the user needs to classify icon 1, icon 2, icon 3 and icon 4, the user can press the screen of the smartphone in the blank position of the user interface, and the position pressed by the user on the user interface.
  • the folder icon appears, and the user can drag the folder icon through the icon 1, icon 2, icon 3 and icon 4 to be classified, and determine the four icons to be classified, after obtaining the directory address corresponding to the folder icon. , the four icons to be classified are transferred to the directory address corresponding to the folder icon.
  • the method may further include the following steps:
  • step S355 a categorization icon is displayed in the user interface, and an icon of the target object to be categorized is displayed as a sub-icon in the categorization icon.
  • the above classification icon may be a style icon.
  • the categorization icon may be displayed in the user interface, and the icon of the at least one target object to be categorized is displayed as a sub-icon in the categorization icon in the categorization icon.
  • the above embodiment of the present invention is described in detail with the user interface being the user interface on the smartphone and the operation event being a click event.
  • a folder icon is displayed on the user interface, and icon 1, icon 2, icon 3, and icon 4 to be classified are displayed as sub-icons of the folder icon in the folder icon.
  • Step S357 after the classification icon is opened, the classification icon is displayed in the user interface according to a predetermined display area, wherein the sub icons are sequentially displayed in the display area.
  • the categorization icon is displayed in a designated area of the user interface, and the icon to be categorized is displayed in the display area of the folder icon.
  • the above embodiment of the present invention is described in detail with the user interface being the user interface on the smartphone and the operation event being a click event.
  • the folder icon is displayed at the center of the user interface, and icon 1, icon 2, icon 3, and icon 4 are displayed in the folder icon. In the display area.
  • the order of the sub-icons displayed in the display area of the folder icon can be determined according to the order of the sub-icons according to the movement trajectory of the folder icon.
  • Step S359 if the sub-icon in the display area is selected and dragged outside the display area, it is determined that the sub-icon is moved out of the directory.
  • the user can select any sub-icon by clicking the sub-icon in the display area of the folder icon, and drag the sub-icon out of the display area of the folder icon by dragging and dropping, thereby The object of the child icon is deleted from the directory corresponding to the folder icon.
  • the above embodiment of the present invention is described in detail with the user interface being the user interface on the smartphone and the operation event being a click event.
  • the folder icon is displayed at the center of the user interface, and icon 1, icon 2, icon 3, and icon 4 are displayed in the folder icon.
  • the user can delete the icon 1 from the folder icon by dragging the icon 1 out of the folder icon.
  • the method for classifying the data may be applied to a hardware environment formed by the computer terminal 10 as shown in FIG. 2 .
  • the computer terminal 10 is connected to other computer terminals through a network, including but not limited to: a wide area network, a metropolitan area network, or a local area network.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • a storage medium such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • a method embodiment of data categorization is also provided, it being noted that the steps illustrated in the flowchart of the figures may be performed in a computer system such as a set of computer executable instructions, and Although the logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
  • FIG. 5 is a flowchart of a method for data classification according to Embodiment 2 of the present application. As shown in FIG. 5, the method includes the following steps:
  • Step S51 when the touch screen senses a corresponding touch operation, a style icon is generated at any position of the touch screen.
  • the touch screen may be a screen on a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, a handheld computer, or the like, or may be a screen on the computer terminal, and the touch operation may be triggered by the user on the touch screen.
  • Click events, slide events, drag events, etc. for example, when the user presses the touch screen of the smart phone, a click event can be triggered, and the user can trigger a sliding event when sliding on a touch screen circular or triangular track on the touch screen of the smart phone, the above style icon It may be an icon generated after the touch operation is detected or any one of the icons displayed on the touch screen.
  • the touch screen of the smart phone can sense the click operation of the user and trigger the click event.
  • a style icon is obtained, and a style icon is displayed at a position pressed by the user in the user interface, and the style icon can be moved following the movement of the user gesture.
  • the touch screen being the screen of the smartphone and the touch operation being the click operation.
  • the touch screen of the smart phone can be pressed in a blank position of the user interface, and the touch screen of the smart phone senses the click operation of the user, triggering Click on the event to get the folder icon (the folder icon is one of the representations of the above style icons) and display the folder icon on the touch screen.
  • Step S53 if the style icon is dragged in the touch screen, the at least one target object to be classified is determined according to the movement trajectory of the style icon.
  • the above target object may be an icon or a file that the user wants to classify.
  • the movement track on the user interface may be generated by dragging the style icon on the touch screen, and determining that any one of the target objects on the user interface through which the movement icon of the style icon passes is The target object to be classified.
  • the touch screen being the screen of the smart phone and the touch operation being the click operation.
  • the touch screen of the smart phone when the user needs to classify the data, the touch screen of the smart phone can be pressed in a blank position of the user interface, and the touch screen of the smart phone senses the click operation of the user. Triggering a click event, obtaining a folder icon, and displaying a folder icon on the touch screen, the user can sequentially drag the folder icon on the touch screen through icon 1, icon 2, icon 3 and icon 4 on the user interface, according to the folder The movement track of the icon on the user interface determines the four icons to be classified, namely icon 1, icon 2, icon 3 and icon 4.
  • Step S55 displaying an icon of the at least one target object to be classified under the directory of the style icon.
  • At least one target object to be classified is transferred to a directory of the style icon.
  • the touch screen being the screen of the smart phone and the touch operation being the click operation.
  • the touch screen of the smart phone can be pressed in a blank position of the user interface, and the touch screen of the smart phone senses the click operation of the user.
  • Triggering a click event, obtaining a folder icon, and displaying a folder icon on the touch screen the user can sequentially drag the folder icon on the touch screen through icon 1, icon 2, icon 3 and icon 4 on the user interface, according to the folder
  • the movement track of the icon on the user interface determines the four icons to be classified, namely icon 1, icon 2, icon 3 and icon 4, and transfers icon 1, icon 2, icon 3 and icon 4 to the folder icon In the directory where you are, the folder icon is displayed on the user interface.
  • the style icon is generated at any position of the touch screen, and if the style icon is dragged in the touch screen, And determining, according to the movement trajectory of the style icon, at least one target object to be classified, and after determining the at least one target object, displaying an icon of the at least one target object to be classified under the directory of the style icon.
  • the solution can determine the target object by categorizing at least one target object to be classified according to the obtained trajectory of the style icon on the user interface.
  • the scheme can use the drag mode to select multiple icons (or files) to be classified at one time, to classify at least one target object, trigger simple and avoid misoperation, and improve the classification efficiency of files or icons.
  • step S53 determining the at least one target object to be classified according to the movement trajectory of the style icon comprises the following steps:
  • Step S531 in a case where the style icon is dragged to the display position of any one of the touch screens, if the degree of coincidence of the icon and the style icon exceeds a predetermined threshold, it is determined that the icon is the selected target object to be classified.
  • the categorization area may be a display area range of a style icon, or may be a predetermined area range larger than the style icon.
  • the user can drag the style icon on the touch screen to move on the user interface, generate a movement track, and determine a plurality of icons that the movement track passes according to the movement track of the style icon, whenever the user is on the touch screen.
  • determining whether the coincidence degree of the style icon and any one of the icons exceeds a predetermined threshold, if it is greater than a predetermined threshold, and the staying time of the style icon at the icon exceeds The preset threshold is 300 ms, and it is determined that the target object is the target object to be classified.
  • the touch screen being the screen of the smart phone and the touch operation being the click operation.
  • the touch screen of the smart phone can be pressed in a blank position of the user interface, and the touch screen of the smart phone senses the click operation of the user.
  • Triggering a click event, obtaining a folder icon, and displaying a folder icon on the touch screen the user can drag the folder icon on the touch screen in sequence through icon 1, icon 2, icon 3 and icon 4 on the user interface, in the folder
  • the icon is dragged to the display position of the icon 1
  • the icon 1 and the folder icon coincidence exceeds a predetermined threshold, and the dwell time of the folder icon at the icon 1 is 350 ms, it is determined that the icon 1 is an icon to be classified
  • the folder icon is dragged to the display position of the icon 2
  • the icon 2 and the folder icon overlap exceeds a predetermined threshold, and the dwell time of the file at the icon 2 is 250 ms, it is determined that the icon 2 is not an icon to be classified
  • the folder icon is dragged to the display position of the icon 3
  • the icon 3 and the folder icon coincidence degree does not exceed the predetermined threshold, it is determined that the icon 3 is not an icon to be classified.
  • the style icon includes any one of the following icons: any one of the icons currently displayed in the touch screen, an icon drawn at a position where the touch occurs in the touch screen, and an icon drawn at a default position in the touch screen.
  • the style icon when the user presses the blank position of the touch screen, the style icon may be drawn at a blank position pressed by the touch screen user, and when the user presses the position of the icon currently displayed by the touch screen, the icon may be used as the style icon.
  • the touch screen being the screen of the smart phone and the touch operation being the click operation.
  • the touch screen of the smart phone can be pressed in the blank position of the user interface, and the touch screen of the smart phone senses the click operation of the user, triggers the click event, and acquires the file. Folder icons and draw folder icons on the touch screen.
  • the touch operation includes any one or more of the following operations: a click operation, a slide operation, and a drag operation.
  • the user can slide through a counterclockwise circle on the touch screen of the smartphone, the touch screen senses a sliding operation to trigger a sliding event, and generates a style icon at a center position of the circle formed by the user sliding.
  • the touch screen being the screen of the smart phone and the touch operation being the click operation.
  • the touch screen senses the sliding operation to trigger the sliding event, and the smart phone acquires the folder icon and displays the sliding on the touch screen.
  • the above method further includes:
  • Step S57 When the touch screen senses a corresponding touch operation, and the pressure sensed by the position where the touch operation occurs reaches a critical value, a style icon is generated.
  • the user can trigger a click event by pressing the touch screen of the smart phone after the pressing pressure of the user pressing the touch screen reaches a critical value, thereby generating a style icon at a position where the user presses the touch screen.
  • the touch screen being the screen of the smart phone and the touch operation being the click operation.
  • the touch screen of the smart phone may be pressed in a blank position of the user interface, and after the touch screen senses that the pressure pressed by the user reaches a critical value, the click event is triggered. Get the folder icon and generate a folder icon on the touch screen.
  • step S55 the icon of the at least one target object to be classified is displayed in the directory of the style icon, including the following steps:
  • Step S551 if the action of detecting the drag style icon ends, moving the icon of the at least one target object to be classified to the directory of the style icon, and deleting the icon of the at least one target object to be classified in the touch screen.
  • At least one icon to be classified is moved to the directory of the style icon, and the user interface on the touch screen is to be classified.
  • the icon is deleted.
  • the touch screen being the screen of the smart phone and the touch operation being the click operation.
  • the touch screen of the smart phone can be pressed in the blank position of the user interface, and the touch screen of the smart phone senses the click operation of the user, triggers the click event, and acquires the file.
  • the icon is displayed, and the folder icon is displayed on the touch screen.
  • the user can determine the icon 1 to be classified by using the icon 1, icon 2, icon 3 and icon 4 on the user interface by dragging the folder icon on the touch screen.
  • the method further includes the following steps:
  • Step S59 after opening the style icon and displaying the icons of all the target objects after the classification, if any of the classified icons are dragged outside the current display area of the style icon, it is determined that the dragged icon is moved out of the directory. And delete the icon of the removed directory in the style icon, and / or display the image of the removed directory in other locations on the touch screen.
  • the user can open the style icon by clicking the style icon displayed on the user interface in the touch screen, and display the style icon in the designated area, by dragging the icon in the display field to the display area on the touch screen.
  • the user can open the style icon by clicking the style icon displayed on the user interface in the touch screen, and display the style icon in the designated area, by dragging the icon in the display field to the display area on the touch screen.
  • drag and drop to the specified location on the touch screen make sure to remove the icon from the directory where the style icon and style icon are located.
  • the touch screen being the screen of the smart phone and the touch operation being the click operation.
  • the folder icon is displayed at the center position of the user interface, and icon 1, icon 2, icon 3, and icon 4 are displayed on the display of the folder icon.
  • the user can delete the icon 1 from the folder icon by dragging the icon 1 out of the folder icon.
  • the order of the sub-icons displayed in the display area of the folder icon may be determined according to the order of the sub-icons according to the movement trajectory of the folder icon. If the number of sub-icons in the style icon exceeds the display area, You will need to scroll through all of them.
  • the method for classifying the data may be applied to a hardware environment formed by the computer terminal 10 as shown in FIG. 2 .
  • the computer terminal 10 is connected to other computer terminals through a network, including but not limited to: a wide area network, a metropolitan area network, or a local area network.
  • the apparatus includes: an obtaining module 61, a determining module 63, and a transferring module 65.
  • the obtaining module 61 is configured to acquire a style icon when an operation event is detected at any position of the user interface.
  • the user interface may be a user interface on a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, a handheld computer, or the like, or may be a user interface on the computer terminal
  • the above operation event may be the user Click events, sliding events, drag events, etc. triggered by the operation on the user interface, for example, when the user presses the screen of the smart phone, the click event can be triggered, and the user can slide the counterclockwise circular track or the triangular track on the screen of the smart phone.
  • the sliding event is triggered, and the above style icon may be an icon drawn after detecting the operation event or an icon displayed on any one of the user interfaces.
  • the click event may be triggered, and the smart phone detects the click event. Thereafter, a style icon is displayed at a position pressed by the user in the user interface, and the style icon can be moved following the movement of the user gesture.
  • the above embodiment of the present invention is described in detail with the user interface being a user interface on a smartphone and the operation event being a click event as an example.
  • the screen of the smartphone can be pressed in a blank position of the user interface, and the smart phone detects the click triggered by the user pressing the screen of the mobile phone. After the event, draw a folder icon (which is one of the expressions of the above style icons) and display the obtained folder icon on the phone screen.
  • the determining module 63 is configured to determine at least one target object to be classified according to a movement trajectory of the style icon on the user interface during the dragging of the style icon.
  • the above target object may be an icon or a file that the user wants to classify.
  • the movement track can be generated by dragging the style icon on the user interface, and any target object through which the movement path of the style icon passes is determined to be the target object to be classified.
  • the above embodiment of the present invention is described in detail with the user interface being the user interface on the smartphone and the operation event being a click event.
  • the mobile phone screen can be pressed in a blank position of the user interface, and the smart phone detects the click event triggered by the user pressing the mobile phone screen.
  • the folder icon is drawn, and the obtained folder icon is displayed on the screen of the mobile phone.
  • the user can sequentially drag the folder icon through icon 1, icon 2, icon 3 and icon 4, according to the folder icon on the user interface.
  • the movement track determines the four icons to be classified, namely icon 1, icon 2, icon 3 and icon 4.
  • the transfer module 65 is configured to transfer at least one target object to be classified to a directory where the style icon is located.
  • At least one target object to be classified may be transferred to a directory in which the style icon is located.
  • the above embodiment of the present invention is described in detail with the user interface being the user interface on the smartphone and the operation event being a click event.
  • the mobile phone screen can be pressed in a blank position of the user interface, and the smart phone detects the click event triggered by the user pressing the mobile phone screen.
  • the folder icon is drawn, and the obtained folder icon is displayed on the screen of the mobile phone.
  • the user can sequentially drag the folder icon through icon 1, icon 2, icon 3 and icon 4, according to the folder icon on the user interface.
  • the movement track determine the four icons to be classified, namely icon 1, icon 2, icon 3 and icon 4, and transfer icon 1, icon 2, icon 3 and icon 4 to the directory where the folder is located, the file
  • the clip icon is displayed on the user interface.
  • the style icon is acquired, and in the process that the style icon is dragged, And determining, according to the movement track of the style icon on the user interface, the at least one target object to be classified, and after determining the at least one target object, transferring the at least one target object to be classified to the directory where the style icon is located.
  • the solution can determine the target object by categorizing at least one target object to be classified according to the obtained trajectory of the style icon on the user interface.
  • the new folder operation can be triggered by pressure pressing, after the style icon is acquired, at least one target object can be determined according to the movement track of the style icon, and at least one target object to be classified is transferred.
  • the purpose of categorizing the target object is achieved. Therefore, by using the solution provided by the embodiment of the present application, multiple icons (or files) can be selected and classified at one time to implement categorization of at least one target object. Class, trigger simple and avoid misuse, improve the classification efficiency of files or icons.
  • the solution of the foregoing embodiment 3 provided by the present application solves the problem that the prior art needs to perform multiple times of dragging or clicking on the user interface to classify multiple target objects displayed in the user interface.
  • the determining module 63 may include: a first obtaining submodule and a first determining submodule.
  • the first obtaining sub-module is configured to acquire a target object that the style icon sequentially passes in the moving track; the first determining sub-module is configured to: if the coordinate position of any one or more target objects that the style icon passes is in the classified area If the target object within the categorization area is the target object to be categorized, or if the coincidence degree of the categorization area corresponding to the icon of the target object and the style icon exceeds a predetermined threshold, determining that the target object is to be returned The target object of the class; wherein the categorization area is a range of regions defined by the display coordinates of the style icon in the user interface.
  • the categorization area may be a display area range of a style icon, or may be a predetermined area range larger than the style icon.
  • the user drags the style icon to move on the user interface to generate a movement track, and according to the movement track of the style icon, determines a plurality of target objects through which the movement track passes, and when the style icon passes any one of the targets.
  • the object is located, if the coordinate position of the target object is within the categorization area of the style icon, or the coincidence degree of the coordinate position of the target object and the categorization area of the style icon exceeds a predetermined threshold, it may be determined that the target object is to be classified. target.
  • the foregoing first obtaining sub-module and the first determining sub-module correspond to step S331 to step S333 in the first embodiment, and the two modules are the same as the examples and application scenarios implemented by the corresponding steps, but not It is limited to the content disclosed in the above embodiment 1. It should be noted that the above module can be operated as part of the device in the computer terminal 10 provided in the first embodiment.
  • the above apparatus further includes: a first determining module.
  • the first determining module is configured to determine that the target object that is within the categorization area is the target object to be categorized if it is detected that the staying time of the target icon staying within the categorized area exceeds a predetermined threshold.
  • the above predetermined threshold may be 300 ms.
  • the style icon is at the display position of the target object If the stay position exceeds 300ms, it is determined that the target object is the target object to be classified, and the style icon can be avoided. The misoperation that occurred when he icon.
  • the foregoing first determining module corresponds to the step S37 in the first embodiment, and the module is the same as the example and the application scenario implemented by the corresponding steps, but is not limited to the content disclosed in the first embodiment. It should be noted that the above module can be operated as part of the device in the computer terminal 10 provided in the first embodiment.
  • the determining module 63 may further include: a second obtaining submodule, a second determining submodule and a matching submodule.
  • the second obtaining sub-module is configured to obtain icon coordinates of the style icon at different display positions during the dragging of the style icon; the second determining sub-module is configured to determine a corresponding sorting area based on each icon coordinate, and obtain a matching region set; the matching submodule is configured to match the display region coordinates of each target object after reading the display coordinates of each target object displayed in the user interface, and obtain and classify the region in the collection
  • the display coordinates of any one or more of the collation areas are matched as at least one target object to be classified.
  • the position coordinates of the style icon on the user interface can be obtained in real time, and the return of the style icon on the movement track is determined according to the position coordinate of the style icon determined in real time.
  • the class area reads the display coordinates of each icon in the user interface, and matches the display coordinates of each icon with the position coordinates of the style icon. If the display coordinates of any icon match the position coordinates of the style icon, the icon is determined. For the icon to be classified.
  • the foregoing second obtaining sub-module, the second determining sub-module and the matching sub-module correspond to the steps S335 to S339 in the first embodiment, and the examples and application scenarios implemented by the three modules and the corresponding steps. The same, but not limited to, the content disclosed in the above embodiment 1. It should be noted that the above module can be operated as part of the device in the computer terminal 10 provided in the first embodiment.
  • the operation event includes any one or more of the following events: a click event, a sliding event, and a drag event.
  • the user can trigger a sliding event by sliding in a counterclockwise circle on the smartphone screen and generate a style icon at the center of the circle formed by the user sliding.
  • the above embodiment of the present invention is described in detail with the user interface being the user interface on the smartphone and the operation event being a click event.
  • the user interface being the user interface on the smartphone
  • the operation event being a click event.
  • FIG. 4(b) when the user slides in a counterclockwise circle at a blank position on the smartphone screen, a slide event is triggered, and the smartphone acquires the folder icon and displays the center position of the circle formed by the slide.
  • the above apparatus further includes: a drawing module and a dragging module.
  • the drawing module is configured to obtain a blank position when an operation event is detected in a blank position of the user interface Coordinates, and draws a style icon based on the coordinates of the blank position, wherein the coordinates of the blank position are the initial coordinates of the style icon; the drag module is used to trigger the move callback event when the style icon is dragged, and the move callback event is used to style The icon moves along the movement trajectory, and the coordinates of the style icon dynamically change according to the movement trajectory with the initial coordinates as the initial value.
  • the click event is triggered, and the folder icon appears at the position pressed by the user, and
  • the user's pressing position is the initial position of the folder icon.
  • the user triggers a touch call event, and the style icon is redrawn according to the position of the user dragging the style icon, and the style icon is dragged along the user.
  • the track moves.
  • the above-mentioned drawing module and the dragging module correspond to the steps S391 to S393 in the first embodiment, and the two modules are the same as the example and the application scenario implemented by the corresponding steps, but are not limited to the above-mentioned first embodiment.
  • the obtaining module 61 may include: a reading sub-module, a determining sub-module and a drag sub-module.
  • the reading sub-module is configured to read a position coordinate of an operation event occurring in the user interface when the operation event is detected; and the determining sub-module is configured to determine, within a predetermined area of the position coordinate, based on the position coordinate of the detected operation event. Whether the icon is included, if the icon is included, the icon is used as the style icon, and the object corresponding to the icon is the target object to be classified; the drag sub-module is used to trigger the mobile callback event when the style icon is dragged, and move the callback The event is used to move the style icon along the movement trajectory, and the coordinates of the style icon dynamically change based on the movement trajectory.
  • the location coordinates of the user pressing the screen are read, and if the predetermined area of the position coordinate includes an icon, that is, the user presses the non-blank position of the screen, The icon is used as a style icon, and the object corresponding to the icon is determined to be a target object to be classified.
  • the style icon is redrawn, and the style icon moves along the user drag track.
  • the determining sub-module and the drag sub-module are corresponding to steps S311 to S313 in the first embodiment, and the three modules are the same as the examples and application scenarios implemented in the corresponding steps. However, it is not limited to the contents disclosed in the first embodiment. It should be noted that the above module can be operated as part of the device in the computer terminal 10 provided in the first embodiment.
  • the above apparatus further includes: an amplification module.
  • the zooming module is configured to enlarge the determined icon after the icon is included in the predetermined area of the determined position coordinate, and use the enlarged icon as the style icon.
  • the above-mentioned amplifying module corresponds to the step S395 in the first embodiment, and the module is the same as the example and the application scenario implemented by the corresponding steps, but is not limited to the content disclosed in the first embodiment. It should be noted that the above module can be operated as part of the device in the computer terminal 10 provided in the first embodiment.
  • the above apparatus further includes: a drawing module.
  • the drawing module is configured to draw a style icon based on the position coordinates of the detected operation event, if the icon is not detected in the predetermined area of the position coordinate, wherein the position coordinate of the detected operation event is the initial coordinate of the style icon.
  • the location coordinates of the user pressing the screen are read, and if the predetermined area of the position coordinate does not include an icon, that is, the user presses the blank position of the screen, then The folder icon will be drawn as a style icon.
  • the above-mentioned drawing module corresponds to the step S397 in the first embodiment, and the module is the same as the example and the application scenario implemented by the corresponding steps, but is not limited to the content disclosed in the first embodiment. It should be noted that the above module can be operated as part of the device in the computer terminal 10 provided in the first embodiment.
  • the transfer module 65 may include: a third acquisition submodule and a setting submodule.
  • the third obtaining submodule is configured to obtain a directory address saved by the target object corresponding to the style icon; and the setting submodule is configured to set a storage address of the target object to be classified as a directory address.
  • At least one target object to be classified may be transferred to the target address after the storage directory address of the style icon is obtained.
  • step S351 to step S353 in the first embodiment correspond to step S351 to step S353 in the first embodiment, and the two modules are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the above.
  • the content disclosed in the first embodiment It should be noted that the above module can be operated as part of the device in the computer terminal 10 provided in the first embodiment.
  • the foregoing apparatus may further include: a first display module, a second display module, and a deletion module.
  • the first display module is configured to display a classification icon in the user interface, and an icon of the target object to be classified The sub-icon is displayed in the categorization icon; the second display module is configured to display the categorization icon in the user interface according to the predetermined display area after the categorization icon is opened, wherein the sub-icons are sequentially displayed in the display area.
  • the delete module is used to determine that the child icon is moved out of the directory if the child icon in the display area is selected and dragged outside the display area.
  • the above classification icon may be a style icon.
  • the categorization icon may be displayed in the user interface, and the icon of the at least one target object to be classified is used as a sub-icon in the categorization icon, displayed in the categorization icon, and the user clicks
  • the categorization icon is displayed in a specified area of the user interface, and the icon to be categorized is displayed in the display area of the folder icon, and the user can click on the display area of the folder icon.
  • the sub icon selects any sub icon, and drags the sub icon out of the display area of the folder icon by dragging and dropping, thereby deleting the object of the sub icon from the directory corresponding to the folder icon.
  • the order of the sub-icons displayed in the display area of the folder icon may be determined according to the order of the sub-icons according to the movement trajectory of the folder icon. If the number of sub-icons in the style icon exceeds the display area, Show all by scrolling.
  • first display module, the second display module, and the deletion module correspond to steps S355 to S359 in the first embodiment, and the three modules are the same as the examples and application scenarios implemented by the corresponding steps, but It is not limited to the contents disclosed in the above embodiment 1. It should be noted that the above module can be operated as part of the device in the computer terminal 10 provided in the first embodiment.
  • the device includes: a generating module 71, a determining module 73 and a display module 75.
  • the generating module 71 is configured to generate a style icon at any position of the touch screen when the touch screen senses a corresponding touch operation.
  • the touch screen may be a screen on a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, a handheld computer, or the like, or may be a screen on the computer terminal, and the touch operation may be triggered by the user on the touch screen.
  • Click events, slide events, drag events, etc. for example, when the user presses the touch screen of the smart phone, a click event can be triggered, and the user can trigger a sliding event when sliding on a touch screen circular or triangular track on the touch screen of the smart phone, the above style icon It may be an icon generated after the touch operation is detected or any one of the icons displayed on the touch screen.
  • the touch screen of the smart phone can sense the click operation of the user, trigger the click event, obtain the style icon, display the style icon in the position pressed by the user in the user interface, and the style icon can follow the user.
  • the movement of the gesture moves.
  • the touch screen being the screen of the smartphone and the touch operation being the click operation.
  • the touch screen of the smart phone can be pressed in a blank position of the user interface, and the touch screen of the smart phone senses the click operation of the user, triggering Click on the event to get the folder icon (the folder icon is one of the representations of the above style icons) and display the folder icon on the touch screen.
  • the determining module 73 is configured to determine at least one target object to be classified according to the movement trajectory of the style icon if the style icon is dragged in the touch screen.
  • the above target object may be an icon or a file that the user wants to classify.
  • the movement track on the user interface may be generated by dragging the style icon on the touch screen, and determining that any one of the target objects on the user interface through which the movement icon of the style icon passes is The target object to be classified.
  • the touch screen being the screen of the smart phone and the touch operation being the click operation.
  • the touch screen of the smart phone when the user needs to classify the data, the touch screen of the smart phone can be pressed in a blank position of the user interface, and the touch screen of the smart phone senses the click operation of the user. Triggering a click event, obtaining a folder icon, and displaying a folder icon on the touch screen, the user can sequentially drag the folder icon on the touch screen through icon 1, icon 2, icon 3 and icon 4 on the user interface, according to the folder The movement track of the icon on the user interface determines the four icons to be classified, namely icon 1, icon 2, icon 3 and icon 4.
  • the display module 75 is configured to display an icon of the at least one target object to be classified under the directory of the style icon.
  • At least one target object to be classified is transferred to a directory of the style icon.
  • the touch screen being the screen of the smart phone and the touch operation being the click operation.
  • the touch screen of the smart phone can be pressed in a blank position of the user interface, and the touch screen of the smart phone senses the click operation of the user.
  • Triggering a click event, obtaining a folder icon, and displaying a folder icon on the touch screen the user can sequentially drag the folder icon on the touch screen through icon 1, icon 2, icon 3 and icon 4 on the user interface, according to the folder
  • the movement track of the icon on the user interface determines the four icons to be classified, namely icon 1, icon 2, and Mark 3 and icon 4, and transfer icon 1, icon 2, icon 3 and icon 4 to the directory where the folder icon is located, and display the folder icon on the user interface.
  • the style icon is generated at any position of the touch screen, and if the style icon is dragged in the touch screen, And determining, according to the movement trajectory of the style icon, at least one target object to be classified, and after determining the at least one target object, displaying an icon of the at least one target object to be classified under the directory of the style icon.
  • the solution can determine the target object by categorizing at least one target object to be classified according to the obtained trajectory of the style icon on the user interface.
  • the new folder operation can be triggered by pressure pressing, after the style icon is acquired, at least one target object can be determined according to the movement track of the style icon, and at least one target object to be classified is transferred.
  • the purpose of categorizing the target object is achieved. Therefore, by using the solution provided by the embodiment of the present application, multiple icons (or files) can be selected and classified at one time to implement categorization of at least one target object. Class, trigger simple and avoid misuse, improve the classification efficiency of files or icons.
  • the solution of the foregoing embodiment 4 provided by the present application solves the problem that the prior art needs to perform multiple times of dragging or clicking on the user interface to classify a plurality of target objects displayed in the user interface. Classes, technical problems that result in inefficient classification of target objects.
  • the determining module 73 includes: a determining sub-module.
  • the determining submodule is configured to determine, if the style icon is dragged to a display position of any one of the touch screens, if the degree of coincidence of the icon and the style icon exceeds a predetermined threshold, determining that the icon is selected to be classified target.
  • the categorization area may be a display area range of a style icon, or may be a predetermined area range larger than the style icon.
  • the user can drag the style icon on the touch screen to move on the user interface, generate a movement track, and determine a plurality of icons that the movement track passes according to the movement track of the style icon, whenever the user is on the touch screen.
  • determining whether the coincidence degree of the style icon and any one of the icons exceeds a predetermined threshold, if it is greater than a predetermined threshold, and the staying time of the style icon at the icon exceeds The preset threshold is 300 ms, and it is determined that the target object is the target object to be classified.
  • the foregoing determining sub-module corresponds to the step S531 in the first embodiment, and the module is the same as the example and the application scenario implemented by the corresponding steps, but is not limited to the content disclosed in the first embodiment. It should be noted that the above module can be operated as part of the device in the computer terminal 10 provided in the first embodiment.
  • the style icon includes any one of the following icons: any one of the icons currently displayed in the touch screen, an icon drawn at a position where the touch occurs in the touch screen, and an icon drawn at a default position in the touch screen.
  • the style icon when the user presses the blank position of the touch screen, the style icon may be drawn at a blank position pressed by the touch screen user, and when the user presses the position of the icon currently displayed by the touch screen, the icon may be used as the style icon.
  • the touch screen being the screen of the smart phone and the touch operation being the click operation.
  • the touch screen of the smart phone can be pressed in the blank position of the user interface, and the touch screen of the smart phone senses the click operation of the user, triggers the click event, and acquires the file. Folder icons and draw folder icons on the touch screen.
  • the touch operation includes any one or more of the following operations: a click operation, a slide operation, and a drag operation.
  • the user can slide through a counterclockwise circle on the touch screen of the smartphone, the touch screen senses a sliding operation to trigger a sliding event, and generates a style icon at a center position of the circle formed by the user sliding.
  • the touch screen being the screen of the smart phone and the touch operation being the click operation.
  • the touch screen senses the sliding operation to trigger the sliding event, and the smart phone acquires the folder icon and displays the sliding on the touch screen.
  • the foregoing apparatus further includes: a first generation module.
  • the first generation module is configured to generate a style icon when the touch screen senses a corresponding touch operation, and the pressure sensed by the position where the touch operation occurs reaches a critical value.
  • the user can trigger a click event by pressing the touch screen of the smart phone after the pressing pressure of the user pressing the touch screen reaches a critical value, thereby generating a style icon at a position where the user presses the touch screen.
  • the foregoing first generation module corresponds to the step S57 in the first embodiment, and the module is the same as the example and the application scenario implemented by the corresponding steps, but is not limited to the content disclosed in the first embodiment. It should be noted that the above module can be operated as part of the device in the computer terminal 10 provided in the first embodiment.
  • the display module 75 includes: a moving sub-module.
  • the moving sub-module is configured to: if the action of detecting the drag-and-drop style icon ends, move the icon of the at least one target object to be classified to the directory of the style icon, and delete at least one target pair to be classified in the touch screen. Icon icon.
  • At least one icon to be classified is moved to the directory of the style icon, and the user interface on the touch screen is to be classified.
  • the icon is deleted.
  • the above-mentioned mobile sub-module corresponds to the step S551 in the first embodiment, and the module is the same as the example and the application scenario implemented by the corresponding steps, but is not limited to the content disclosed in the first embodiment. It should be noted that the above module can be operated as part of the device in the computer terminal 10 provided in the first embodiment.
  • the display module 75 further includes: deleting the sub-module.
  • the delete sub-module is used to determine the dragged icon after dragging the icon of all the target objects after the style icon is opened and the icons of all the target objects are displayed after being dragged to the outside of the current display area of the style icon.
  • the icon moves out of the directory and deletes the icon of the removed directory in the style icon, and/or displays the image of the removed directory elsewhere in the touch screen.
  • the user can open the style icon by clicking the style icon displayed on the user interface in the touch screen, and display the style icon in the designated area, by dragging the icon in the display field to the display area on the touch screen.
  • the user can open the style icon by clicking the style icon displayed on the user interface in the touch screen, and display the style icon in the designated area, by dragging the icon in the display field to the display area on the touch screen.
  • drag and drop to the specified location on the touch screen make sure to remove the icon from the directory where the style icon and style icon are located.
  • deletion sub-module corresponds to the step S59 in the first embodiment, and the module is the same as the example and the application scenario implemented by the corresponding steps, but is not limited to the content disclosed in the first embodiment. It should be noted that the above module can be operated as part of the device in the computer terminal 10 provided in the first embodiment.
  • Embodiments of the present invention may provide a computer terminal, which may be any one of computer terminal groups.
  • the foregoing computer terminal may also be replaced with a terminal device such as a mobile terminal.
  • the computer terminal may be located in at least one network device of the plurality of network devices of the computer network.
  • the computer terminal may execute the program code of the following steps in the method of data classification: when an operation event is detected at any position of the user interface, the style icon is acquired; according to the movement track of the style icon on the user interface Determining at least one target object to be classified; transferring at least one target object to be classified to a directory in which the style icon is located.
  • FIG. 8 is a structural block diagram of a computer terminal according to an embodiment of the present invention.
  • the computer terminal A may include one or more (only one shown in the figure) processor 81, memory 83, and transmission device 85.
  • the memory 83 can be used to store software programs and modules, such as the method and device corresponding to the data classification in the embodiment of the present invention, and the processor executes the software programs and modules stored in the memory, thereby executing each A functional application and data processing, that is, a method of implementing the above data classification.
  • Memory 83 may include high speed random access memory, and may also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
  • memory 83 may further include memory remotely located relative to the processor, which may be connected to terminal A via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the processor 81 can call the information and the application stored in the memory 83 through the transmission device 85 to perform the following steps: when an operation event is detected at any position of the user interface, the style icon is acquired; in the process of the style icon being dragged Determining at least one target object to be classified according to the movement track of the style icon on the user interface; and transferring at least one target object to be classified to a directory where the style icon is located.
  • the processor 81 may further execute the following program code: acquiring a target object that the style icon sequentially passes in the moving track; and if the coordinate position of any one or more target objects that the style icon passes is in the classified area The target object within the categorization area is determined to be the target object to be categorized, or if the coincidence degree of the categorization area corresponding to the icon of the target object and the style icon exceeds a predetermined threshold, then the target object is determined to be The target object to be classified; wherein the categorization area is a range of regions defined by the display coordinates of the style icon in the user interface.
  • the processor 81 may further execute the following program code: if it is detected that the staying time of the target icon staying within the categorized area exceeds a predetermined threshold, determining the target within the categorized area The object is the target object to be classified.
  • the processor 81 may further execute the following program code: in the process of dragging the style icon, acquiring icon coordinates of the style icon at different display positions; determining a corresponding classification area based on each icon coordinate, Obtaining a collection of classification regions; after reading the display coordinates of each target object displayed in the user interface, matching the collection of the classified regions with the display coordinates of each target object, and obtaining one or more of the collections of the classified regions The display coordinates of the collation area match as at least one target object to be classified.
  • the processor 81 may further execute the following program code: when an operation event is detected in a blank position of the user interface, acquire coordinates of the blank position, and draw a style icon based on the coordinates of the blank position, where the blank position
  • the coordinates are the initial coordinates of the style icon; where, when the style icon is dragged, the trigger moves back The event is called, and the motion callback event is used to move the style icon along the movement track.
  • the coordinates of the style icon are dynamically changed according to the movement track with the initial coordinates as the initial value.
  • the processor 81 may further execute the following program code: when detecting an operation event, reading a position coordinate of an operation event occurring in the user interface; determining a position coordinate by using a position coordinate of the detected operation event as a reference Whether the icon is included in the predetermined area, if the icon is included, the icon is used as the style icon, and the object corresponding to the icon is the target object to be classified; wherein when the style icon is dragged, the mobile callback event is triggered, and the callback is moved. The event is used to move the style icon along the movement trajectory, and the coordinates of the style icon dynamically change based on the movement trajectory.
  • the processor 81 may further execute the following program code: after the icon is included in the predetermined area of the determined position coordinate, the determined icon is enlarged, and the enlarged icon is used as the style icon.
  • the processor 81 may further execute the following program code: if an icon is not detected in a predetermined area of the position coordinate, the style icon is drawn based on the position coordinate of the detected operation event, wherein the detected operation event The position coordinates are the initial coordinates of the style icon.
  • the processor 81 may further execute the following program code: obtain a directory address saved by the target object corresponding to the style icon; and set a storage address of the target object to be classified as a directory address.
  • the processor 81 may further execute the following program code: display a categorization icon in the user interface, and the icon of the target object to be categorized is displayed as a sub icon in the categorization icon; Thereafter, the categorization icon is displayed in the user interface according to a predetermined display area, wherein the sub-icons are sequentially displayed in the display area; if the sub-icons in the display area are selected and dragged to the display area, Then it is determined that the child icon is moved out of the directory.
  • the style icon is obtained, and according to the movement track of the style icon on the user interface, the to-be-categorized is determined.
  • At least one target object after determining at least one target object, transferring at least one target object to be classified to a directory where the style icon is located.
  • the solution can determine the target object by categorizing at least one target object to be classified according to the obtained trajectory of the style icon on the user interface.
  • the new folder operation can be triggered by pressure pressing, after the style icon is acquired, at least one target object can be determined according to the movement track of the style icon, and at least one target object to be classified is transferred.
  • the purpose of categorizing the target object is achieved. Therefore, by using the solution provided by the embodiment of the present application, multiple icons (or files) can be selected and classified at one time to implement categorization of at least one target object. Class, trigger simple and avoid misuse, improve the classification efficiency of files or icons.
  • the solution of the first embodiment provided by the present application solves the problem that the prior art needs to perform multiple times of dragging or clicking on the user interface to classify multiple target objects displayed in the user interface.
  • Classes technical problems that result in inefficient classification of target objects.
  • FIG. 8 is only an illustration, and the computer terminal can also be a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, an applause computer, and a mobile Internet device (Mobile Internet Devices, MID). ), PAD and other terminal devices.
  • FIG. 8 does not limit the structure of the above electronic device.
  • computer terminal 10 may also include more or fewer components (such as a network interface, display device, etc.) than shown in FIG. 8, or have a different configuration than that shown in FIG.
  • Embodiments of the present invention also provide a storage medium.
  • the foregoing storage medium may be used to save the program code executed by the method for data classification provided by Embodiment 1 above.
  • the foregoing storage medium may be located in any one of the computer terminal groups in the computer network, or in any one of the mobile terminal groups.
  • the storage medium is configured to store program code for performing the following steps: when an operation event is detected at any position of the user interface, acquiring a style icon; the process of dragging the style icon Determining at least one target object to be classified according to a movement trajectory of the style icon on the user interface; and transferring at least one target object to be classified to a directory where the style icon is located.
  • the foregoing storage medium is configured to store program code for performing the following steps: acquiring a target object in which the style icon passes in the moving track; if the coordinate position of any one or more target objects through which the style icon passes is Within the categorization area, it is determined that the target object within the categorization area is the target object to be categorized, or if the coincidence degree of the target object corresponding to the categorization area corresponding to the style icon exceeds a predetermined threshold, the target is determined.
  • the object is a target object to be classified; wherein the categorization area is a range of regions defined by the display coordinates of the style icon in the user interface.
  • the foregoing storage medium is configured to store program code for performing the following steps: if it is detected that the staying time of the target icon staying in the target object within the categorization area exceeds a predetermined threshold, determining that the categorization area is The target object within is the target object to be classified.
  • the foregoing storage medium is configured to store program code for performing the following steps: in the process of dragging the style icon, acquiring icon coordinates of the style icon at different display positions; determining corresponding attribution based on each icon coordinate
  • the class area the collection of the classification area is obtained; after reading the display coordinates of each target object displayed in the user interface, the collection of the classification area is matched with the display coordinates of each target object, and any of the collection of the classification area is obtained.
  • the storage medium is configured to store program code for performing the following steps: when an operation event is detected at a blank position of the user interface, acquiring coordinates of the blank position, and drawing a style icon based on the coordinates of the blank position, wherein The coordinates of the blank position are the initial coordinates of the style icon; wherein, when the style icon is dragged, a motion callback event is triggered, and the motion callback event is used to move the style icon along the movement track, and the coordinates of the style icon are initially based on the initial coordinates.
  • the value changes dynamically according to the movement trajectory.
  • the foregoing storage medium is configured to store program code for performing the following steps: when an operation event is detected, reading a position coordinate of an operation event occurring in the user interface; and using a position coordinate of the detected operation event as a reference, Determining whether the icon includes an icon in the predetermined area of the position coordinate. If the icon is included, the icon is used as the style icon, and the object corresponding to the icon is the target object to be classified; wherein, when the style icon is dragged, the mobile callback event is triggered.
  • the move callback event is used to move the style icon along the movement track, and the coordinates of the style icon dynamically change based on the movement track.
  • the storage medium is configured to store program code for performing the following steps: after the icon is included in the predetermined area of the determined position coordinates, the determined icon is enlarged, and the enlarged icon is used as the style icon.
  • the storage medium is configured to store program code for performing the following steps: if an icon is not detected within a predetermined area of the location coordinates, drawing a style icon based on the position coordinates of the detected operation event, wherein The position coordinates of the action event are the initial coordinates of the style icon.
  • the foregoing storage medium is configured to store program code for performing the following steps: acquiring a directory address saved by the target object corresponding to the style icon; and setting a storage address of the target object to be classified as a directory address.
  • the foregoing storage medium is configured to store program code for performing the following steps: displaying a categorization icon in a user interface, and an icon of the target object to be categorized is displayed as a sub icon in the categorization icon; After categorizing the icons, the categorization icons are displayed in the user interface according to a predetermined display area, wherein the sub-icons are sequentially displayed in the display area; if the sub-icons in the display area are selected, and dragged to the display area In addition, it is determined that the child icon is moved out of the directory.
  • the disclosed technical contents may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, unit or module, and may be electrical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and the like. .

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种数据归类的方法和装置。其中,该方法包括:当在用户界面的任意位置检测到操作事件时,获取样式图标(S31);在样式图标被拖动的过程中,根据样式图标在用户界面上的移动轨迹,确定待归类的至少一个目标对象(S33);将待归类的至少一个目标对象转移至样式图标所在的目录下(S35)。该方法解决了现有技术在对用户界面中显示的多个目标对象进行归类时,需要在用户界面上进行多次拖动或者点击才可以完成归类,导致目标对象的归类效率低的技术问题。

Description

数据归类的方法和装置
本申请要求2015年12月18日递交的申请号为201510958667.7、发明名称为“数据归类的方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及数据归类领域,具体而言,涉及一种数据归类的方法和装置。
背景技术
随着触屏设备的广泛使用,人们在触屏设备上使用的应用程序越来越多,如果所有的应用程序都显示在桌面上,用户使用任意一个应用程序查找起来都非常不容易,常常需要将同一类的目标对象(例如文件或者图标)进行归类,放置在同一个文件夹中,方便用户的查找和使用。
在现有的技术中,如图1(a)至图1(c)所示,文件或图片归类方法通常为用户将任意两个图标重叠生成文件夹,再依次拖入其他图标进入文件夹完成归类。但是,如果用户需要将多个图片、文件进行归类,需要拖动多次。例如,如果需要归类6个文件,则至少需要拖动5次。
针对现有技术在对用户界面中显示的多个目标对象进行归类时,需要在用户界面上进行多次拖动或者点击才可以完成归类,导致目标对象的归类效率低的技术问题,目前尚未提出有效的解决方案。
发明内容
本发明实施例提供了一种数据归类的方法和装置,以至少解决现有技术在对用户界面中显示的多个目标对象进行归类时,需要在用户界面上进行多次拖动或者点击才可以完成归类,导致目标对象的归类效率低的技术问题。
根据本发明实施例的一个方面,提供了一种数据归类的方法,包括:当在用户界面的任意位置检测到操作事件时,获取样式图标;在样式图标被拖动的过程中,根据样式图标在用户界面上的移动轨迹,确定待归类的至少一个目标对象;将待归类的至少一个目标对象转移至样式图标所在的目录下。
根据本发明实施例的另一方面,还提供了一种数据归类的方法,包括:当触摸屏感应到相应的触摸操作时,在触摸屏的任意位置生成样式图标;如果在触摸屏中拖拽样式图标,则根据样式图标的移动轨迹,确定待归类的至少一个目标对象;将待归类的至少 一个目标对象的图标显示在样式图标的目录下。
根据本发明实施例的另一方面,还提供了一种数据归类的装置,包括:获取模块,用于当在用户界面的任意位置检测到操作事件时,获取样式图标;确定模块,用于在样式图标被拖动的过程中,根据样式图标在用户界面上的移动轨迹,确定待归类的至少一个目标对象;转移模块,用于将待归类的至少一个目标对象转移至样式图标所在的目录下。
根据本发明实施例的另一方面,还提供了一种数据归类的装置,包括:生成模块,用于当触摸屏感应到相应的触摸操作时,在触摸屏的任意位置生成样式图标;确定模块,用于如果在触摸屏中拖拽样式图标,则根据样式图标的移动轨迹,确定待归类的至少一个目标对象;显示模块,用于将待归类的至少一个目标对象的图标显示在样式图标的目录下。
在本发明实施例中,如果需要对文件或者图标进行归类,可以当在用户界面的任意位置检测到操作事件时,获取样式图标,并在样式图标被拖动的过程中,根据样式图标在用户界面上的移动轨迹,确定待归类的至少一个目标对象,在确定至少一个目标对象之后,将待归类的至少一个目标对象转移至样式图标所在的目录下。本方案可以通过根据获取到的样式图标在用户界面上的移动轨迹确定待归类的至少一个目标对象,实现对目标对象进行归类的目的。
容易注意到,由于可以通过压力按压触发新建文件夹操作,在获取到样式图标之后,可以根据样式图标的移动轨迹确定至少一个目标对象,将确定后的待归类的至少一个目标对象进行转移,实现对目标对象进行归类的目的,因此,通过本申请实施例所提供的方案,可以利用拖动方式,一次性选中多个图标(或文件)进行归类,实现对至少一个目标对象进行归类,触发简单同时避免误操作,提高文件或图标的归类效率。
由此,本申请提供的方案解决了现有技术在对用户界面中显示的多个目标对象进行归类时,需要在用户界面上进行多次拖动或者点击才可以完成归类,导致目标对象的归类效率低的技术问题。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1(a)是根据现有技术的一种数据归类方法的示意图;
图1(b)是根据现有技术的一种数据归类方法的示意图;
图1(c)是根据现有技术的一种数据归类方法的示意图;
图2是根据本申请实施例的一种数据归类的方法的计算机终端的硬件结构框图;
图3是根据本申请实施例一的一种数据归类的方法的流程图;
图4(a)是根据本申请实施例的可选的数据归类的方法的示意图;
图4(b)是根据本申请实施例的可选的数据归类的方法的示意图;
图4(c)是根据本申请实施例的可选的数据归类的方法的示意图;
图4(d)是根据本申请实施例的可选的数据归类的方法的示意图;
图4(e)是根据本申请实施例的可选的数据归类的方法的示意图;
图4(f)是根据本申请实施例的可选的数据归类的方法的示意图;
图5是根据本申请实施例二的一种数据归类的方法的流程图;
图6是根据本申请实施例三的一种数据归类的装置的示意图;
图7是根据本申请实施例四的一种数据归类的装置的示意图;以及
图8是根据本申请实施例的一种计算机终端的结构框图。
具体实施方式
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、***、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
首先,在对本申请实施例进行描述的过程中出现的部分名词或术语适用于如下解释:
Force touch:压力感应,是一种触摸传感器技术,通过Force touch,设备可以感知轻压以及重压的粒度,并调出不同的对应功能。
实施例1
根据本发明实施例,还提供了一种数据归类的方法实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机***中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。
本申请实施例一所提供的方法实施例可以在移动终端、计算机终端或者类似的运算装置中执行。以运行在计算机终端上为例,图2是本发明实施例的一种数据归类的方法的计算机终端的硬件结构框图。如图2所示,计算机终端10可以包括一个或多个(图中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)、用于存储数据的存储器104、以及用于通信功能的传输模块106。本领域普通技术人员可以理解,图2所示的结构仅为示意,其并不对上述电子装置的结构造成限定。例如,计算机终端10还可包括比图2中所示更多或者更少的组件,或者具有与图2所示不同的配置。
存储器104可用于存储应用软件的软件程序以及模块,如本发明实施例中的数据归类的方法对应的程序指令/模块,处理器102通过运行存储在存储器104内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的应用程序的漏洞检测方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至计算机终端10。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
传输装置106用于经由一个网络接收或者发送数据。上述的网络具体实例可包括计算机终端10的通信供应商提供的无线网络。在一个实例中,传输装置106包括一个网络适配器(Network Interface Controller,NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置106可以为射频(Radio Frequency,RF)模块,其用于通过无线方式与互联网进行通讯。
在上述运行环境下,本申请提供了如图3所示的数据归类的方法。图3是根据本发明实施例一的数据归类的方法的流程图,如图3所示,该方法包括如下步骤:
步骤S31,当在用户界面的任意位置检测到操作事件时,获取样式图标。
具体地,上述用户界面可以是智能手机(如Android手机、iOS手机等),平板电脑,掌上电脑等终端设备上的用户界面,也可以是计算机终端上的用户界面,上述操作事件可以是用户在用户界面上进行操作触发的点击事件、滑动事件、拖拽事件等,例如用户按压智能手机的屏幕时可以触发点击事件,用户在智能手机的屏幕上按逆时针圆形轨迹或者三角形轨迹滑动时可以触发滑动事件,上述样式图标可以是检测到操作事件之后绘制的图标或者用户界面上任意一个显示的图标。
在一种可选的方案中,当用户在用户界面的任意位置用力按压智能手机的屏幕,并且压力感应检测到用户按压的压力达到临界点时,可以触发点击事件,智能手机在检测到点击事件之后,在用户界面中用户按压的位置显示样式图标,且样式图标可以跟随用户手势的移动而移动。
例如,以用户界面是智能手机上的用户界面,操作事件是点击事件为例,对本发明上述实施例进行详细说明。如图4(a)和图4(b)所示,当用户需要对数据进行归类时,可以在用户界面的空白位置按压智能手机的屏幕,智能手机在检测到用户按压手机屏幕触发的点击事件之后,绘制文件夹图标(该文件夹图标是上述样式图标的表现形式之一),并在手机屏幕上显示获取到的文件夹图标。
步骤S33,在样式图标被拖动的过程中,根据样式图标在用户界面上的移动轨迹,确定待归类的至少一个目标对象。
具体地,上述目标对象可以是用户想要进行归类的图标或者文件。
在一种可选的方案中,在获取到样式图标之后,可以通过在用户界面上拖动样式图标生成移动轨迹,确定样式图标的移动轨迹经过的任意一个目标对象为待归类的目标对象。
例如,仍以用户界面是智能手机上的用户界面,操作事件是点击事件为例,对本发明上述实施例进行详细说明。如图4(c)和图4(d)所示,当用户需要将对数据进行归类时,可以在用户界面的空白位置按压手机屏幕,智能手机在检测到用户按压手机屏幕触发的点击事件之后,绘制文件夹图标,并在手机屏幕上显示获取到的文件夹图标,用户可以通过拖动文件夹图标依次经过图标1,图标2,图标3和图标4,根据文件夹图标在用户界面上的移动轨迹,确定待归类的4个图标,即图标1,图标2,图标3和图标4。
步骤S35,将待归类的至少一个目标对象转移至样式图标所在的目录下。
在一种可选的方案中,在得到待归类的至少一个目标对象之后,可以将待归类的至 少一个目标对象转移到样式图标所在的目录中。
例如,仍以用户界面是智能手机上的用户界面,操作事件是点击事件为例,对本发明上述实施例进行详细说明。如图4(c)和图4(d)所示,当用户需要对数据进行归类时,可以在用户界面的空白位置按压手机屏幕,智能手机在检测到用户按压手机屏幕触发的点击事件之后,绘制文件夹图标,并在手机屏幕上显示获取到的文件夹图标,用户可以通过拖动文件夹图标依次经过图标1,图标2,图标3和图标4,根据文件夹图标在用户界面上的移动轨迹,确定待归类的4个图标,即图标1,图标2,图标3和图标4,并将图标1,图标2,图标3和图标4转移到文件夹所在的目录中,将文件夹图标显示在用户界面上。
本申请上述实施例一公开的方案中,如果需要对文件或者图标进行归类,可以当在用户界面的任意位置检测到操作事件时,获取样式图标,并在样式图标被拖动的过程中,根据样式图标在用户界面上的移动轨迹,确定待归类的至少一个目标对象,在确定至少一个目标对象之后,将待归类的至少一个目标对象转移至样式图标所在的目录下。本方案可以通过根据获取到的样式图标在用户界面上的移动轨迹确定待归类的至少一个目标对象,实现对目标对象进行归类的目的。
容易注意到,由于可以通过按压屏幕触发点击事件,在获取到样式图标之后,根据样式图标的移动轨迹确定至少一个目标对象,并将确定后的待归类的至少一个目标对象进行转移,实现对目标对象进行归类的目的,因此,通过本申请实施例所提供的方案,可以利用拖动方式,一次性选中多个图标(或文件)进行归类,实现对至少一个目标对象进行归类,触发简单同时避免误操作,提高文件或图标的归类效率。
由此,本申请提供的上述实施例一的方案解决了现有技术在对用户界面中显示的多个目标对象进行归类时,需要在用户界面上进行多次拖动或者点击才可以完成归类,导致目标对象的归类效率低的技术问题。
根据本申请上述实施例,步骤S33,根据样式图标在用户界面上的移动轨迹,确定待归类的至少一个目标对象,可以包括如下步骤:
步骤S331,获取样式图标在移动轨迹中依次经过的目标对象。
在一种可选的方案中,用户拖动样式图标在用户界面上移动,生成移动轨迹,可以根据样式图标的移动轨迹,确定移动轨迹经过的多个目标对象。
例如,仍以用户界面是智能手机上的用户界面,操作事件是点击事件为例,对本发明上述实施例进行详细说明。如图4(c)和图4(d)所示,当用户需要将对数据进行归类 时,可以在用户界面的空白位置按压手机屏幕,智能手机在检测到用户按压手机屏幕触发的点击事件之后,绘制文件夹图标,并在手机屏幕上显示获取到的文件夹图标,用户可以通过拖动文件夹图标生成移动轨迹,获取移动轨迹依次经过的图标1,图标2,图标3和图标4。
步骤S333,如果样式图标所经过的任意一个或多个目标对象的坐标位置处于归类区域之内,则确定处于归类区域之内的目标对象为待归类的目标对象,或者,如果目标对象的图标与样式图标对应的归类区域的重合度超过预定阈值,则确定目标对象为待归类的目标对象。
其中,归类区域为以样式图标在用户界面中的显示坐标为基准所划定的区域范围。
具体地,上述归类区域可以是是样式图标的显示区域范围,也可以是比样式图标大的预定的区域范围。
在一种可选的方案中,当样式图标经过的任意一个目标对象时,如果目标对象的坐标位置在样式图标的归类区域内,或者目标对象的坐标位置与样式图标的归类区域范围的重合度超过预定阈值,则可以确定该目标对象为待归类的目标对象。
例如,仍以用户界面是智能手机上的用户界面,操作事件是点击事件为例,对本发明上述实施例进行详细说明。如图4(c)和图4(d)所示,当用户需要将对数据进行归类时,可以在用户界面的空白位置按压手机屏幕,智能手机在检测到用户按压手机屏幕触发的点击事件之后,绘制文件夹图标,并在手机屏幕上显示获取到的文件夹图标,用户可以通过拖动文件夹图标生成移动轨迹,获取移动轨迹依次经过的图标1,图标2,图标3和图标4,当文件夹图标经过图标1时,判断出图标1在文件夹图标的归类区域内,则确定图标1为待归类的图标;当文件夹图标经过图标2时,判断出图标2与文件夹图标的归类区域的重合度超过预定阈值,则确定图标2为待归类的图标;当文件夹图标经过图标3时,判断出图标3不在文件夹图标的归类区域内,且图标3与文件夹图标的归类区域的重合度未超过预定阈值,则确定图标3不是待归类的图标。
通过上述方案,当样式图标经过的目标对象的坐标位置处于归类区域内或两者的重合度超过预定阈值,则确定该目标对象为待归类的目标对象,从而实现根据样式图标的移动轨迹确定至少一个目标对象的目的,并且避免经过其他图标时出现的误操作。
根据本申请上述实施例,上述方法还包括:
步骤S37,如果检测到样式图标停留在处于归类区域之内的目标对象的停留时间超过预定阈值,则确定处于归类区域之内的目标对象为待归类的目标对象。
具体地,上述预定阈值可以是300ms。
在一种可选的方案中,在任意一个目标对象的显示位置在样式图标的归类区域内或者两者的重合度满足预设阈值的情况下,如果样式图标在该目标对象的显示位置处的停留位置超过300ms,则确定该目标对象为待归类的目标对象,可以避免样式图标经过其他图标时出现的误操作。
例如,仍以用户界面是智能手机上的用户界面,操作事件是点击事件为例,对本发明上述实施例进行详细说明。如图4(c)和图4(d)所示,当用户需要将对数据进行归类时,可以在用户界面的空白位置按压手机屏幕,智能手机在检测到用户按压手机屏幕触发的点击事件之后,绘制文件夹图标,并在手机屏幕上显示获取到的文件夹图标,用户可以通过拖动文件夹图标生成移动轨迹,获取移动轨迹依次经过的图标1,图标2,图标3和图标4,当文件夹图标经过图标1时,判断出图标1在文件夹图标的归类区域内,且文件夹图标在图标1处的停留时间为350ms,则确定图标1为待归类的图标;当文件夹图标经过图标2时,判断出图标2与文件夹图标的归类区域的重合度超过预定阈值,且文件夹图标在图标2处的停留时间为250ms,则确定图标2不是待归类的图标。
根据本申请上述实施例,步骤S33,根据样式图标在用户界面上的移动轨迹,确定待归类的至少一个目标对象,还可以包括如下步骤:
步骤S335,在样式图标被拖动的过程中,获取样式图标在不同显示位置的图标坐标。
步骤S337,基于每个图标坐标确定对应的归类区域,得到归类区域集合。
在一种可选的方案中,在样式图标被拖动的过程中,可以实时获取样式图标在用户界面上的位置坐标,根据实时确定的样式图标的位置坐标,得到样式图标的移动轨迹上的归类区域集合。
步骤S339,在读取用户界面中显示的每个目标对象的显示坐标之后,将归类区域集合与每个目标对象的显示坐标进行匹配,获取与归类区域集合中任意一个或多个归类区域匹配的显示坐标,作为待归类的至少一个目标对象。
在一种可选的方案中,可以读取用户界面中每个目标对象的显示坐标,将每个目标对象的显示坐标与样式图标的归类区域集合进行匹配,如果任意一个目标对象的显示坐标与样式图标的归类区域集合中任意一个归类区域匹配,并且样式图标在该目标对象的显示位置处的停留位置超过300ms,则确定该目标对象为待归类的图标。
例如,仍以用户界面是智能手机上的用户界面,操作事件是点击事件为例,对本发明上述实施例进行详细说明。如图4(c)和图4(d)所示,当用户需要将对数据进行归类 时,可以在用户界面的空白位置按压手机屏幕,智能手机在检测到用户按压手机屏幕触发的点击事件之后,绘制文件夹图标,并在手机屏幕上显示获取到的文件夹图标,用户可以通过拖动文件夹图标生成移动轨迹,获取到文件夹图标在拖动过程中的归类区域集合,将用户界面上的所有图标的显示坐标与归类区域集合进行匹配,得到匹配成功图标,即图标1,图标2,图标3和图标4,并且文件夹图标在图标1,图标2,图标3和图标4的停留时间超过300ms,则确定图标1,图标2,图标3和图标4为待归类的图标。
根据本申请上述实施例,操作事件包括如下任意一种或多种事件:点击事件、滑动事件、拖拽事件。
在一种可选的方案中,用户可以通过在智能手机屏幕上按照逆时针圆圈进行滑动,触发滑动事件,并在用户滑动形成的圆圈的中心位置生成样式图标。
例如,仍以用户界面是智能手机上的用户界面,操作事件是点击事件为例,对本发明上述实施例进行详细说明。如图4(b)所示,当用户在智能手机屏幕的空白位置处按逆时针圆圈滑动时,触发滑动事件,智能手机获取到文件夹图标,并显示在滑动形成的圆圈的中心位置。
根据本申请上述实施例,上述方法还包括:
步骤S391,当在用户界面的空白位置检测到操作事件时,获取空白位置的坐标,并基于空白位置的坐标绘制样式图标,其中,空白位置的坐标为样式图标的初始坐标。
步骤S393,当样式图标被拖动时,触发移动回调事件,移动回调事件用于将样式图标沿移动轨迹进行移动,样式图标的坐标以初始坐标为初始值按照移动轨迹动态变化。
在一种可选的方案中,当用户在用户界面的任意位置用力按压智能手机屏幕,且按压压力达到压力感应的临界点时,触发点击事件,在用户按压的位置出现文件夹图标,并将用户的按压位置作为文件夹图标的初始位置,在用户拖动样式图标的过程中,触发移动回调事件(touch move),根据用户拖动样式图标的位置重新绘制样式图标,样式图标沿用户拖动轨迹进行移动。
例如,仍以用户界面是智能手机上的用户界面,操作事件是点击事件为例,对本发明上述实施例进行详细说明。如图4(b)所示,当用户按压智能手机屏幕的空白位置时,触发点击事件,在用户按压的位置绘制文件夹图标,并将用户按压的位置作为文件夹图标的初始位置,并在用户拖动文件夹图标的过程中,触发移动回调事件,重新绘制样式图标,使用户看到样式图标跟随用户手势的移动而移动。
根据本申请上述实施例,步骤S31,当在用户界面的任意位置检测到操作事件时, 获取样式图标可以包括如下步骤:
步骤S311,检测到操作事件时,读取用户界面中发生操作事件的位置坐标。
步骤S313,以检测到的操作事件的位置坐标为基准,判断位置坐标的预定区域内是否包含图标,如果包含图标,则将图标作为样式图标,并标识图标对应的对象为待归类的目标对象。
步骤S315,当样式图标被拖动时,触发移动回调事件,移动回调事件用于将样式图标沿移动轨迹进行移动,样式图标的坐标基于移动轨迹动态变化。
在一种可选的方案中,在用户按压智能手机的屏幕触发点击事件之后,读取用户按压屏幕的位置坐标,如果该位置坐标的预定区域内包含图标,即用户按压屏幕非空白位置,则将该图标作为样式图标,并确定该图标对应的对象为待归类的目标对象,当用户拖动样式图标的时候,触发移动回调事件,重新绘制样式图标,样式图标沿用户拖动轨迹进行移动。
例如,仍以用户界面是智能手机上的用户界面,操作事件是点击事件为例,对本发明上述实施例进行详细说明。如图4(b)所示,当用户按压智能手机屏幕的空白位置时,触发点击事件,在用户按压的位置绘制文件夹图标,并将用户按压的位置作为文件夹图标的初始位置,并在用户拖动文件夹图标的过程中,触发移动回调事件,重新绘制样式图标,使用户看到样式图标跟随用户手势的移动而移动。
根据本申请上述实施例,上述方法还包括:
步骤S395,在确定位置坐标的预定区域内包含图标之后,将确定的图标进行放大,并将放大后的图标作为样式图标。
在一种可选的方案中,当用户按压智能手机的屏幕时,用户在用户界面上按压的位置的预定区域内包含图标时,将该图标进行放大,标识该图标被选中,并将放大后的图标作为样式图标。
例如,仍以用户界面是智能手机上的用户界面,操作事件是点击事件为例,对本发明上述实施例进行详细说明。如图4(b)所示,当用户按压智能手机屏幕时,触发点击事件,如果用户按压的位置与图标1的显示位置相同,则将图标1进行放大,并确定图标1为样式图标。
根据本申请上述实施例,上述方法还包括:
步骤S397如果位置坐标的预定区域内未检测到图标,基于检测到的操作事件的位置坐标绘制样式图标,其中,以检测到的操作事件的位置坐标为样式图标的初始坐标。
在一种可选的方案中,在用户按压智能手机的屏幕触发点击事件之后,读取用户按压屏幕的位置坐标,如果该位置坐标的预定区域内不包含图标,即用户按压屏幕空白位置,则将绘制文件夹图标作为样式图标。
例如,仍以用户界面是智能手机上的用户界面,操作事件是点击事件为例,对本发明上述实施例进行详细说明。如图4(b)所示,当用户按压智能手机屏幕的空白位置时,触发点击事件,在用户按压的位置绘制文件夹图标。
根据本申请上述实施例,步骤S35,将待归类的至少一个目标对象转移至样式图标所在的目录下,可以包括如下步骤:
步骤S351,获取样式图标对应的目标对象所保存的目录地址。
步骤S353,将待归类的目标对象的存放地址设置为目录地址。
在一种可选的方案中,可以在获取到样式图标的保存目录地址之后,将待归类的至少一个目标对象转移到该目标地址中。
例如,仍以用户界面是智能手机上的用户界面,操作事件是点击事件为例,对本发明上述实施例进行详细说明。如图4(f)所示,当用户需要将图标1,图标2,图标3和图标4进行归类时,用户可以在用户界面的空白位置按压智能手机的屏幕,用户界面上用户按压的位置出现文件夹图标,用户可以拖动文件夹图标依次经过待归类的图标1,图标2,图标3和图标4,确定待归类的4个图标,在获取到文件夹图标对应的目录地址之后,将待归类的4个图标转移到文件夹图标对应的目录地址中。
根据本申请上述实施例,在步骤S35,将待归类的至少一个目标对象转移至样式图标所在的目录下之后,上述方法还可以包括如下步骤:
步骤S355,在用户界面中显示归类图标,且待归类的目标对象的图标作为子图标显示在归类图标中。
具体地,上述归类图标可以是样式图标。
在一种可选的方案中,可以在用户界面中显示归类图标,并将待归类的至少一个目标对象的图标作为归类图标中的子图标,显示在归类图标中。
例如,仍以用户界面是智能手机上的用户界面,操作事件是点击事件为例,对本发明上述实施例进行详细说明。如图4(f)所示,在用户界面上显示文件夹图标,并将待归类的图标1,图标2,图标3和图标4作为文件夹图标的子图标显示在文件夹图标中。
步骤S357,在打开归类图标之后,将归类图标按照预定的显示区域显示在用户界面中,其中,子图标依次归类显示在显示区域中。
在一种可选的方案中,在用户点击用户界面上的归类图标之后,将归类图标显示在用户界面的指定区域,并将待归类的图标显示在文件夹图标的显示区域中。
例如,仍以用户界面是智能手机上的用户界面,操作事件是点击事件为例,对本发明上述实施例进行详细说明。如图4(e)所示,当用户点击用户界面上的文件夹图标时,文件夹图标显示在用户界面的中央位置,并且图标1,图标2,图标3和图标4显示在文件夹图标的显示区域中。
此处需要说明的是,文件夹图标的显示区域中显示的子图标的顺序可以根据文件夹图标的移动轨迹经过子图标的顺序决定。
步骤S359,如果显示区域中的子图标被选中,并被拖拽到显示区域之外,则确定子图标被移出目录。
在一种可选的方案中,用户可以通过点击文件夹图标的显示区域中的子图标选中任意一个子图标,并通过拖拽将子图标拖出文件夹图标的显示区域之外,从而将该子图标的对象从文件夹图标对应的目录中删除。
例如,仍以用户界面是智能手机上的用户界面,操作事件是点击事件为例,对本发明上述实施例进行详细说明。如图4(e)所示,当用户点击用户界面上的文件夹图标时,文件夹图标显示在用户界面的中央位置,并且图标1,图标2,图标3和图标4显示在文件夹图标的显示区域中,用户可以通过将图标1拖拽到文件夹图标之外,将图标1从文件夹图标中进行删除。
此处需要说明的是,如果样式图标中的子图标个数超过显示区域,则需要通过滚动显示全部。
可选地,在本实施例中,上述数据归类的方法可以应用于如图2所示的计算机终端10所构成的硬件环境中。如图2所示,计算机终端10通过网络与其他计算机终端进行连接,上述网络包括但不限于:广域网、城域网或局域网。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多 情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。
实施例2
根据本发明实施例,还提供了一种数据归类的方法实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机***中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。
本申请提供了如图5所示的数据归类的方法。图5是根据本申请实施例二的一种数据归类的方法的流程图,如图5所示,该方法包括如下步骤:
步骤S51,当触摸屏感应到相应的触摸操作时,在触摸屏的任意位置生成样式图标。
具体地,上述触摸屏可以是智能手机(如Android手机、iOS手机等),平板电脑,掌上电脑等终端设备上的屏幕,也可以是计算机终端上的屏幕,上述触摸操作可以是用户在触摸屏触发的点击事件、滑动事件、拖拽事件等,例如用户按压智能手机的触摸屏时可以触发点击事件,用户在智能手机的触摸屏上按逆时针圆形轨迹或者三角形轨迹滑动时可以触发滑动事件,上述样式图标可以是检测到触摸操作之后生成的图标或者触摸屏上显示的任意一个图标。
在一种可选的方案中,当用户用力按压智能手机的用户界面的任意位置,并且压力感应检测到达到压力感应的临界点时,智能手机的触摸屏可以感应到用户的点击操作,触发点击事件,获取到样式图标,在用户界面中用户按压的位置显示样式图标,且样式图标可以跟随用户手势的移动而移动。
例如,以触摸屏是智能手机的屏幕,触摸操作是点击操作为例,对本发明上述实施例进行详细说明。如图4(a)和图4(b)所示,当用户需要对数据进行归类时,可以在用户界面的空白位置按压智能手机的触摸屏,智能手机的触摸屏感应到用户的点击操作,触发点击事件,获取文件夹图标(该文件夹图标是上述样式图标的表现形式之一),并在触摸屏上显示文件夹图标。
步骤S53,如果在触摸屏中拖拽样式图标,则根据样式图标的移动轨迹,确定待归类的至少一个目标对象。
具体地,上述目标对象可以是用户想要进行归类的图标或者文件。
在一种可选的方案中,在触摸屏生成样式图标之后,可以通过在触摸屏上拖动样式图标生成用户界面上的移动轨迹,确定样式图标的移动轨迹经过的用户界面上的任意一个目标对象为待归类的目标对象。
例如,仍以触摸屏是智能手机的屏幕,触摸操作是点击操作为例,对本发明上述实施例进行详细说明。如图4(c)和图4(d)所示,当用户需要将对数据进行归类时,可以在用户界面的空白位置按压智能手机的触摸屏,智能手机的触摸屏感应到用户的点击操作,触发点击事件,获取文件夹图标,并在触摸屏上显示文件夹图标,用户可以通过在触摸屏上拖动文件夹图标依次经过用户界面上的图标1,图标2,图标3和图标4,根据文件夹图标在用户界面上的移动轨迹,确定待归类的4个图标,即图标1,图标2,图标3和图标4。
步骤S55,将待归类的至少一个目标对象的图标显示在样式图标的目录下。
在一种可选的方案中,在确定待归类的至少一个目标对象之后,将待归类的至少一个目标对象转移到样式图标的目录中。
例如,仍以触摸屏是智能手机的屏幕,触摸操作是点击操作为例,对本发明上述实施例进行详细说明。如图4(e)和图4(f)所示,当用户需要将对数据进行归类时,可以在用户界面的空白位置按压智能手机的触摸屏,智能手机的触摸屏感应到用户的点击操作,触发点击事件,获取文件夹图标,并在触摸屏上显示文件夹图标,用户可以通过在触摸屏上拖动文件夹图标依次经过用户界面上的图标1,图标2,图标3和图标4,根据文件夹图标在用户界面上的移动轨迹,确定待归类的4个图标,即图标1,图标2,图标3和图标4,并将图标1,图标2,图标3和图标4转移到该文件夹图标所在的目录中,将文件夹图标显示在用户界面上。
本申请上述实施例二公开的方案中,如果需要对文件或者图标进行归类,可以当触摸屏感应到相应的触摸操作时,在触摸屏的任意位置生成样式图标,如果在触摸屏中拖拽样式图标,则根据样式图标的移动轨迹,确定待归类的至少一个目标对象,在确定至少一个目标对象之后,将待归类的至少一个目标对象的图标显示在样式图标的目录下。本方案可以通过根据获取到的样式图标在用户界面上的移动轨迹确定待归类的至少一个目标对象,实现对目标对象进行归类的目的。
容易注意到,由于可以通过压力按压触发新建文件夹操作,在获取到样式图标之后,可以根据样式图标的移动轨迹确定至少一个目标对象,将确定后的待归类的至少一个目标对象进行转移,实现对目标对象进行归类的目的,因此,通过本申请实施例所提供的 方案,可以利用拖动方式,一次性选中多个图标(或文件)进行归类,实现对至少一个目标对象进行归类,触发简单同时避免误操作,提高文件或图标的归类效率。
由此,本申请提供的上述实施例二的方案解决了现有技术在对用户界面中显示的多个目标对象进行归类时,需要在用户界面上进行多次拖动或者点击才可以完成归类,导致目标对象的归类效率低的技术问题。
根据本申请上述实施例,步骤S53,根据样式图标的移动轨迹,确定待归类的至少一个目标对象包括如下步骤:
步骤S531,在样式图标被拖动到触摸屏中的任意一个图标的显示位置的情况下,如果图标与样式图标的重合度超过预定阈值,则确定图标为被选中的待归类的目标对象。
具体地,上述归类区域可以是是样式图标的显示区域范围,也可以是比样式图标大的预定的区域范围。
在一种可选的方案中,用户可以在触摸屏上拖动样式图标在用户界面上移动,生成移动轨迹,并根据样式图标的移动轨迹,确定移动轨迹经过的多个图标,每当用户在触摸屏上将样式图标拖拽到用户界面上的任意一个图标的显示位置时,判断样式图标与任意一个图标的重合度是否超过预定阈值,如果大于预定阈值,且样式图标在该图标处的停留时间超过预设阈值300ms,则确定该目标对象为待归类的目标对象。
例如,仍以触摸屏是智能手机的屏幕,触摸操作是点击操作为例,对本发明上述实施例进行详细说明。如图4(c)和图4(d)所示,当用户需要将对数据进行归类时,可以在用户界面的空白位置按压智能手机的触摸屏,智能手机的触摸屏感应到用户的点击操作,触发点击事件,获取文件夹图标,并在触摸屏上显示文件夹图标,用户可以通过在触摸屏上拖动文件夹图标依次经过用户界面上的图标1,图标2,图标3和图标4,在文件夹图标拖拽到图标1的显示位置时,如果图标1和文件夹图标重合度超过预定阈值,且文件夹图标在图标1处的停留时间为350ms,则确定图标1为待归类的图标;在文件夹图标拖拽到图标2的显示位置时,如果图标2和文件夹图标重合度超过预定阈值,且文件在图标2处的停留时间为250ms,则确定图标2不是待归类的图标;在文件夹图标拖拽到图标3的显示位置时,如果图标3和文件夹图标重合度未超过预定阈值,则确定图标3不是待归类的图标。
通过上述方案,当样式图标拖拽到任意一个图标的显示位置时,如果图标与样式图标的重合度超过预定阈值,则确定该图标为待归类的目标对象,从而实现根据样式图标的移动轨迹确定至少一个目标对象的目的,并且避免经过其他图标时出现误操作。
根据本申请上述实施例,样式图标包括如下任意一种图标:触摸屏中当前显示的任意一个图标、在触摸屏中发生触摸的位置绘制的图标和在触摸屏中的默认位置绘制的图标。
在一种可选的方案中,当用户按压触摸屏的空白位置时,可以在触摸屏用户按压的空白位置绘制样式图标,当用户按压触摸屏当前显示的图标的位置时,可以将该图标作为样式图标。
例如,仍以触摸屏是智能手机的屏幕,触摸操作是点击操作为例,对本发明上述实施例进行详细说明。如图4(b)所示,当用户需要将对数据进行归类时,可以在用户界面的空白位置按压智能手机的触摸屏,智能手机的触摸屏感应到用户的点击操作,触发点击事件,获取文件夹图标,并在触摸屏上绘制文件夹图标。
根据本申请上述实施例,触摸操作包括如下任意一种或多种操作:点击操作、滑动操作、拖拽操作。
在一种可选的方案中,用户可以通过在智能手机的触摸屏上按照逆时针圆圈进行滑动,触摸屏感应到滑动操作从而触发滑动事件,并在用户滑动形成的圆圈的中心位置生成样式图标。
例如,仍以触摸屏是智能手机的屏幕,触摸操作是点击操作为例,对本发明上述实施例进行详细说明。如图4(b)所示,当用户在智能手机触摸屏的空白位置处按逆时针圆圈滑动时,触摸屏感应到滑动操作进而触发滑动事件,智能手机获取到文件夹图标,并显示在触摸屏上滑动形成的圆圈的中心位置。
根据本申请上述实施例,上述方法还包括:
步骤S57,当触摸屏感应到相应的触摸操作,且发生触摸操作的位置感应到的压力达到临界值时,生成样式图标。
在一种可选的方案中,用户可以通过按压智能手机的触摸屏,在用户按压触摸屏的按压压力达到临界值之后,触发点击事件,从而在用户按压触摸屏的位置生成样式图标。
例如,仍以触摸屏是智能手机的屏幕,触摸操作是点击操作为例,对本发明上述实施例进行详细说明。如图4(b)所示,当用户需要将对数据进行归类时,可以在用户界面的空白位置按压智能手机的触摸屏,在触摸屏感应到用户按压的压力达到临界值之后,触发点击事件,获取文件夹图标,并在触摸屏上生成文件夹图标。
根据本申请上述实施例,步骤S55,将待归类的至少一个目标对象的图标显示在样式图标的目录下,包括如下步骤:
步骤S551,如果检测到拖拽样式图标的动作结束,则移动待归类的至少一个目标对象的图标至样式图标的目录下,并在触摸屏中删除待归类的至少一个目标对象的图标。
在一种可选的方案中,可以在用户停止在触摸屏上拖动样式图标之后,将待归类的至少一个图标移动到样式图标的目录中,并将触摸屏中用户界面上的待归类的图标进行删除。
例如,仍以触摸屏是智能手机的屏幕,触摸操作是点击操作为例,对本发明上述实施例进行详细说明。如图4(f)所示,当用户需要将对数据进行归类时,可以在用户界面的空白位置按压智能手机的触摸屏,智能手机的触摸屏感应到用户的点击操作,触发点击事件,获取文件夹图标,并在触摸屏上显示文件夹图标,用户可以通过在触摸屏上拖动文件夹图标依次经过用户界面上的图标1,图标2,图标3和图标4,确定待归类的图标1,图标2,图标3和图标4,在用户停止在触摸屏上拖动文件夹图标之后,将待归类的4个图标转移到文件夹图标对应的目录中,并将触摸屏中用户界面上原来的图标1,图标2,图标3和图标4删除。
根据本申请上述实施例,在步骤S55,将待归类的至少一个目标对象的图标显示在样式图标的目录下之后,上述方法还包括如下步骤:
步骤S59,在打开样式图标并显示归类后所有目标对象的图标之后,如果将任意一个归类后的图标拖拽至样式图标当前的显示区域之外,则确定被拖拽的图标移出目录,并在样式图标中删除移出目录的图标,和/或将移出目录的图像显示在触摸屏的其他位置。
在一种可选的方案中,用户可以通过点击触摸屏中用户界面上显示的样式图标打开样式图标,并在指定区域显示样式图标,通过在触摸屏上将显示图域内的图标拖拽到显示区域之外,或者拖拽到触摸屏上的指定位置,确定将该图标从样式图标和样式图标所在的目录中进行删除。
例如,仍以触摸屏是智能手机的屏幕,触摸操作是点击操作为例,对本发明上述实施例进行详细说明。如图4(e)所示,当用户点击触摸屏上的文件夹图标时,文件夹图标显示在用户界面的中央位置,并且图标1,图标2,图标3和图标4显示在文件夹图标的显示区域中,用户可以通过将图标1拖拽到文件夹图标之外,将图标1从文件夹图标中进行删除。
此处需要说明的是,文件夹图标的显示区域中显示的子图标的顺序可以根据文件夹图标的移动轨迹经过子图标的顺序决定,如果样式图标中的子图标个数超过显示区域, 则需要通过滚动显示全部。
可选地,在本实施例中,上述数据归类的方法可以应用于如图2所示的计算机终端10所构成的硬件环境中。如图2所示,计算机终端10通过网络与其他计算机终端进行连接,上述网络包括但不限于:广域网、城域网或局域网。
实施例3
根据本发明实施例,还提供了一种用于实施上述数据归类的方法的数据归类的装置,如图6所示,该装置包括:获取模块61,确定模块63和转移模块65。
其中,获取模块61用于当在用户界面的任意位置检测到操作事件时,获取样式图标。
具体地,上述用户界面可以是智能手机(如Android手机、iOS手机等),平板电脑,掌上电脑等终端设备上的用户界面,也可以是计算机终端上的用户界面,上述操作事件可以是用户在用户界面上进行操作触发的点击事件、滑动事件、拖拽事件等,例如用户按压智能手机的屏幕时可以触发点击事件,用户在智能手机的屏幕上按逆时针圆形轨迹或者三角形轨迹滑动时可以触发滑动事件,上述样式图标可以是检测到操作事件之后绘制的图标或者用户界面上任意一个显示的图标。
在一种可选的方案中,当用户在用户界面的任意位置用力按压智能手机的屏幕,并且压力感应检测到用户按压的压力达到临界点时,可以触发点击事件,智能手机在检测到点击事件之后,在用户界面中用户按压的位置显示样式图标,且样式图标可以跟随用户手势的移动而移动。
例如,以用户界面是智能手机上的用户界面,操作事件是点击事件为例,对本发明上述实施例进行详细说明。如图4(a)和图4(b)所示,当用户需要对数据进行归类时,可以在用户界面的空白位置按压智能手机的屏幕,智能手机在检测到用户按压手机屏幕触发的点击事件之后,绘制文件夹图标(该文件夹图标是上述样式图标的表现形式之一),并在手机屏幕上显示获取到的文件夹图标。
确定模块63用于在样式图标被拖动的过程中,根据样式图标在用户界面上的移动轨迹,确定待归类的至少一个目标对象。
具体地,上述目标对象可以是用户想要进行归类的图标或者文件。
在一种可选的方案中,在获取到样式图标之后,可以通过在用户界面上拖动样式图标生成移动轨迹,确定样式图标的移动轨迹经过的任意一个目标对象为待归类的目标对象。
例如,仍以用户界面是智能手机上的用户界面,操作事件是点击事件为例,对本发明上述实施例进行详细说明。如图4(c)和图4(d)所示,当用户需要将对数据进行归类时,可以在用户界面的空白位置按压手机屏幕,智能手机在检测到用户按压手机屏幕触发的点击事件之后,绘制文件夹图标,并在手机屏幕上显示获取到的文件夹图标,用户可以通过拖动文件夹图标依次经过图标1,图标2,图标3和图标4,根据文件夹图标在用户界面上的移动轨迹,确定待归类的4个图标,即图标1,图标2,图标3和图标4。
转移模块65用于将待归类的至少一个目标对象转移至样式图标所在的目录下。
在一种可选的方案中,在得到待归类的至少一个目标对象之后,可以将待归类的至少一个目标对象转移到样式图标所在的目录中。
例如,仍以用户界面是智能手机上的用户界面,操作事件是点击事件为例,对本发明上述实施例进行详细说明。如图4(c)和图4(d)所示,当用户需要将对数据进行归类时,可以在用户界面的空白位置按压手机屏幕,智能手机在检测到用户按压手机屏幕触发的点击事件之后,绘制文件夹图标,并在手机屏幕上显示获取到的文件夹图标,用户可以通过拖动文件夹图标依次经过图标1,图标2,图标3和图标4,根据文件夹图标在用户界面上的移动轨迹,确定待归类的4个图标,即图标1,图标2,图标3和图标4,并将图标1,图标2,图标3和图标4转移到文件夹所在的目录中,将文件夹图标显示在用户界面上。
本申请上述实施例三公开的方案中,如果需要对文件或者图标进行归类,可以当在用户界面的任意位置检测到操作事件时,获取样式图标,并在样式图标被拖动的过程中,根据样式图标在用户界面上的移动轨迹,确定待归类的至少一个目标对象,在确定至少一个目标对象之后,将待归类的至少一个目标对象转移至样式图标所在的目录下。本方案可以通过根据获取到的样式图标在用户界面上的移动轨迹确定待归类的至少一个目标对象,实现对目标对象进行归类的目的。
容易注意到,由于可以通过压力按压触发新建文件夹操作,在获取到样式图标之后,可以根据样式图标的移动轨迹确定至少一个目标对象,将确定后的待归类的至少一个目标对象进行转移,实现对目标对象进行归类的目的,因此,通过本申请实施例所提供的方案,可以利用拖动方式,一次性选中多个图标(或文件)进行归类,实现对至少一个目标对象进行归类,触发简单同时避免误操作,提高文件或图标的归类效率。
由此,本申请提供的上述实施例三的方案解决了现有技术在对用户界面中显示的多个目标对象进行归类时,需要在用户界面上进行多次拖动或者点击才可以完成归类,导 致目标对象的归类效率低的技术问题。
根据本申请上述实施例,确定模块63可以包括:第一获取子模块和第一确定子模块。
其中,第一获取子模块用于获取样式图标在移动轨迹中依次经过的目标对象;第一确定子模块用于如果样式图标所经过的任意一个或多个目标对象的坐标位置处于归类区域之内,则确定处于归类区域之内的目标对象为待归类的目标对象,或者,如果目标对象的图标与样式图标对应的归类区域的重合度超过预定阈值,则确定目标对象为待归类的目标对象;其中,归类区域为以样式图标在用户界面中的显示坐标为基准所划定的区域范围。
具体地,上述归类区域可以是是样式图标的显示区域范围,也可以是比样式图标大的预定的区域范围。
在一种可选的方案中,用户拖动样式图标在用户界面上移动,生成移动轨迹,可以根据样式图标的移动轨迹,确定移动轨迹经过的多个目标对象,当样式图标经过的任意一个目标对象时,如果目标对象的坐标位置在样式图标的归类区域内,或者目标对象的坐标位置与样式图标的归类区域范围的重合度超过预定阈值,则可以确定该目标对象为待归类的目标对象。
此处需要说明的是,上述第一获取子模块和第一确定子模块对应于实施例一中的步骤S331至步骤S333,两个模块与对应的步骤所实现的实例和应用场景相同,但不限于上述实施例一所公开的内容。需要说明的是,上述模块作为装置的一部分可以运行在实施例一提供的计算机终端10中。
通过上述方案,当样式图标经过的目标对象的坐标位置处于归类区域内或重合度超过预定阈值,则确定该目标对象为待归类的目标对象,从而实现根据样式图标的移动轨迹确定至少一个目标对象的目的,并且避免经过其他图标时出现误操作。
根据本申请上述实施例,上述装置还包括:第一确定模块。
其中,第一确定模块用于如果检测到样式图标停留在处于归类区域之内的目标对象的停留时间超过预定阈值,则确定处于归类区域之内的目标对象为待归类的目标对象。
具体地,上述预定阈值可以是300ms。
在一种可选的方案中,在任意一个目标对象的显示位置在样式图标的归类区域内或者两者的重合度满足预设阈值的情况下,如果样式图标在该目标对象的显示位置处的停留位置超过300ms,则确定该目标对象为待归类的目标对象,可以避免样式图标经过其 他图标时出现的误操作。
此处需要说明的是,上述第一确定模块对应于实施例一中的步骤S37,该模块与对应的步骤所实现的实例和应用场景相同,但不限于上述实施例一所公开的内容。需要说明的是,上述模块作为装置的一部分可以运行在实施例一提供的计算机终端10中。
根据本申请上述实施例,确定模块63还可以包括:第二获取子模块,第二确定子模块和匹配子模块。
其中,第二获取子模块用于在样式图标被拖动的过程中,获取样式图标在不同显示位置的图标坐标;第二确定子模块用于基于每个图标坐标确定对应的归类区域,得到归类区域集合;匹配子模块用于在读取用户界面中显示的每个目标对象的显示坐标之后,将归类区域集合与每个目标对象的显示坐标进行匹配,获取与归类区域集合中任意一个或多个归类区域匹配的显示坐标,作为待归类的至少一个目标对象。
在一种可选的方案中,在样式图标被拖动的过程中,可以实时获取样式图标在用户界面上的位置坐标,根据实时确定的样式图标的位置坐标,确定样式图标移动轨迹上的归类区域,读取用户界面中每个图标的显示坐标,将每个图标的显示坐标与样式图标的位置坐标进行匹配,如果任意一个图标的显示坐标与样式图标的位置坐标匹配,则确定该图标为待归类的图标。
此处需要说明的是,上述第二获取子模块,第二确定子模块和匹配子模块对应于实施例一中的步骤S335至步骤S339,三个模块与对应的步骤所实现的实例和应用场景相同,但不限于上述实施例一所公开的内容。需要说明的是,上述模块作为装置的一部分可以运行在实施例一提供的计算机终端10中。
根据本申请上述实施例,操作事件包括如下任意一种或多种事件:点击事件、滑动事件、拖拽事件。
在一种可选的方案中,用户可以通过在智能手机屏幕上按照逆时针圆圈进行滑动,触发滑动事件,并在用户滑动形成的圆圈的中心位置生成样式图标。
例如,仍以用户界面是智能手机上的用户界面,操作事件是点击事件为例,对本发明上述实施例进行详细说明。如图4(b)所示,当用户在智能手机屏幕的空白位置处按逆时针圆圈滑动时,触发滑动事件,智能手机获取到文件夹图标,并显示在滑动形成的圆圈的中心位置。
根据本申请上述实施例,上述装置还包括:绘制模块和拖动模块。
其中,绘制模块用于当在用户界面的空白位置检测到操作事件时,获取空白位置的 坐标,并基于空白位置的坐标绘制样式图标,其中,空白位置的坐标为样式图标的初始坐标;拖动模块用于当样式图标被拖动时,触发移动回调事件,移动回调事件用于将样式图标沿移动轨迹进行移动,样式图标的坐标以初始坐标为初始值按照移动轨迹动态变化。
在一种可选的方案中,当用户在用户界面的任意位置用力按压智能手机屏幕,且按压压力达到压力感应的临界点时,触发点击事件,在用户按压的位置出现文件夹图标,并将用户的按压位置作为文件夹图标的初始位置,在用户拖动样式图标的过程中,触发移动回调事件(touch move),根据用户拖动样式图标的位置重新绘制样式图标,样式图标沿用户拖动轨迹进行移动。
此处需要说明的是,上述绘制模块和拖动模块对应于实施例一中的步骤S391至步骤S393,两个模块与对应的步骤所实现的实例和应用场景相同,但不限于上述实施例一所公开的内容。需要说明的是,上述模块作为装置的一部分可以运行在实施例一提供的计算机终端10中。
根据本申请上述实施例,获取模块61可以包括:读取子模块,判断子模块和拖动子模块。
其中,读取子模块用于检测到操作事件时,读取用户界面中发生操作事件的位置坐标;判断子模块用于以检测到的操作事件的位置坐标为基准,判断位置坐标的预定区域内是否包含图标,如果包含图标,则将图标作为样式图标,并标识图标对应的对象为待归类的目标对象;拖动子模块用于当样式图标被拖动时,触发移动回调事件,移动回调事件用于将样式图标沿移动轨迹进行移动,样式图标的坐标基于移动轨迹动态变化。
在一种可选的方案中,在用户按压智能手机的屏幕触发点击事件之后,读取用户按压屏幕的位置坐标,如果该位置坐标的预定区域内包含图标,即用户按压屏幕非空白位置,则将该图标作为样式图标,并确定该图标对应的对象为待归类的目标对象,当用户拖动样式图标的时候,触发移动回调事件,重新绘制样式图标,样式图标沿用户拖动轨迹进行移动。
此处需要说明的是,上述读取子模块,判断子模块和拖动子模块对应于实施例一中的步骤S311至步骤S313,三个模块与对应的步骤所实现的实例和应用场景相同,但不限于上述实施例一所公开的内容。需要说明的是,上述模块作为装置的一部分可以运行在实施例一提供的计算机终端10中。
根据本申请上述实施例,上述装置还包括:放大模块。
其中,放大模块用于在确定位置坐标的预定区域内包含图标之后,将确定的图标进行放大,并将放大后的图标作为样式图标。
在一种可选的方案中,当用户按压智能手机的屏幕时,用户在用户界面上按压的位置的预定区域内包含图标时,将该图标进行放大,标识该图标被选中,并将放大后的图标作为样式图标。
此处需要说明的是,上述放大模块对应于实施例一中的步骤S395,该模块与对应的步骤所实现的实例和应用场景相同,但不限于上述实施例一所公开的内容。需要说明的是,上述模块作为装置的一部分可以运行在实施例一提供的计算机终端10中。
根据本申请上述实施例,上述装置还包括:绘制模块。
其中,绘制模块用于如果位置坐标的预定区域内未检测到图标,基于检测到的操作事件的位置坐标绘制样式图标,其中,以检测到的操作事件的位置坐标为样式图标的初始坐标。
在一种可选的方案中,在用户按压智能手机的屏幕触发点击事件之后,读取用户按压屏幕的位置坐标,如果该位置坐标的预定区域内不包含图标,即用户按压屏幕空白位置,则将绘制文件夹图标作为样式图标。
此处需要说明的是,上述绘制模块对应于实施例一中的步骤S397,该模块与对应的步骤所实现的实例和应用场景相同,但不限于上述实施例一所公开的内容。需要说明的是,上述模块作为装置的一部分可以运行在实施例一提供的计算机终端10中。
根据本申请上述实施例,转移模块65可以包括:第三获取子模块和设置子模块。
第三获取子模块用于获取样式图标对应的目标对象所保存的目录地址;设置子模块用于将待归类的目标对象的存放地址设置为目录地址。
在一种可选的方案中,可以在获取到样式图标的保存目录地址之后,将待归类的至少一个目标对象转移到该目标地址中。
此处需要说明的是,上述第三获取子模块和设置子模块对应于实施例一中的步骤S351至步骤S353,两个模块与对应的步骤所实现的实例和应用场景相同,但不限于上述实施例一所公开的内容。需要说明的是,上述模块作为装置的一部分可以运行在实施例一提供的计算机终端10中。
根据本申请上述实施例,上述装置还可以包括:第一显示模块,第二显示模块和删除模块。
其中,第一显示模块用于在用户界面中显示归类图标,且待归类的目标对象的图标 作为子图标显示在归类图标中;第二显示模块用于在打开归类图标之后,将归类图标按照预定的显示区域显示在用户界面中,其中,子图标依次归类显示在显示区域中;删除模块用于如果显示区域中的子图标被选中,并被拖拽到显示区域之外,则确定子图标被移出目录。
具体地,上述归类图标可以是样式图标。
在一种可选的方案中,可以在用户界面中显示归类图标,并将待归类的至少一个目标对象的图标作为归类图标中的子图标,显示在归类图标中,在用户点击用户界面上的归类图标之后,将归类图标显示在用户界面的指定区域,并将待归类的图标显示在文件夹图标的显示区域中,用户可以通过点击文件夹图标的显示区域中的子图标选中任意一个子图标,并通过拖拽将子图标拖出文件夹图标的显示区域之外,从而将该子图标的对象从文件夹图标对应的目录中删除。
此处需要说明的是,文件夹图标的显示区域中显示的子图标的顺序可以根据文件夹图标的移动轨迹经过子图标的顺序决定,如果样式图标中的子图标个数超过显示区域,则需要通过滚动显示全部。
此处需要说明的是,上述第一显示模块,第二显示模块和删除模块对应于实施例一中的步骤S355至步骤S359,三个模块与对应的步骤所实现的实例和应用场景相同,但不限于上述实施例一所公开的内容。需要说明的是,上述模块作为装置的一部分可以运行在实施例一提供的计算机终端10中。
实施例4
根据本发明实施例,还提供了一种用于实施上述数据归类的方法的数据归类的装置,如图7所示,该装置包括:生成模块71,确定模块73和显示模块75。
其中,生成模块71用于当触摸屏感应到相应的触摸操作时,在触摸屏的任意位置生成样式图标。
具体地,上述触摸屏可以是智能手机(如Android手机、iOS手机等),平板电脑,掌上电脑等终端设备上的屏幕,也可以是计算机终端上的屏幕,上述触摸操作可以是用户在触摸屏触发的点击事件、滑动事件、拖拽事件等,例如用户按压智能手机的触摸屏时可以触发点击事件,用户在智能手机的触摸屏上按逆时针圆形轨迹或者三角形轨迹滑动时可以触发滑动事件,上述样式图标可以是检测到触摸操作之后生成的图标或者触摸屏上显示的任意一个图标。
在一种可选的方案中,当用户用力按压智能手机的用户界面的任意位置,并且压力 感应检测到达到压力感应的临界点时,智能手机的触摸屏可以感应到用户的点击操作,触发点击事件,获取到样式图标,在用户界面中用户按压的位置显示样式图标,且样式图标可以跟随用户手势的移动而移动。
例如,以触摸屏是智能手机的屏幕,触摸操作是点击操作为例,对本发明上述实施例进行详细说明。如图4(a)和图4(b)所示,当用户需要对数据进行归类时,可以在用户界面的空白位置按压智能手机的触摸屏,智能手机的触摸屏感应到用户的点击操作,触发点击事件,获取文件夹图标(该文件夹图标是上述样式图标的表现形式之一),并在触摸屏上显示文件夹图标。
确定模块73用于如果在触摸屏中拖拽样式图标,则根据样式图标的移动轨迹,确定待归类的至少一个目标对象。
具体地,上述目标对象可以是用户想要进行归类的图标或者文件。
在一种可选的方案中,在触摸屏生成样式图标之后,可以通过在触摸屏上拖动样式图标生成用户界面上的移动轨迹,确定样式图标的移动轨迹经过的用户界面上的任意一个目标对象为待归类的目标对象。
例如,仍以触摸屏是智能手机的屏幕,触摸操作是点击操作为例,对本发明上述实施例进行详细说明。如图4(c)和图4(d)所示,当用户需要将对数据进行归类时,可以在用户界面的空白位置按压智能手机的触摸屏,智能手机的触摸屏感应到用户的点击操作,触发点击事件,获取文件夹图标,并在触摸屏上显示文件夹图标,用户可以通过在触摸屏上拖动文件夹图标依次经过用户界面上的图标1,图标2,图标3和图标4,根据文件夹图标在用户界面上的移动轨迹,确定待归类的4个图标,即图标1,图标2,图标3和图标4。
显示模块75用于将待归类的至少一个目标对象的图标显示在样式图标的目录下。
在一种可选的方案中,在确定待归类的至少一个目标对象之后,将待归类的至少一个目标对象转移到样式图标的目录中。
例如,仍以触摸屏是智能手机的屏幕,触摸操作是点击操作为例,对本发明上述实施例进行详细说明。如图4(e)和图4(f)所示,当用户需要将对数据进行归类时,可以在用户界面的空白位置按压智能手机的触摸屏,智能手机的触摸屏感应到用户的点击操作,触发点击事件,获取文件夹图标,并在触摸屏上显示文件夹图标,用户可以通过在触摸屏上拖动文件夹图标依次经过用户界面上的图标1,图标2,图标3和图标4,根据文件夹图标在用户界面上的移动轨迹,确定待归类的4个图标,即图标1,图标2,图 标3和图标4,并将图标1,图标2,图标3和图标4转移到该文件夹图标所在的目录中,将文件夹图标显示在用户界面上。
本申请上述实施例四公开的方案中,如果需要对文件或者图标进行归类,可以当触摸屏感应到相应的触摸操作时,在触摸屏的任意位置生成样式图标,如果在触摸屏中拖拽样式图标,则根据样式图标的移动轨迹,确定待归类的至少一个目标对象,在确定至少一个目标对象之后,将待归类的至少一个目标对象的图标显示在样式图标的目录下。本方案可以通过根据获取到的样式图标在用户界面上的移动轨迹确定待归类的至少一个目标对象,实现对目标对象进行归类的目的。
容易注意到,由于可以通过压力按压触发新建文件夹操作,在获取到样式图标之后,可以根据样式图标的移动轨迹确定至少一个目标对象,将确定后的待归类的至少一个目标对象进行转移,实现对目标对象进行归类的目的,因此,通过本申请实施例所提供的方案,可以利用拖动方式,一次性选中多个图标(或文件)进行归类,实现对至少一个目标对象进行归类,触发简单同时避免误操作,提高文件或图标的归类效率。
由此,本申请提供的上述实施例四的方案解决了现有技术在对用户界面中显示的多个目标对象进行归类时,需要在用户界面上进行多次拖动或者点击才可以完成归类,导致目标对象的归类效率低的技术问题。
根据本申请上述实施例,确定模块73包括:确定子模块。
其中,确定子模块用于在样式图标被拖动到触摸屏中的任意一个图标的显示位置的情况下,如果图标与样式图标的重合度超过预定阈值,则确定图标为被选中的待归类的目标对象。
具体地,上述归类区域可以是是样式图标的显示区域范围,也可以是比样式图标大的预定的区域范围。
在一种可选的方案中,用户可以在触摸屏上拖动样式图标在用户界面上移动,生成移动轨迹,并根据样式图标的移动轨迹,确定移动轨迹经过的多个图标,每当用户在触摸屏上将样式图标拖拽到用户界面上的任意一个图标的显示位置时,判断样式图标与任意一个图标的重合度是否超过预定阈值,如果大于预定阈值,且样式图标在该图标处的停留时间超过预设阈值300ms,则确定该目标对象为待归类的目标对象。
此处需要说明的是,上述确定子模块对应于实施例一中的步骤S531,该模块与对应的步骤所实现的实例和应用场景相同,但不限于上述实施例一所公开的内容。需要说明的是,上述模块作为装置的一部分可以运行在实施例一提供的计算机终端10中。
根据本申请上述实施例,样式图标包括如下任意一种图标:触摸屏中当前显示的任意一个图标、在触摸屏中发生触摸的位置绘制的图标和在触摸屏中的默认位置绘制的图标。
在一种可选的方案中,当用户按压触摸屏的空白位置时,可以在触摸屏用户按压的空白位置绘制样式图标,当用户按压触摸屏当前显示的图标的位置时,可以将该图标作为样式图标。
例如,仍以触摸屏是智能手机的屏幕,触摸操作是点击操作为例,对本发明上述实施例进行详细说明。如图4(b)所示,当用户需要将对数据进行归类时,可以在用户界面的空白位置按压智能手机的触摸屏,智能手机的触摸屏感应到用户的点击操作,触发点击事件,获取文件夹图标,并在触摸屏上绘制文件夹图标。
根据本申请上述实施例,触摸操作包括如下任意一种或多种操作:点击操作、滑动操作、拖拽操作。
在一种可选的方案中,用户可以通过在智能手机的触摸屏上按照逆时针圆圈进行滑动,触摸屏感应到滑动操作从而触发滑动事件,并在用户滑动形成的圆圈的中心位置生成样式图标。
例如,仍以触摸屏是智能手机的屏幕,触摸操作是点击操作为例,对本发明上述实施例进行详细说明。如图4(b)所示,当用户在智能手机触摸屏的空白位置处按逆时针圆圈滑动时,触摸屏感应到滑动操作进而触发滑动事件,智能手机获取到文件夹图标,并显示在触摸屏上滑动形成的圆圈的中心位置。
根据本申请上述实施例,上述装置还包括:第一生成模块。
其中,第一生成模块用于当触摸屏感应到相应的触摸操作,且发生触摸操作的位置感应到的压力达到临界值时,生成样式图标。
在一种可选的方案中,用户可以通过按压智能手机的触摸屏,在用户按压触摸屏的按压压力达到临界值之后,触发点击事件,从而在用户按压触摸屏的位置生成样式图标。
此处需要说明的是,上述第一生成模块对应于实施例一中的步骤S57,该模块与对应的步骤所实现的实例和应用场景相同,但不限于上述实施例一所公开的内容。需要说明的是,上述模块作为装置的一部分可以运行在实施例一提供的计算机终端10中。
根据本申请上述实施例,显示模块75包括:移动子模块。
其中,移动子模块用于如果检测到拖拽样式图标的动作结束,则移动待归类的至少一个目标对象的图标至样式图标的目录下,并在触摸屏中删除待归类的至少一个目标对 象的图标。
在一种可选的方案中,可以在用户停止在触摸屏上拖动样式图标之后,将待归类的至少一个图标移动到样式图标的目录中,并将触摸屏中用户界面上的待归类的图标进行删除。
此处需要说明的是,上述移动子模块对应于实施例一中的步骤S551,该模块与对应的步骤所实现的实例和应用场景相同,但不限于上述实施例一所公开的内容。需要说明的是,上述模块作为装置的一部分可以运行在实施例一提供的计算机终端10中。
根据本申请上述实施例,显示模块75还包括:删除子模块。
其中,删除子模块用于在打开样式图标并显示归类后所有目标对象的图标之后,如果将任意一个归类后的图标拖拽至样式图标当前的显示区域之外,则确定被拖拽的图标移出目录,并在样式图标中删除移出目录的图标,和/或将移出目录的图像显示在触摸屏的其他位置。
在一种可选的方案中,用户可以通过点击触摸屏中用户界面上显示的样式图标打开样式图标,并在指定区域显示样式图标,通过在触摸屏上将显示图域内的图标拖拽到显示区域之外,或者拖拽到触摸屏上的指定位置,确定将该图标从样式图标和样式图标所在的目录中进行删除。
此处需要说明的是,上述删除子模块对应于实施例一中的步骤S59,该模块与对应的步骤所实现的实例和应用场景相同,但不限于上述实施例一所公开的内容。需要说明的是,上述模块作为装置的一部分可以运行在实施例一提供的计算机终端10中。
实施例5
本发明的实施例可以提供一种计算机终端,该计算机终端可以是计算机终端群中的任意一个计算机终端设备。可选地,在本实施例中,上述计算机终端也可以替换为移动终端等终端设备。
可选地,在本实施例中,上述计算机终端可以位于计算机网络的多个网络设备中的至少一个网络设备。
在本实施例中,上述计算机终端可以执行数据归类的方法中以下步骤的程序代码:当在用户界面的任意位置检测到操作事件时,获取样式图标;根据样式图标在用户界面上的移动轨迹,确定待归类的至少一个目标对象;将待归类的至少一个目标对象转移至样式图标所在的目录下。
可选地,图8是根据本发明实施例的一种计算机终端的结构框图。如图8所示,该 计算机终端A可以包括:一个或多个(图中仅示出一个)处理器81、存储器83、以及传输装置85。
其中,存储器83可用于存储软件程序以及模块,如本发明实施例中的数据归类的方法和装置对应的程序指令/模块,处理器通过运行存储在存储器内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的数据归类的方法。存储器83可包括高速随机存储器,还可以包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器83可进一步包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至终端A。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
处理器81可以通过传输装置85调用存储器83存储的信息及应用程序,以执行下述步骤:当在用户界面的任意位置检测到操作事件时,获取样式图标;在样式图标被拖动的过程中,根据样式图标在用户界面上的移动轨迹,确定待归类的至少一个目标对象;将待归类的至少一个目标对象转移至样式图标所在的目录下。
可选的,上述处理器81还可以执行如下步骤的程序代码:获取样式图标在移动轨迹中依次经过的目标对象;如果样式图标所经过的任意一个或多个目标对象的坐标位置处于归类区域之内,则确定处于归类区域之内的目标对象为待归类的目标对象,或者,如果目标对象的图标与样式图标对应的归类区域的重合度超过预定阈值,则确定目标对象为待归类的目标对象;其中,归类区域为以样式图标在用户界面中的显示坐标为基准所划定的区域范围。
可选的,上述处理器81还可以执行如下步骤的程序代码:如果检测到样式图标停留在处于归类区域之内的目标对象的停留时间超过预定阈值,则确定处于归类区域之内的目标对象为待归类的目标对象。
可选的,上述处理器81还可以执行如下步骤的程序代码:在样式图标被拖动的过程中,获取样式图标在不同显示位置的图标坐标;基于每个图标坐标确定对应的归类区域,得到归类区域集合;在读取用户界面中显示的每个目标对象的显示坐标之后,将归类区域集合与每个目标对象的显示坐标进行匹配,获取与归类区域集合中任意一个或多个归类区域匹配的显示坐标,作为待归类的至少一个目标对象。
可选的,上述处理器81还可以执行如下步骤的程序代码:当在用户界面的空白位置检测到操作事件时,获取空白位置的坐标,并基于空白位置的坐标绘制样式图标,其中,空白位置的坐标为样式图标的初始坐标;其中,当样式图标被拖动时,触发移动回 调事件,移动回调事件用于将样式图标沿移动轨迹进行移动,样式图标的坐标以初始坐标为初始值按照移动轨迹动态变化。
可选的,上述处理器81还可以执行如下步骤的程序代码:检测到操作事件时,读取用户界面中发生操作事件的位置坐标;以检测到的操作事件的位置坐标为基准,判断位置坐标的预定区域内是否包含图标,如果包含图标,则将图标作为样式图标,并标识图标对应的对象为待归类的目标对象;其中,当样式图标被拖动时,触发移动回调事件,移动回调事件用于将样式图标沿移动轨迹进行移动,样式图标的坐标基于移动轨迹动态变化。
可选的,上述处理器81还可以执行如下步骤的程序代码:在确定位置坐标的预定区域内包含图标之后,将确定的图标进行放大,并将放大后的图标作为样式图标。
可选的,上述处理器81还可以执行如下步骤的程序代码:如果位置坐标的预定区域内未检测到图标,基于检测到的操作事件的位置坐标绘制样式图标,其中,以检测到的操作事件的位置坐标为样式图标的初始坐标。
可选的,上述处理器81还可以执行如下步骤的程序代码:获取样式图标对应的目标对象所保存的目录地址;将待归类的目标对象的存放地址设置为目录地址。
可选的,上述处理器81还可以执行如下步骤的程序代码:在用户界面中显示归类图标,且待归类的目标对象的图标作为子图标显示在归类图标中;在打开归类图标之后,将归类图标按照预定的显示区域显示在用户界面中,其中,子图标依次归类显示在显示区域中;如果显示区域中的子图标被选中,并被拖拽到显示区域之外,则确定子图标被移出目录。
采用本发明实施例,如果需要对文件或者图标进行归类,可以当在用户界面的任意位置检测到操作事件时,获取样式图标,并根据样式图标在用户界面上的移动轨迹,确定待归类的至少一个目标对象,在确定至少一个目标对象之后,将待归类的至少一个目标对象转移至样式图标所在的目录下。本方案可以通过根据获取到的样式图标在用户界面上的移动轨迹确定待归类的至少一个目标对象,实现对目标对象进行归类的目的。
容易注意到,由于可以通过压力按压触发新建文件夹操作,在获取到样式图标之后,可以根据样式图标的移动轨迹确定至少一个目标对象,将确定后的待归类的至少一个目标对象进行转移,实现对目标对象进行归类的目的,因此,通过本申请实施例所提供的方案,可以利用拖动方式,一次性选中多个图标(或文件)进行归类,实现对至少一个目标对象进行归类,触发简单同时避免误操作,提高文件或图标的归类效率。
由此,本申请提供的上述实施例一的方案解决了现有技术在对用户界面中显示的多个目标对象进行归类时,需要在用户界面上进行多次拖动或者点击才可以完成归类,导致目标对象的归类效率低的技术问题。
本领域普通技术人员可以理解,图8所示的结构仅为示意,计算机终端也可以是智能手机(如Android手机、iOS手机等)、平板电脑、掌声电脑以及移动互联网设备(Mobile Internet Devices,MID)、PAD等终端设备。图8其并不对上述电子装置的结构造成限定。例如,计算机终端10还可包括比图8中所示更多或者更少的组件(如网络接口、显示装置等),或者具有与图8所示不同的配置。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令终端设备相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:闪存盘、只读存储器(Read-Only Memory,ROM)、随机存取器(Random Access Memory,RAM)、磁盘或光盘等。
实施例6
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以用于保存上述实施例一所提供的数据归类的方法所执行的程序代码。
可选地,在本实施例中,上述存储介质可以位于计算机网络中计算机终端群中的任意一个计算机终端中,或者位于移动终端群中的任意一个移动终端中。
可选地,在本实施例中,存储介质被设置为存储用于执行以下步骤的程序代码:当在用户界面的任意位置检测到操作事件时,获取样式图标;在样式图标被拖动的过程中,根据样式图标在用户界面上的移动轨迹,确定待归类的至少一个目标对象;将待归类的至少一个目标对象转移至样式图标所在的目录下。
可选的,上述存储介质被设置为存储用于执行以下步骤的程序代码:获取样式图标在移动轨迹中依次经过的目标对象;如果样式图标所经过的任意一个或多个目标对象的坐标位置处于归类区域之内,则确定处于归类区域之内的目标对象为待归类的目标对象,或者,如果目标对象的图标与样式图标对应的归类区域的重合度超过预定阈值,则确定目标对象为待归类的目标对象;其中,归类区域为以样式图标在用户界面中的显示坐标为基准所划定的区域范围。
可选的,上述存储介质被设置为存储用于执行以下步骤的程序代码:如果检测到样式图标停留在处于归类区域之内的目标对象的停留时间超过预定阈值,则确定处于归类区域之内的目标对象为待归类的目标对象。
可选的,上述存储介质被设置为存储用于执行以下步骤的程序代码:在样式图标被拖动的过程中,获取样式图标在不同显示位置的图标坐标;基于每个图标坐标确定对应的归类区域,得到归类区域集合;在读取用户界面中显示的每个目标对象的显示坐标之后,将归类区域集合与每个目标对象的显示坐标进行匹配,获取与归类区域集合中任意一个或多个归类区域匹配的显示坐标,作为待归类的至少一个目标对象。
可选的,上述存储介质被设置为存储用于执行以下步骤的程序代码:当在用户界面的空白位置检测到操作事件时,获取空白位置的坐标,并基于空白位置的坐标绘制样式图标,其中,空白位置的坐标为样式图标的初始坐标;其中,当样式图标被拖动时,触发移动回调事件,移动回调事件用于将样式图标沿移动轨迹进行移动,样式图标的坐标以初始坐标为初始值按照移动轨迹动态变化。
可选的,上述存储介质被设置为存储用于执行以下步骤的程序代码:检测到操作事件时,读取用户界面中发生操作事件的位置坐标;以检测到的操作事件的位置坐标为基准,判断位置坐标的预定区域内是否包含图标,如果包含图标,则将图标作为样式图标,并标识图标对应的对象为待归类的目标对象;其中,当样式图标被拖动时,触发移动回调事件,移动回调事件用于将样式图标沿移动轨迹进行移动,样式图标的坐标基于移动轨迹动态变化。
可选的,上述存储介质被设置为存储用于执行以下步骤的程序代码:在确定位置坐标的预定区域内包含图标之后,将确定的图标进行放大,并将放大后的图标作为样式图标。
可选的,上述存储介质被设置为存储用于执行以下步骤的程序代码:如果位置坐标的预定区域内未检测到图标,基于检测到的操作事件的位置坐标绘制样式图标,其中,以检测到的操作事件的位置坐标为样式图标的初始坐标。
可选的,上述存储介质被设置为存储用于执行以下步骤的程序代码:获取样式图标对应的目标对象所保存的目录地址;将待归类的目标对象的存放地址设置为目录地址。
可选的,上述存储介质被设置为存储用于执行以下步骤的程序代码:在用户界面中显示归类图标,且待归类的目标对象的图标作为子图标显示在归类图标中;在打开归类图标之后,将归类图标按照预定的显示区域显示在用户界面中,其中,子图标依次归类显示在显示区域中;如果显示区域中的子图标被选中,并被拖拽到显示区域之外,则确定子图标被移出目录。
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。
在本发明的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
在本申请所提供的几个实施例中,应该理解到,所揭露的技术内容,可通过其它的方式实现。其中,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个***,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。

Claims (20)

  1. 一种数据归类的方法,其特征在于,包括:
    当在用户界面的任意位置检测到操作事件时,获取样式图标;
    在所述样式图标被拖动的过程中,根据所述样式图标在所述用户界面上的移动轨迹,确定待归类的至少一个目标对象;
    将所述待归类的至少一个目标对象转移至与所述样式图标所在的目录下。
  2. 根据权利要求1所述的方法,其特征在于,根据所述样式图标在所述用户界面上的移动轨迹,确定待归类的至少一个目标对象,包括:
    获取所述样式图标在所述移动轨迹中依次经过的目标对象;
    如果所述样式图标所经过的任意一个或多个目标对象的坐标位置处于归类区域之内,则确定处于所述归类区域之内的目标对象为待归类的目标对象,
    或者,如果目标对象的图标与所述样式图标对应的归类区域的重合度超过预定阈值,则确定所述目标对象为所述待归类的目标对象;
    其中,所述归类区域为以所述样式图标在所述用户界面中的显示坐标为基准所划定的区域范围。
  3. 根据权利要求2所述的方法,其特征在于,如果检测到所述样式图标停留在处于所述归类区域之内的目标对象的停留时间超过预定阈值,则确定处于所述归类区域之内的目标对象为所述待归类的目标对象。
  4. 根据权利要求1所述的方法,其特征在于,根据所述样式图标在所述用户界面上的移动轨迹,确定待归类的至少一个目标对象,包括:
    获取所述样式图标在不同显示位置的图标坐标;
    基于每个图标坐标确定对应的归类区域,得到归类区域集合;
    在读取所述用户界面中显示的每个目标对象的显示坐标之后,将所述归类区域集合与所述每个目标对象的显示坐标进行匹配,获取与所述归类区域集合中任意一个或多个归类区域匹配的显示坐标,作为所述待归类的至少一个目标对象。
  5. 根据权利要求1所述的方法,其特征在于,所述操作事件包括如下任意一种或多种事件:点击事件、滑动事件、拖拽事件。
  6. 根据权利要求1至5中任意一项所述的方法,其特征在于,当在所述用户界面的空白位置检测到所述操作事件时,获取所述空白位置的坐标,并基于所述空白位置的坐标绘制所述样式图标,其中,所述空白位置的坐标为所述样式图标的初始坐标;
    其中,当所述样式图标被拖动时,触发移动回调事件,所述移动回调事件用于将所述样式图标沿所述移动轨迹进行移动,所述样式图标的坐标以所述初始坐标为初始值按照所述移动轨迹动态变化。
  7. 根据权利要求1至5中任意一项所述的方法,其特征在于,当在用户界面的任意位置检测到操作事件时,获取样式图标包括:
    检测到所述操作事件时,读取所述用户界面中发生所述操作事件的位置坐标;
    以检测到的所述操作事件的位置坐标为基准,判断所述位置坐标的预定区域内是否包含图标,如果包含图标,则将所述图标作为所述样式图标,并标识所述图标对应的对象为待归类的目标对象;
    其中,当所述样式图标被拖动时,触发移动回调事件,所述移动回调事件用于将所述样式图标沿所述移动轨迹进行移动,所述样式图标的坐标基于所述移动轨迹动态变化。
  8. 根据权利要求7所述的方法,其特征在于,在确定所述位置坐标的预定区域内包含图标之后,将确定的所述图标进行放大,并将放大后的图标作为所述样式图标。
  9. 根据权利要求7所述的方法,其特征在于,如果所述位置坐标的预定区域内未检测到图标,基于检测到的所述操作事件的位置坐标绘制所述样式图标,其中,以检测到的所述操作事件的位置坐标为所述样式图标的初始坐标。
  10. 根据权利要求1所述的方法,其特征在于,将所述待归类的至少一个目标对象转移至所述样式图标所在的目录下,包括:
    获取所述样式图标对应的目标对象所保存的目录地址;
    将待归类的目标对象的存放地址设置为所述目录地址。
  11. 根据权利要求1所述的方法,其特征在于,在将所述待归类的至少一个目标对象转移至所述样式图标所在的目录下之后,所述方法还包括:
    在所述用户界面中显示归类图标,且待归类的目标对象的图标作为子图标显示在所述归类图标中;
    在打开所述归类图标之后,将所述归类图标按照预定的显示区域显示在所述用户界面中,其中,所述子图标依次归类显示在所述显示区域中;
    如果所述显示区域中的子图标被选中,并被拖拽到所述显示区域之外,则确定所述子图标被移出所述目录。
  12. 一种数据归类的方法,其特征在于,包括:
    当触摸屏感应到相应的触摸操作时,在所述触摸屏的任意位置生成样式图标;
    如果在所述触摸屏中拖拽所述样式图标,则根据所述样式图标的移动轨迹,确定待归类的至少一个目标对象;
    将所述待归类的至少一个目标对象的图标显示在所述样式图标的目录下。
  13. 根据权利要求12所述的方法,其特征在于,根据所述样式图标的移动轨迹,确定待归类的至少一个目标对象包括:在所述样式图标被拖动到所述触摸屏中的任意一个图标的显示位置的情况下,如果图标与所述样式图标的重合度超过预定阈值,则确定所述图标为被选中的待归类的目标对象。
  14. 根据权利要求12或13所述的方法,其特征在于,所述样式图标包括如下任意一种图标:所述触摸屏中当前显示的任意一个图标、在所述触摸屏中发生触摸的位置绘制的图标和在所述触摸屏中的默认位置绘制的图标。
  15. 根据权利要求12所述的方法,其特征在于,所述触摸操作包括如下任意一种或多种操作:点击操作、滑动操作、拖拽操作。
  16. 根据权利要求12或15所述的方法,其特征在于,当所述触摸屏感应到相应的所述触摸操作,且发生所述触摸操作的位置感应到的压力达到临界值时,生成所述样式图标。
  17. 根据权利要求12所述的方法,其特征在于,将所述待归类的至少一个目标对象的图标显示在所述样式图标的目录下,包括:如果检测到拖拽所述样式图标的动作结束,则移动所述待归类的至少一个目标对象的图标至所述样式图标的目录下,并在所述触摸屏中删除所述待归类的至少一个目标对象的图标。
  18. 根据权利要求12所述的方法,其特征在于,在将所述待归类的至少一个目标对象的图标显示在所述样式图标的目录下之后,所述方法还包括:在打开所述样式图标并显示归类后所有目标对象的图标之后,如果将任意一个归类后的图标拖拽至所述样式图标当前的显示区域之外,则确定被拖拽的图标移出所述目录,并在所述样式图标中删除移出所述目录的图标,和/或将移出所述目录的图像显示在所述触摸屏的其他位置。
  19. 一种数据归类的装置,其特征在于,包括:
    获取模块,用于当在用户界面的任意位置检测到操作事件时,获取样式图标;
    确定模块,用于在所述样式图标被拖动的过程中,根据所述样式图标在所述用户界面上的移动轨迹,确定待归类的至少一个目标对象;
    转移模块,用于将所述待归类的至少一个目标对象转移至所述样式图标所在的目录 下。
  20. 一种数据归类的装置,其特征在于,包括:
    生成模块,用于当触摸屏感应到相应的触摸操作时,在所述触摸屏的任意位置生成样式图标;
    确定模块,用于如果在所述触摸屏中拖拽所述样式图标,则根据所述样式图标的移动轨迹,确定待归类的至少一个目标对象;
    显示模块,用于将所述待归类的至少一个目标对象的图标显示在所述样式图标的目录下。
PCT/CN2016/108982 2015-12-18 2016-12-08 数据归类的方法和装置 WO2017101730A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510958667.7 2015-12-18
CN201510958667.7A CN106896974A (zh) 2015-12-18 2015-12-18 数据归类的方法和装置

Publications (1)

Publication Number Publication Date
WO2017101730A1 true WO2017101730A1 (zh) 2017-06-22

Family

ID=59055818

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/108982 WO2017101730A1 (zh) 2015-12-18 2016-12-08 数据归类的方法和装置

Country Status (2)

Country Link
CN (1) CN106896974A (zh)
WO (1) WO2017101730A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111311623A (zh) * 2020-02-26 2020-06-19 歌尔股份有限公司 图像分界方法、装置、设备及存储介质
CN111459486A (zh) * 2020-04-01 2020-07-28 杭州华望***科技有限公司 一种基于网页画布的图形拖动优化方法

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109375842B (zh) * 2018-08-24 2021-01-08 惠州Tcl移动通信有限公司 应用的快速归类方法、电子设备及具有存储功能的装置
CN113821152B (zh) * 2020-11-06 2024-06-18 北京沃东天骏信息技术有限公司 界面元素的位置确定方法及装置、介质和设备
CN114935992B (zh) * 2022-04-25 2023-10-10 北京海百川科技有限公司 一种基于人机交互的显示控制方法及***
WO2023216682A1 (zh) * 2022-05-12 2023-11-16 深圳传音控股股份有限公司 处理方法、智能终端及存储介质
CN114625707A (zh) * 2022-05-12 2022-06-14 深圳传音控股股份有限公司 处理方法、智能终端及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103076976A (zh) * 2013-01-07 2013-05-01 华为终端有限公司 添加应用图标的方法、移除应用图标的方法和装置
CN104808895A (zh) * 2015-03-30 2015-07-29 深圳市金立通信设备有限公司 一种图标整理方法
CN104965664A (zh) * 2015-05-26 2015-10-07 深圳市万普拉斯科技有限公司 应用程序操作方法和装置
CN105830907A (zh) * 2016-02-29 2016-08-10 山东省农作物种质资源中心 一种萝卜细胞核雄性不育系及其选育方法

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102033710B (zh) * 2010-04-07 2015-03-11 苹果公司 用于管理文件夹的方法和相关设备
KR20120012541A (ko) * 2010-08-02 2012-02-10 삼성전자주식회사 터치 디바이스에서 폴더 운용 방법 및 장치
CN102999286A (zh) * 2011-09-16 2013-03-27 腾讯科技(深圳)有限公司 一种快速创建文件夹的***及方法
CN102830907B (zh) * 2012-07-13 2016-09-07 中兴通讯股份有限公司 一种触屏移动终端及其放置图标的方法
CN103294401B (zh) * 2013-06-03 2016-02-17 广东欧珀移动通信有限公司 一种具有触摸屏的电子设备的图标处理方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103076976A (zh) * 2013-01-07 2013-05-01 华为终端有限公司 添加应用图标的方法、移除应用图标的方法和装置
CN104808895A (zh) * 2015-03-30 2015-07-29 深圳市金立通信设备有限公司 一种图标整理方法
CN104965664A (zh) * 2015-05-26 2015-10-07 深圳市万普拉斯科技有限公司 应用程序操作方法和装置
CN105830907A (zh) * 2016-02-29 2016-08-10 山东省农作物种质资源中心 一种萝卜细胞核雄性不育系及其选育方法

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111311623A (zh) * 2020-02-26 2020-06-19 歌尔股份有限公司 图像分界方法、装置、设备及存储介质
CN111459486A (zh) * 2020-04-01 2020-07-28 杭州华望***科技有限公司 一种基于网页画布的图形拖动优化方法
CN111459486B (zh) * 2020-04-01 2023-05-23 杭州华望***科技有限公司 一种基于网页画布的图形拖动优化方法

Also Published As

Publication number Publication date
CN106896974A (zh) 2017-06-27

Similar Documents

Publication Publication Date Title
WO2017101730A1 (zh) 数据归类的方法和装置
US20220292590A1 (en) Two-dimensional code identification method and device, and mobile terminal
CN105224195B (zh) 终端操作方法和装置
CN106201170B (zh) 一种应用图标的角标处理方法及终端
CN104090761B (zh) 一种截图应用装置和方法
KR102165818B1 (ko) 입력 영상을 이용한 사용자 인터페이스 제어 방법, 장치 및 기록매체
CN103870535A (zh) 信息搜索方法和装置
CN103543906B (zh) 一种应用图标的交互管理方法和触控终端
WO2022001341A1 (zh) 应用程序标签生成方法、应用界面显示方法以及装置
CN105704375B (zh) 一种图像处理的方法、终端及计算机可读存储介质
CN105095221B (zh) 一种触摸屏终端中查找信息记录的方法及其装置
WO2015106510A1 (zh) 应用的分屏方法与装置、智能终端、存储介质
US10331327B2 (en) Message display method, apparatus and terminal
CN106802894B (zh) 文件归纳方法与设备
WO2021179803A1 (zh) 内容分享方法、装置、电子设备及存储介质
CN107870712A (zh) 一种截图处理方法及装置
CN105354284B (zh) 模板的处理方法及装置、短信识别方法及装置
WO2017008646A1 (zh) 一种在触控终端上选择多个目标的方法和设备
CN109213419A (zh) 触摸操作处理方法、装置及存储介质
CN105573653A (zh) 多个对象选中方法和终端
CN108268184B (zh) 数据的推送方法和装置及移动设备
CN105892792A (zh) 终端设备的操作方法和终端设备
WO2020103002A1 (zh) 一种文件收藏方法、文件收藏装置及终端设备
WO2017143575A1 (zh) 对图片的内容进行检索的方法、便携式电子设备和图形用户界面
CN106445319B (zh) 一种文件定位方法及终端

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16874787

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16874787

Country of ref document: EP

Kind code of ref document: A1