[go: up one dir, main page]

CN103207750B - The method of icon convergent-divergent and device - Google Patents

The method of icon convergent-divergent and device Download PDF

Info

Publication number
CN103207750B
CN103207750B CN201210014118.0A CN201210014118A CN103207750B CN 103207750 B CN103207750 B CN 103207750B CN 201210014118 A CN201210014118 A CN 201210014118A CN 103207750 B CN103207750 B CN 103207750B
Authority
CN
China
Prior art keywords
icon
icons
convergent
divergent
contact
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210014118.0A
Other languages
Chinese (zh)
Other versions
CN103207750A (en
Inventor
丁寻
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201210014118.0A priority Critical patent/CN103207750B/en
Publication of CN103207750A publication Critical patent/CN103207750A/en
Application granted granted Critical
Publication of CN103207750B publication Critical patent/CN103207750B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a kind of method of icon convergent-divergent and device, relate to field of computer technology, for the problem solving to change specified icons size in prior art。The method include that the contact information that monitoring user selects on the table;When the corresponding same icon of the position coordinates monitoring the contact that user selects, this icon is defined as specified icons;Monitor the motion track of the contact that described user selects in real time, determine the displacement of the contact that described user selects, and the real-time distance that the displacement of the contact selected according to described user is determined between the contact that described user selects, the real-time distance of the contact described user selected and the ratio of initial distance are defined as the pantograph ratio of described specified icons;Described specified icons is zoomed in and out by the pantograph ratio according to described specified icons, obtains the specified icons after convergent-divergent。The present invention is applicable to field of computer technology, for icon is zoomed in and out process。

Description

图标缩放的方法及装置Icon scaling method and device

技术领域 technical field

本发明涉及计算机技术领域,尤其涉及一种图标缩放的方法及装置。The present invention relates to the field of computer technology, in particular to a method and device for scaling icons.

背景技术 Background technique

随着信息技术的发展,终端设备已经成为人们日常生活、工作中不可缺少的工具,常用的终端设备包括计算机、智能手机等。用户在与终端设备的交互主要通过桌面实现,即桌面是人机交互的主要接口,例如用户通过桌面上的图标向终端发送指令,以及终端通过桌面向用户展示用户需要的信息。With the development of information technology, terminal equipment has become an indispensable tool in people's daily life and work. Commonly used terminal equipment includes computers, smart phones, etc. The interaction between the user and the terminal device is mainly realized through the desktop, that is, the desktop is the main interface for human-computer interaction, for example, the user sends instructions to the terminal through the icons on the desktop, and the terminal displays the information required by the user to the user through the desktop.

对于目前一些主流的操作系统(例如应用于计算机的windows系统、应用于智能手机的ios系统以及android系统),桌面上都存在一系列图标,这些图标是应用程序的入口,用户可以通过选择图标以运行相应的应用程序。一般的,桌面上图标的大小是预先设定的,且桌面上图标的大小均相同。For some current mainstream operating systems (such as the windows system applied to computers, the ios system applied to smart phones, and the android system), there are a series of icons on the desktop, and these icons are the entrances of application programs. Run the corresponding application. Generally, the size of the icons on the desktop is preset, and the sizes of the icons on the desktop are the same.

在实现本发明的过程中,发明人发现现有技术中至少存在如下问题:In the process of realizing the present invention, the inventor finds that there are at least the following problems in the prior art:

当图标过小时,会导致用户难以看清图标,不便于用户对图标进行选择及管理;在一些可以设定图标大小的系统中(例如windows系统),当将桌面上的图标设定为大图标时,由于桌面上的图标大小相同,会严重降低桌面上能够放置的图标数量,给用户使用带来不便。When the icon is too small, it will be difficult for the user to see the icon clearly, and it is not convenient for the user to select and manage the icon; in some systems where the icon size can be set (such as Windows system), when the icon on the desktop is set In this case, since the icons on the desktop have the same size, the number of icons that can be placed on the desktop will be seriously reduced, causing inconvenience to the user.

发明内容 Contents of the invention

本发明的实施例提供一种图标缩放的方法及装置,能够对用户选定的图标进行缩放,便于用户对该图标进行选择及管理,提升用户体验。Embodiments of the present invention provide a method and device for scaling an icon, which can scale an icon selected by a user, facilitate the user to select and manage the icon, and improve user experience.

为达到上述目的,本发明的实施例采用如下技术方案:In order to achieve the above object, embodiments of the present invention adopt the following technical solutions:

一方面,本发明实施例提供了一种图标缩放的方法,所述方法包括:On the one hand, an embodiment of the present invention provides a method for scaling an icon, the method comprising:

监测用户在桌面上选择的触点信息,所述触点信息包括用户选择的触点的位置坐标及个数;Monitoring the touch point information selected by the user on the desktop, the touch point information including the position coordinates and the number of the touch points selected by the user;

当监测到用户选择的触点的位置坐标对应同一个图标时,将该图标确定为指定图标,同时根据所述用户选择的触点的位置坐标确定所述用户选择的触点之间的初始距离;When it is detected that the position coordinates of the touch points selected by the user correspond to the same icon, the icon is determined as the designated icon, and at the same time, the initial distance between the touch points selected by the user is determined according to the position coordinates of the touch points selected by the user ;

实时监测所述用户选择的触点的移动轨迹,确定所述用户选择的触点的位移,并根据所述用户选择的触点的位移确定所述用户选择的触点之间的实时距离,将所述用户选择的触点的实时距离与初始距离的比值确定为所述指定图标的缩放比;monitoring the moving trajectory of the touch points selected by the user in real time, determining the displacement of the touch points selected by the user, and determining the real-time distance between the touch points selected by the user according to the displacement of the touch points selected by the user, and The ratio of the real-time distance of the touch point selected by the user to the initial distance is determined as the scaling ratio of the designated icon;

根据所述指定图标的缩放比对所述指定图标进行缩放,得到缩放后的指定图标。The designated icon is scaled according to the scaling ratio of the designated icon to obtain the designated icon after scaling.

另一方面,本发明实施例还提供了一种图标缩放的装置,所述装置包括:On the other hand, an embodiment of the present invention also provides a device for scaling icons, the device comprising:

触点检测单元,用于监测用户在桌面上选择的触点信息,所述触点信息包括用户选择的触点的位置坐标及个数;The contact detection unit is used to monitor the contact information selected by the user on the desktop, and the contact information includes the position coordinates and the number of the contacts selected by the user;

图标确定单元,用于当监测到用户选择的触点的位置坐标对应同一个图标时,将该图标确定为指定图标,同时根据所述用户选择的触点的位置坐标确定所述用户选择的触点之间的初始距离;An icon determining unit, configured to determine the icon as a designated icon when it is detected that the position coordinates of the touch points selected by the user correspond to the same icon, and at the same time determine the touch point selected by the user according to the position coordinates of the touch points selected by the user. initial distance between points;

缩放比确定单元,用于实时监测所述用户选择的触点的移动轨迹,确定所述用户选择的触点的位移,并根据所述用户选择的触点的位移确定所述用户选择的触点之间的实时距离,将所述用户选择的触点的实时距离与初始距离的比值确定为所述指定图标的缩放比;A scaling ratio determining unit, configured to monitor the moving track of the touch point selected by the user in real time, determine the displacement of the touch point selected by the user, and determine the touch point selected by the user according to the displacement of the touch point selected by the user The real-time distance between, the ratio of the real-time distance of the touch point selected by the user to the initial distance is determined as the scaling ratio of the specified icon;

图标缩放单元,用于根据所述指定图标的缩放比对所述指定图标进行缩放,得到缩放后的指定图标。The icon scaling unit is configured to scale the specified icon according to the scaling ratio of the specified icon to obtain a scaled specified icon.

本发明实施例提供的图标缩放的方法及装置,能够根据用户需求对指定图标进行缩放,便于用户对图标进行选择及管理,使用户获得较好体验。The icon scaling method and device provided by the embodiments of the present invention can scale a designated icon according to user requirements, facilitate selection and management of icons by the user, and enable the user to obtain a better experience.

附图说明 Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1为本发明实施例1提供的图标缩放的方法的流程示意图;FIG. 1 is a schematic flowchart of a method for zooming icons provided in Embodiment 1 of the present invention;

图2为本发明实施例2提供的图标缩放的方法的流程示意图;FIG. 2 is a schematic flowchart of a method for zooming icons provided in Embodiment 2 of the present invention;

图3、图4为本发明实施例2提供的图标缩放的方法的桌面效果示意图;FIG. 3 and FIG. 4 are schematic diagrams of desktop effects of the method for zooming icons provided in Embodiment 2 of the present invention;

图5-图8为本发明实施例3提供的图标缩放的装置的结构示意图。5-8 are schematic structural diagrams of an icon zooming device provided by Embodiment 3 of the present invention.

具体实施方式 detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

实施例1Example 1

本发明实施例提供了一种图标缩放的方法,如图1所示,所述方法包括:An embodiment of the present invention provides a method for scaling an icon, as shown in FIG. 1 , the method includes:

101、终端设备监测用户在桌面上选择的触点信息,所述触点信息包括用户选择的触点的位置坐标及个数。101. The terminal device monitors touchpoint information selected by a user on a desktop, where the touchpoint information includes position coordinates and the number of touchpoints selected by the user.

具体的,本发明实施例中提供的终端可以是计算机、智能手机、平板电脑等,但不仅限于此。Specifically, the terminal provided in the embodiment of the present invention may be a computer, a smart phone, a tablet computer, etc., but is not limited thereto.

102、当终端设备监测到用户选择的触点的位置坐标对应同一个图标时,将该图标确定为指定图标,同时根据所述用户选择的触点的位置坐标确定所述用户选择的触点之间的初始距离。102. When the terminal device detects that the position coordinates of the touch points selected by the user correspond to the same icon, determine the icon as the designated icon, and at the same time determine the position coordinates of the touch points selected by the user. the initial distance between.

103、终端设备实时监测用户选择的触点的移动轨迹,确定所述用户选择的触点的位移,并根据所述用户选择的触点的位移确定所述用户选择的触点之间的实时距离,将所述用户选择的触点的实时距离与初始距离的比值确定为所述指定图标的缩放比。103. The terminal device monitors the movement trajectory of the touch points selected by the user in real time, determines the displacement of the touch points selected by the user, and determines the real-time distance between the touch points selected by the user according to the displacement of the touch points selected by the user , determining the ratio of the real-time distance of the touch point selected by the user to the initial distance as the scaling ratio of the designated icon.

104、终端设备根据所述指定图标的缩放比对所述指定图标进行缩放,得到缩放后的指定图标。104. The terminal device scales the specified icon according to the scaling ratio of the specified icon, to obtain a scaled specified icon.

值得说明的是,在本发明实施例中,对图标进行缩放仅指改变图标的大小,至于图标的其他参数(例如形状、色彩等)不做改动。It is worth noting that, in the embodiment of the present invention, scaling an icon only refers to changing the size of the icon, and other parameters of the icon (such as shape, color, etc.) are not changed.

优选的,本发明实施例提供的技术方案更适用于智能手机、平板电脑等手指触控的终端设备,但不仅限于此。Preferably, the technical solutions provided by the embodiments of the present invention are more applicable to finger-touch terminal devices such as smartphones and tablet computers, but are not limited thereto.

本发明实施例提供的图标缩放的方法,能够根据用户需求对指定图标进行缩放,按照用户需求改变指定图标的大小,便于用户对图标进行选择及管理,使用户获得较好体验。The icon zooming method provided by the embodiment of the present invention can zoom the specified icon according to the user's demand, change the size of the specified icon according to the user's demand, facilitate the user to select and manage the icon, and enable the user to obtain a better experience.

实施例2Example 2

本发明实施例提供了一种图标缩放的方法,如图2所示,所述方法包括:An embodiment of the present invention provides a method for zooming icons, as shown in FIG. 2 , the method includes:

201、终端设备监测用户选择的触点信息,其中,所述触点信息包括用户选择的触点的位置坐标及个数。201. The terminal device monitors the touch point information selected by the user, where the touch point information includes position coordinates and the number of the touch points selected by the user.

为了便于理解,本发明实施例以智能手机、平板电脑等手指触控的终端设备为例进行说明,则用户通过手指点击或滑动以输入信息。For ease of understanding, the embodiment of the present invention is described by taking a finger-touch terminal device such as a smart phone and a tablet computer as an example, and a user taps or slides a finger to input information.

值得说明的是,本实施例提供的技术方案也可以应用于其他类型的终端设备,此处不做限定。It should be noted that the technical solution provided in this embodiment can also be applied to other types of terminal devices, which is not limited here.

202、当终端设备监测到用户选择的触点的位置坐标对应同一个图标时,将该图标确定为指定图标,同时根据所述用户选择的触点的位置坐标确定所述用户选择的触点之间的初始距离。202. When the terminal device detects that the position coordinates of the touch points selected by the user correspond to the same icon, determine the icon as the specified icon, and at the same time determine the location of the touch points selected by the user according to the position coordinates of the touch points selected by the user. the initial distance between.

值得说明的是,当用户选择的对应同一个坐标的触点至少为2个时,才能将该坐标确定为指定坐标。为了便于理解,本发明实施例以2个图标为例进行说明,实际应用中不仅限于此,即本步骤为:It is worth noting that the coordinate can only be determined as the designated coordinate when at least two touch points corresponding to the same coordinate are selected by the user. In order to facilitate understanding, the embodiment of the present invention uses two icons as an example for illustration, and the actual application is not limited to this, that is, this step is:

当终端设备监测到用户在桌面上同时选择2个触点、且所选择的2个触点的位置坐标对应同一个图标时,将该图标确定为指定图标。也就是说,当终端设备监测到用户用2个手指点击同一图标时,则判定所述用户需要对该指定图标进行缩放操作。When the terminal device detects that the user selects two touch points on the desktop at the same time, and the position coordinates of the two selected touch points correspond to the same icon, the icon is determined as the specified icon. That is to say, when the terminal device detects that the user clicks on the same icon with two fingers, it determines that the user needs to perform a zoom operation on the specified icon.

另一方面,如果用户选择的触点数目不为2,或者用户选择的2个触点对应不同的图标,则按照终端设备本身预设的规则进行处理。On the other hand, if the number of touchpoints selected by the user is not 2, or the two touchpoints selected by the user correspond to different icons, the processing is performed according to the preset rules of the terminal device itself.

值得说明的是,在实际应用中,桌面上图标的形状各有不同,但每个图标在桌面上所占的区域一般均为矩形区域,且该区域略大于图标本身。当用户在桌面上选择的触点的位置坐标属于某图标所占区域时,终端设备会判定用户选择了该图标。It should be noted that, in actual applications, the icons on the desktop have different shapes, but the area occupied by each icon on the desktop is generally a rectangular area, and the area is slightly larger than the icon itself. When the position coordinates of the touch point selected by the user on the desktop belong to the area occupied by an icon, the terminal device will determine that the user has selected the icon.

203、当所述终端设备确定指定图标后,根据用户选择的2个触点的位置坐标确定用户选择的2个触点之间的初始距离,即用户点击所述指定图标时2个手指的初始距离。203. After the terminal device determines the specified icon, determine the initial distance between the two touch points selected by the user according to the position coordinates of the two touch points selected by the user, that is, the initial distance between the two fingers when the user clicks on the specified icon. distance.

204、终端设备实时监测用户选择的触点的移动轨迹,确定用户选择的触点的位移,并根据所述用户选择的触点的位移确定所述用户选择的触点之间的实时距离,将所述用户选择的触点的实时距离与初始距离的比值确定为所述指定图标的缩放比。204. The terminal device monitors the movement trajectory of the touch points selected by the user in real time, determines the displacement of the touch points selected by the user, and determines the real-time distance between the touch points selected by the user according to the displacement of the touch points selected by the user, and sets The ratio of the real-time distance of the touch point selected by the user to the initial distance is determined as the scaling ratio of the designated icon.

也就是说,当用户手指在终端设备的桌面上滑动时,终端设备会实时监测用户的2个手指之间的距离,根据用户手指之间的实时距离与所述处理距离确定所述指定图标的缩放比。That is to say, when the user's finger slides on the desktop of the terminal device, the terminal device will monitor the distance between the two fingers of the user in real time, and determine the location of the specified icon according to the real-time distance between the user's fingers and the processing distance. zoom ratio.

205、终端设备根据所述图标的缩放比确定所述指定图标缩放后的大小,包括所述指定图标缩放后的宽和高。205. The terminal device determines the scaled size of the specified icon according to the scaling ratio of the icon, including the scaled width and height of the specified icon.

206、终端设备在所述指定图标在桌面上所占区域内选择一个点作为参照点,按照所述指定图标缩放后的大小对该指定图标进行缩放,得到缩放后的指定图标。其中,所述参照点在桌面上的位置固定不变,用于确定所述指定图标缩放后在桌面上的位置。206. The terminal device selects a point in the area occupied by the specified icon on the desktop as a reference point, and scales the specified icon according to the scaled size of the specified icon to obtain a scaled specified icon. Wherein, the position of the reference point on the desktop is fixed, and is used to determine the position of the designated icon on the desktop after zooming.

也就是说,当用户手指在桌面上进行滑动,终端设备会根据用户选择的触点的实时距离对所述指定图标进行缩放。That is to say, when the user's finger slides on the desktop, the terminal device will scale the designated icon according to the real-time distance of the touch point selected by the user.

优选的,由于图标在桌面上所占的区域一般均为矩形区域,终端设备可以将所述指定图标在桌面上所占区域的左上角的点作为参照点。Preferably, since the area occupied by the icon on the desktop is generally a rectangular area, the terminal device may use the point at the upper left corner of the area occupied by the specified icon on the desktop as a reference point.

具体的,如图3中a图所示,桌面上的图标初始大小相同。当用户选择对图标5进行缩放时,则以图标5所占区域左上角的点为参照点,对图标5进行缩放,缩放后的效果图如图3中b图所示。Specifically, as shown in figure a in FIG. 3 , the icons on the desktop have the same initial size. When the user chooses to zoom the icon 5, the icon 5 is zoomed with the point at the upper left corner of the area occupied by the icon 5 as a reference point, and the zoomed effect diagram is shown in figure b in FIG. 3 .

值得说明的是,在本发明实施例中,对图标进行缩放仅指改变图标的大小,至于图标的其他参数(例如形状、色彩等)不做改动。It is worth noting that, in the embodiment of the present invention, scaling an icon only refers to changing the size of the icon, and other parameters of the icon (such as shape, color, etc.) are not changed.

207、终端设备根据缩放后的图标大小对桌面上的图标进行实时布局。207. The terminal device performs real-time layout of the icons on the desktop according to the scaled icon sizes.

具体的,终端设备可以按照缩放前图标之间的间距对桌面上位于所述指定图标右侧及下侧的图标进行位置调整,以使得桌面上的图标能够正常显示。例如:根据图3所示,当用户对图标5进行缩放后,终端设备可以对位于图标5右侧的图标6、图标7、图标8,以及位于图标5下侧的图标9、图标10进行重新布局,以使得图标6-10能够正常显示。Specifically, the terminal device may adjust the positions of the icons located on the right side and below the specified icon on the desktop according to the distance between the icons before zooming, so that the icons on the desktop can be displayed normally. For example: as shown in Figure 3, when the user scales the icon 5, the terminal device can resize the icons 6, 7, and 8 located on the right side of the icon 5, and the icons 9 and 10 located on the lower side of the icon 5. Layout, so that icons 6-10 can be displayed normally.

或者or

所示终端设备也可以根据用户指示对桌面上的图标进行位置调整,以使得桌面上的图标能够正常显示。例如,当用户对图标5进行缩放后,用户可以根据个人爱好对桌面上的图标进行位置调整。The shown terminal device can also adjust the position of the icons on the desktop according to the user's instructions, so that the icons on the desktop can be displayed normally. For example, after the user scales the icon 5, the user can adjust the position of the icon on the desktop according to personal preference.

值得说明的是,如图4所示,当用户对多个图标进行缩放后,桌面上的图标可能变得不规则,而且可能会导致桌面上的图标无法全部显示,则在桌面上建立一个隐藏图标查看选项41,用于当用户选择所述隐藏图标查看选项时,向用户显示隐藏的图标。It is worth noting that, as shown in Figure 4, when the user scales multiple icons, the icons on the desktop may become irregular, and may cause the icons on the desktop to not be fully displayed. The icon viewing option 41 is configured to display hidden icons to the user when the user selects the hidden icon viewing option.

显而易见的,图4所描述的显示效果图仅为本发明实现方式的一种,当桌面上图标较大导致桌面无法显示所有图标时,显示被隐藏图标的方式有多种,此处不做限定。Obviously, the display effect diagram described in FIG. 4 is only one implementation of the present invention. When the icons on the desktop are too large to display all the icons on the desktop, there are many ways to display the hidden icons, which are not limited here. .

208、当终端设备检测到用户终止缩放操作时,停止对所述指定图标的缩放处理。208. When the terminal device detects that the user terminates the zooming operation, stop zooming processing on the specified icon.

例如:根据本发明实施例,当终端设备检测到用户在桌面上同时选择的触点的个数不为2、或者用户选择的触点在缩放过程中脱离了指定图标的范围时,则判定用户终止缩放操作。也就是说,当用户的手指离开所述指定图标,或者用第3个指头点击桌面时,终端设备判定用户终止了缩放操作。For example: according to the embodiment of the present invention, when the terminal device detects that the number of touch points simultaneously selected by the user on the desktop is not 2, or the touch points selected by the user are out of the range of the specified icon during the zooming process, it is determined that the user Terminates the zoom operation. That is to say, when the user's finger leaves the specified icon, or clicks on the desktop with the third finger, the terminal device determines that the user has terminated the zooming operation.

本发明实施例提供的图标缩放的方法,能够根据用户需求对指定图标进行缩放,按照用户需求改变指定图标的大小,便于用户对图标进行选择及管理;同时还能够对缩放后的图标进行实时布局,使用户获得较好体验。The icon scaling method provided by the embodiment of the present invention can scale the specified icon according to the user's demand, change the size of the specified icon according to the user's demand, and facilitate the user to select and manage the icon; at the same time, it can also perform real-time layout on the scaled icon , so that users can get a better experience.

实施例3Example 3

本发明实施例提供了一种图标缩放的装置,能够实现上述方法实施例,如图5所示,所述装置包括:An embodiment of the present invention provides an icon zooming device, which can implement the above method embodiment, as shown in FIG. 5 , the device includes:

触点检测单元51,用于监测用户在桌面上选择的触点信息,所述触点信息包括用户选择的触点的位置坐标及个数;The contact detection unit 51 is used to monitor the contact information selected by the user on the desktop, and the contact information includes the position coordinates and the number of the contacts selected by the user;

图标确定单元52,用于当监测到用户选择的触点的位置坐标对应同一个图标时,将该图标确定为指定图标,同时根据所述用户选择的触点的位置坐标确定所述用户选择的触点之间的初始距离;The icon determination unit 52 is configured to determine the icon as the specified icon when it is detected that the position coordinates of the touch points selected by the user correspond to the same icon, and at the same time determine the position coordinates of the touch points selected by the user. initial distance between contacts;

缩放比确定单元53,用于实时监测所述用户选择的触点的移动轨迹,确定所述用户选择的触点的位移,并根据所述用户选择的触点的位移确定所述用户选择的触点之间的实时距离,将所述用户选择的触点的实时距离与初始距离的比值确定为所述指定图标的缩放比;A scaling ratio determining unit 53, configured to monitor the movement track of the touch point selected by the user in real time, determine the displacement of the touch point selected by the user, and determine the touch point selected by the user according to the displacement of the touch point selected by the user. The real-time distance between the points, the ratio of the real-time distance of the touch point selected by the user to the initial distance is determined as the scaling ratio of the designated icon;

图标缩放单元54,用于根据所述指定图标的缩放比对所述指定图标进行缩放,得到缩放后的指定图标。The icon scaling unit 54 is configured to scale the specified icon according to the scaling ratio of the specified icon to obtain a scaled specified icon.

具体的,所述触点检测单元51用于检测用户选择的触点的位置坐标是否对应同一个图标,若是,则确定该图标为所述指定图标。Specifically, the touch point detection unit 51 is configured to detect whether the position coordinates of the touch points selected by the user correspond to the same icon, and if so, determine that the icon is the specified icon.

进一步的,如图6所示,所述图标缩放装置还包括图标布局单元55,用于对桌面上的图标进行实时布局,以使得桌面上的图标能够正常显示。Further, as shown in FIG. 6 , the icon zooming device further includes an icon layout unit 55 for real-time layout of the icons on the desktop, so that the icons on the desktop can be displayed normally.

根据图6所示的图标缩放装置,进一步的,如图7所示,所述缩放比确定单元53包括第一确定子单元531和第二确定子单元532,所述图标布局单元55包括图标位置调整子单元551,其中:According to the icon scaling device shown in FIG. 6 , further, as shown in FIG. 7 , the scaling ratio determining unit 53 includes a first determining subunit 531 and a second determining subunit 532, and the icon layout unit 55 includes icon position Adjustment subunit 551, wherein:

第一确定子单元531,用于根据所述缩放比确定所述指定图标缩放后的大小,包括所述指定图标缩放后的宽和高;The first determination subunit 531 is configured to determine the scaled size of the designated icon according to the scaling ratio, including the scaled width and height of the designated icon;

第二确定子单元532,用于在所述指定图标在桌面上所占区域内选择一个点作为参照点,按照所述第一确定子单元确定的指定图标缩放后的大小对该指定图标进行缩放,其中,所述参照点在桌面上的位置固定不变,用于确定所述指定图标缩放后在桌面上的位置;The second determining subunit 532 is configured to select a point within the area occupied by the designated icon on the desktop as a reference point, and scale the designated icon according to the scaled size of the designated icon determined by the first determining subunit , wherein the position of the reference point on the desktop is fixed, and is used to determine the position of the specified icon on the desktop after zooming;

图标位置调整子单元551,用于按照缩放前图标之间的间距对桌面上位于所述指定图标右侧及下侧的图标进行位置调整,以使得桌面上的图标能够正常显示;或者The icon position adjustment subunit 551 is configured to adjust the position of the icons located on the right side and the lower side of the specified icon on the desktop according to the distance between the icons before zooming, so that the icons on the desktop can be displayed normally; or

图标位置调整子单元551还用于根据用户指示对桌面上的图标进行位置调整,以使得桌面上的图标能够正常显示。The icon position adjustment subunit 551 is also configured to adjust the positions of the icons on the desktop according to the user's instructions, so that the icons on the desktop can be displayed normally.

优选的,所述第二确定子单元532具体还用于当所述指定图标在桌面上所占区域是矩形时,将所述指定图标在桌面上所占区域的左上角的点作为参照点。Preferably, the second determining subunit 532 is specifically further configured to use the point at the upper left corner of the area occupied by the designated icon on the desktop as a reference point when the area occupied by the designated icon on the desktop is a rectangle.

进一步的,如图8所示,所述装置还包括:Further, as shown in Figure 8, the device also includes:

隐藏图标查看单元56,用于当缩放后的图标变大、导致桌面上的所有图标无法全部显示时,在桌面上建立一个隐藏图标查看选项,用于当用户选择所述隐藏图标查看选项时,向用户显示隐藏的图标。Hidden icon viewing unit 56, used to set up a hidden icon viewing option on the desktop when the zoomed icon becomes larger, causing all icons on the desktop to be displayed, for when the user selects the hidden icon viewing option, Show hidden icons to the user.

本发明实施例提供的图标缩放的装置,能够根据用户需求对指定图标进行缩放,按照用户需求确定指定图标的大小,便于用户对图标进行选择及管理;同时还能够对缩放后的图标进行实时布局,使用户获得较好体验。The icon scaling device provided by the embodiment of the present invention can scale the specified icon according to the user's demand, and determine the size of the specified icon according to the user's demand, which is convenient for the user to select and manage the icon; at the same time, it can also perform real-time layout on the scaled icon , so that users can get a better experience.

值得说明的是,本发明提供了技术方案可以通过应用程序实现,也可以通过硬件实现,还可以嵌入于终端设备中或操作系统中实现,但具体的实现方法不仅限于此。It is worth noting that the technical solution provided by the present invention can be implemented through application programs, hardware, or embedded in terminal equipment or operating systems, but the specific implementation method is not limited thereto.

通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在可读取的存储介质中,如计算机的软盘,硬盘或光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus necessary general-purpose hardware, and of course also by hardware, but in many cases the former is a better embodiment . Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a readable storage medium, such as a floppy disk of a computer , a hard disk or an optical disk, etc., including several instructions for enabling a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in various embodiments of the present invention.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.

Claims (8)

1. the method for an icon convergent-divergent, it is characterised in that including:
The contact information that monitoring user selects on the table, described contact information includes position coordinates and the number of the contact that user selects;
When the corresponding same icon of the position coordinates monitoring the contact that user selects, this icon being defined as specified icons, the position coordinates of the contact simultaneously selected according to described user determines the initial distance between the contact that described user selects;
Monitor the motion track of the contact that described user selects in real time, determine the displacement of the contact that described user selects, and the real-time distance that the displacement of the contact selected according to described user is determined between the contact that described user selects, the real-time distance of the contact described user selected and the ratio of initial distance are defined as the pantograph ratio of described specified icons;
Described specified icons is zoomed in and out by the pantograph ratio according to described specified icons, obtains the specified icons after convergent-divergent;
The icon on desktop icon on desktop carried out real-time layout, so that can normally show。
2. the method for icon convergent-divergent according to claim 1, it is characterised in that described specified icons is zoomed in and out by the described pantograph ratio according to described specified icons, obtains the specified icons after convergent-divergent and includes:
The size after described specified icons convergent-divergent is determined, including the width after described specified icons convergent-divergent and height according to described pantograph ratio;
Select a point as reference point in described specified icons on the table shared region, according to the size after described specified icons convergent-divergent, this specified icons is zoomed in and out, wherein, described reference point position on the table immobilizes, for determining after described specified icons convergent-divergent position on the table;
Described icon on desktop carried out real-time layout include:
According to spacing between icon before convergent-divergent to desktop being positioned on the right side of described specified icons and the icon of downside carries out position adjustment, so that the icon on desktop can normally show;Or
The icon on desktop according to user's instruction, the icon on desktop carried out position adjustment, so that can normally show。
3. the method for icon convergent-divergent according to claim 2, it is characterised in that when shared region is rectangle to described specified icons on the table, described selects a point to include as reference point in described specified icons on the table shared region:
Using the point in the described specified icons upper left corner in shared region on the table as reference point。
4. the method for the icon convergent-divergent according to any one of claim 1-3, it is characterised in that when the icon after convergent-divergent becomes big, causes that all icons on desktop cannot all show, described method also includes:
Set up a hidden icons on the table and check option, for when user selects described hidden icons to check option, displaying to the user that hiding icon。
5. the device of an icon convergent-divergent, it is characterised in that including:
Contact detection unit, for monitoring the contact information that user selects on the table, described contact information includes position coordinates and the number of the contact that user selects;
Icon determines unit, for when monitoring the position coordinates same icon of correspondence of the contact that user selects, this icon is defined as specified icons, and the position coordinates of the contact simultaneously selected according to described user determines the initial distance between the contact that described user selects;
Pantograph ratio determines unit, for monitoring the motion track of the contact that described user selects in real time, determine the displacement of the contact that described user selects, and the real-time distance that the displacement of the contact selected according to described user is determined between the contact that described user selects, the real-time distance of the contact described user selected and the ratio of initial distance are defined as the pantograph ratio of described specified icons;
Icon unit for scaling, zooms in and out described specified icons for the pantograph ratio according to described specified icons, obtains the specified icons after convergent-divergent;
Icon layout unit, for carrying out real-time layout to the icon on desktop, so that the icon on desktop can normally show。
6. the device of icon convergent-divergent according to claim 5, it is characterised in that described icon unit for scaling includes:
First determines subelement, for determining the size after described specified icons convergent-divergent according to described pantograph ratio, including the width after described specified icons convergent-divergent and height;
Second determines subelement, for selecting a point as reference point in described specified icons on the table shared region, this specified icons is zoomed in and out by the size after determining, according to described first, the specified icons convergent-divergent that subelement is determined, wherein, described reference point position on the table immobilizes, for determining after described specified icons convergent-divergent position on the table;
Described icon layout unit includes:
Picture mark position adjusts subelement, for according to spacing between icon before convergent-divergent to desktop being positioned on the right side of described specified icons and the icon of downside carries out position adjustment so that the icon on desktop can normally show;Or
Described picture mark position adjusts subelement and is additionally operable to, according to user's instruction, the icon on desktop is carried out position adjustment, so that the icon on desktop can normally show。
7. the device of icon convergent-divergent according to claim 6, it is characterized in that, described second determines that subelement is specifically for when shared region is rectangle to described specified icons on the table, using the point in the described specified icons upper left corner in shared region on the table as reference point。
8. the device of the icon convergent-divergent according to any one of claim 5-7, it is characterised in that described device also includes:
Hidden icons checks unit, for when the icon after convergent-divergent becomes big, causes that all icons on desktop cannot all show, set up a hidden icons on the table and check option, for when user selects described hidden icons to check option, displaying to the user that hiding icon。
CN201210014118.0A 2012-01-17 2012-01-17 The method of icon convergent-divergent and device Active CN103207750B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210014118.0A CN103207750B (en) 2012-01-17 2012-01-17 The method of icon convergent-divergent and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210014118.0A CN103207750B (en) 2012-01-17 2012-01-17 The method of icon convergent-divergent and device

Publications (2)

Publication Number Publication Date
CN103207750A CN103207750A (en) 2013-07-17
CN103207750B true CN103207750B (en) 2016-06-22

Family

ID=48754989

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210014118.0A Active CN103207750B (en) 2012-01-17 2012-01-17 The method of icon convergent-divergent and device

Country Status (1)

Country Link
CN (1) CN103207750B (en)

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103686280A (en) * 2013-12-10 2014-03-26 乐视网信息技术(北京)股份有限公司 Method, device and system for adjusting size of application page
CN104077129B (en) * 2014-06-10 2017-06-23 腾讯科技(深圳)有限公司 icon processing method, device and terminal device
CN105278715A (en) * 2014-07-21 2016-01-27 中兴通讯股份有限公司 Application layout setting method based on touch screen and terminal equipment
US20160034153A1 (en) * 2014-07-31 2016-02-04 Microsoft Corporation Icon Resizing
CN105404439B (en) * 2014-09-11 2020-08-07 南京中兴新软件有限责任公司 Folder creating method and device
CN104331221B (en) * 2014-10-30 2017-07-28 广东欧珀移动通信有限公司 Application program image target operating method and device
CN105589637A (en) * 2014-11-11 2016-05-18 阿里巴巴集团控股有限公司 Gesture-based scaling method and device
CN104898482A (en) * 2015-05-04 2015-09-09 广东美的制冷设备有限公司 Control interface displaying method and device
CN106293307A (en) * 2015-05-18 2017-01-04 中兴通讯股份有限公司 Icon method to set up and device
CN105511789B (en) * 2015-12-08 2019-11-12 魅族科技(中国)有限公司 A kind of icon processing method and terminal
CN106095250B (en) * 2016-07-29 2019-12-27 维沃移动通信有限公司 Application icon layout method and mobile terminal
CN106527862A (en) * 2016-11-11 2017-03-22 北京奇虎科技有限公司 Method and device for displaying application icons
CN106648260B (en) * 2017-02-13 2020-08-07 北京安云世纪科技有限公司 Method and device for adjusting space between touch identification objects
WO2018166023A1 (en) * 2017-03-13 2018-09-20 华为技术有限公司 Icon display method and terminal device
CN107329653A (en) * 2017-06-22 2017-11-07 深圳传音通讯有限公司 Adjust the method and device of icon sizes
CN110225186A (en) * 2019-05-13 2019-09-10 珠海格力电器股份有限公司 Display method and foldable electronic equipment
CN110286827B (en) * 2019-06-27 2021-07-13 广州视源电子科技股份有限公司 Element scaling control method, device, device and storage medium
CN112148405B (en) * 2020-09-25 2024-06-14 维沃移动通信有限公司 Desktop layout method, device and electronic device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1263616A (en) * 1998-04-17 2000-08-16 皇家菲利浦电子有限公司 Graphical user interface touch screen with auto zoom feature
CN101379461A (en) * 2005-12-30 2009-03-04 苹果公司 Portable electronic device with multi-touch input
CN101945256A (en) * 2009-07-01 2011-01-12 福特全球技术公司 The auxiliary back of reversing camera system with touch-screen display

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1263616A (en) * 1998-04-17 2000-08-16 皇家菲利浦电子有限公司 Graphical user interface touch screen with auto zoom feature
CN101379461A (en) * 2005-12-30 2009-03-04 苹果公司 Portable electronic device with multi-touch input
CN101945256A (en) * 2009-07-01 2011-01-12 福特全球技术公司 The auxiliary back of reversing camera system with touch-screen display

Also Published As

Publication number Publication date
CN103207750A (en) 2013-07-17

Similar Documents

Publication Publication Date Title
CN103207750B (en) The method of icon convergent-divergent and device
CN103488419B (en) The operating method and communication terminal of communication terminal
EP3103001B1 (en) Apparatus and method of displaying windows
CN105807997B (en) A kind of touch screen sensitivity regulation method and device
US8976140B2 (en) Touch input processor, information processor, and touch input control method
CN106020678A (en) Method and device for implementing touch operation in mobile equipment
AU2017203910B2 (en) Glove touch detection
US20180046366A1 (en) Method for processing user interface of terminal, user interface, and terminal
CN104317452A (en) Method for controlling intelligent equipment with large screen
CN103425394A (en) Method and device for changing icon position for touch screen
US10514802B2 (en) Method for controlling display of touchscreen, and mobile device
TWI493390B (en) Touch cursor display method
CN103927114A (en) Display method and electronic equipment
CN105204754B (en) The one-handed performance method and device of touch screen
CN105786377A (en) Touch control monitoring method and device and terminal
CN102591521B (en) Touch screen device and manufacture method thereof
CN104978135A (en) Icon display method and device, and mobile terminal
CN104834468A (en) Touch operation method and touch operation device in terminal
CN104182150B (en) Method and device for activating function corresponding to icon in toolbar
CN106527817A (en) Touch-operated identification method and device thereof
CN104102437B (en) The method and multi-point touch equipment operated in multi-point touch equipment
CN104346078B (en) One kind application localization method and device
US20240231486A1 (en) Content Manipulation via a Computer-Generated Representation of a Trackpad
CN104657061B (en) Screen capture method and electronic device using same
TWI537812B (en) Method and system for selecting objects

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant