WO2012119494A1 - 动态调整桌面布局的方法及系统、计算机存储介质 - Google Patents

动态调整桌面布局的方法及系统、计算机存储介质 Download PDF

Info

Publication number
WO2012119494A1
WO2012119494A1 PCT/CN2012/070867 CN2012070867W WO2012119494A1 WO 2012119494 A1 WO2012119494 A1 WO 2012119494A1 CN 2012070867 W CN2012070867 W CN 2012070867W WO 2012119494 A1 WO2012119494 A1 WO 2012119494A1
Authority
WO
WIPO (PCT)
Prior art keywords
desktop
component
area
control
placing
Prior art date
Application number
PCT/CN2012/070867
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 WO2012119494A1 publication Critical patent/WO2012119494A1/zh
Priority to US14/022,958 priority Critical patent/US20140013256A1/en

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
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • the present invention relates to the field of computer technologies, and in particular, to a method and system for dynamically adjusting a desktop layout, and a computer storage medium.
  • IM Instant messaging
  • Today it has been accepted by most netizens and has become an indispensable software tool for users. It is widely used not only in daily leisure and entertainment, but also in users' work. Therefore user to IM
  • the software has high requirements for ease of use, stability, and security.
  • the desktop system is a common system structure among computer users.
  • the traditional desktop system is composed of pre-defined static elements, so that the elements on the desktop cannot be adjusted as needed.
  • a method of dynamically adjusting the layout of a desktop including the following steps:
  • the desktop element is adjusted on the desktop area according to the change request.
  • a system for dynamically adjusting the layout of a desktop including:
  • an update module configured to adjust a desktop element on the desktop area according to the change request.
  • One or more computer storage media containing computer executable instructions for performing a method of dynamically adjusting a desktop layout, the method comprising the steps of:
  • the desktop element is adjusted on the desktop area according to the change request.
  • the above method and system for dynamically adjusting the desktop layout and the computer storage medium can adjust the desktop elements on the desktop area according to the request of changing the desktop element, and can flexibly adjust the desktop elements to meet different needs.
  • FIG. 1 is a flow chart of a method for dynamically adjusting a desktop layout in an embodiment
  • FIG. 2 is a flow chart of a method for dynamically adjusting a desktop layout in another embodiment
  • FIG. 3 is a schematic diagram showing an interface for dynamically adjusting a desktop layout in an embodiment
  • Figure 4 is a flow chart of the method for adjusting the desktop layout according to the change request in Figure 2;
  • Figure 5 is a flow chart of the method for placing the desktop component in the scroll zone in Figure 4;
  • FIG. 6 is a schematic structural diagram of a system for dynamically adjusting a desktop layout in an embodiment
  • FIG. 7 is a schematic structural diagram of a system for dynamically adjusting a desktop layout in another embodiment
  • Figure 8 is a schematic diagram of the internal structure of the update module in Figure 7.
  • a method for dynamically adjusting a desktop layout includes the following steps:
  • Step S100 obtaining a desktop element.
  • Controls include, but are not limited to, buttons, drop-down boxes, text boxes, lists, and the like.
  • step S110 the desktop element is placed on the desktop area.
  • Step S120 Acquire a request for changing a desktop element.
  • Changing desktop elements can be done by adding desktop elements, deleting desktop elements, or changing the size of desktop elements.
  • Step S130 adjusting the desktop element on the desktop area according to the change request.
  • corresponding operations such as adding a desktop element, create a desktop element, add to the desktop area; delete the desktop element, directly delete the selected desktop element; change the size of the desktop element, then select the selected desktop element Stretch or shrink operations.
  • a method for dynamically adjusting the desktop layout specifically includes the following steps:
  • Step S200 acquiring components and controls.
  • the user starts the system, and the system obtains the stored components and controls. If it is started for the first time, the default components and controls are used.
  • the component area includes an information area and a scroll area.
  • Components include information components and desktop components.
  • the information area is an area for placing information. When the desktop is scrolled, the area is always unchanged.
  • the scroll area is an area for placing each desktop component, and may have several pages. If it is larger than one page, horizontal scrolling can be used to switch.
  • the displayed page; the control area is the area used to place the controls.
  • the information component is a component placed in the information area. There can only be one.
  • the desktop component is a component placed in the scroll area.
  • the control area can be several, when placed on the desktop, you can add several controls in the control area, such as news ( News ), messages, etc. are all desktop components.
  • the information area 30 is provided with components composed of user information and weather, and the scroll area 32
  • news components, message components, search components, and control areas 34 with download controls, email controls, and the like.
  • Step S210 placing the component and the control on the desktop area.
  • Step S220 obtaining a request to change the component.
  • Changing a component can be adding a component, deleting a component, or changing the size of a component.
  • Step S230 Adjust components and controls on the desktop area according to the request of the change component.
  • a component change request When a component change request is added as a component, it can be divided into an add information component and a desktop component.
  • the request to change the component is to add an information component
  • the information component to be added is created, and the added information component is placed directly into the information area. Only one information component can be placed in the information area, and the added information component will replace the original information component.
  • the specific steps of adjusting the component and the control on the desktop area according to the request of the changed component include:
  • Step S231 creating a desktop component to be added.
  • Step S233 placing the added desktop component into the scroll area.
  • step S233 specifically includes:
  • Step S2331 Obtain the size of the added desktop component.
  • the desktop component is displayed in the form of a rectangular frame. First, the size of the rectangular frame in which the added desktop component is located is obtained, so as to determine whether it can be placed in the scroll area.
  • step S2332 the scroll area and the existing desktop component are traversed, and the vertex coordinates of the existing desktop component and the vertex coordinates of the scroll area are obtained.
  • the obtained vertex coordinates of the scroll area and the existing desktop component can also be filtered to discharge the position where the added desktop component cannot be placed.
  • the location includes the upper left corner vertex of the existing desktop component, the upper right corner vertex of the scrolling area, the lower left corner vertex, and the lower right corner vertex.
  • step S2333 the top left corner position of the added desktop component is placed to one of the vertices traversed.
  • Step S2334 And traversing the existing desktop component, determining whether the placed desktop component overlaps with the existing desktop component, if yes, executing step S2335; if not, executing step S2336.
  • Step S2335 traversing another vertex, and jumping to step 2333.
  • Step S2336 The added desktop component is placed in the scrolling area and does not overlap with the existing desktop component.
  • Step S235 After the placement is successful, obtain the control data created by the added desktop component, and send the control data to the control area.
  • control data created by the added desktop component is obtained, and the control data includes the control icon, the size of the control, the logic executed after the click, and the like, and the control data is sent to the control area.
  • Step S237 Create a control according to the control data in the control area, and add the created control to the control area.
  • step S2331. Go to step S2336.
  • the present invention also provides one or more computer storage media containing computer executable instructions for performing a method of dynamically adjusting a desktop layout, computer executable instructions in a computer storage medium executing dynamics
  • the specific steps of the method for adjusting the desktop layout are as described in the above method, and are not described herein again.
  • a system for dynamically adjusting a desktop layout includes an extraction module 600 and an arrangement module 610. Request acquisition module 620 and update module 630. among them,
  • Extraction module 600 Used to get desktop elements.
  • Desktop elements can include components and controls. Controls include, but are not limited to, buttons, drop-down boxes, text boxes, lists, and the like.
  • Arrangement module 610 is used to place the desktop element on the desktop area. Arrangement module 610 Place the obtained desktop elements on the desktop area for display.
  • Request acquisition module 620 Used to get requests to change desktop elements. Changing desktop elements can be done by adding desktop elements, deleting desktop elements, or changing the size of desktop elements.
  • An update module 630 is used to adjust desktop elements on the desktop area based on the change request.
  • Update module 630 Corresponding operations are performed according to the change request, such as adding a desktop element, and the update module 630 creates a desktop element to be added to the desktop area; the update module 630 When the desktop element is deleted, the selected desktop element is directly deleted; the size of the desktop element is changed, and the update module 630 performs the operations of stretching or reducing the selected desktop element.
  • the specific process of dynamically adjusting the system layout of the desktop layout is as follows:
  • the extraction module 600 is used to acquire components and controls. User startup system, extraction module 600 Get the stored components and controls. If it is started for the first time, the extraction module 600 gets the default components and controls.
  • Arrangement module 610 Used to place components and controls on the desktop area.
  • Components include information components and desktop components. User information and weather form an information component.
  • the desktop component can be a news component, a message component, a search component, etc.
  • the control can be a download control, an email control, or the like.
  • Request acquisition module 620 A request to get a change component. Changing a component can be adding a component, deleting a component, or changing the size of a component.
  • the update module 630 is used to adjust components and controls on the desktop area based on the change request.
  • the above system for dynamically adjusting the desktop layout includes an extraction module 600 and an arrangement module 610.
  • the request acquisition module 620 and the update module 630 further include a partition module 640.
  • Partitioning module 640 divides the desktop area into component areas and control areas. Arrangement module 610 It is also used to place components in the component area and to place controls in the control area.
  • the component area includes an information area and a scroll area.
  • Components include information components and desktop components.
  • the information area is an area for placing information. When the desktop is scrolled, the area is always unchanged.
  • the scroll area is an area for placing each desktop component, and may have several pages. If it is larger than one page, horizontal scrolling can be used to switch. The displayed page; the control area is the area used to place the controls. When the desktop is scrolled, the area remains the same.
  • the information component is a component placed in the information area. There can only be one. When placed on the desktop, several controls can be added in the control area, such as user information and weather to form an information component; the desktop component is a component placed in the scroll area. There can be several, when placed on the desktop, you can add several controls in the control area, such as news ( News ), messages, etc. are all desktop components.
  • the arranging module 610 is also used to place information components in the information area and place the desktop components in the scroll area.
  • the update module 630 when the change request obtained by the request acquisition module 620 is to add a desktop component, the update module 630 A component creation unit 631, a placement unit 633, an information acquisition unit 635, and a control creation unit 637 are included. among them,
  • Component Creation Unit 631 is used to create desktop components to be added.
  • Component Creation Unit 631 Create a desktop component and get data for that desktop component, such as component size.
  • Placement unit 633 is used to place the added desktop components into the scroll area. Placement unit 633 Automatically find the location where the desktop component is placed in the current page of the scroll area. If it is found, the desktop component is placed at the found location. If not found, the next page is searched, and so on.
  • the specific process of the placement unit 633 placing the added desktop component into the scroll zone includes:
  • ( 1 ) Get the size of the added desktop component.
  • the desktop component is displayed in a rectangular box.
  • the size of the rectangle of the added desktop component is obtained, so that it can be judged whether it can be placed in the scroll area.
  • the obtained vertex coordinates of the scroll area and the existing desktop component can also be filtered to discharge the position where the added desktop component cannot be placed.
  • the location includes the upper left corner vertex of the existing desktop component, the upper right corner vertex of the scrolling area, the lower left corner vertex, and the lower right corner vertex.
  • the update module 630 Place the resized components into the scroll zone.
  • the specific placement process is as follows (1) to (6).
  • Control Data acquisition unit 635 Used to get the control data created by the added desktop component after the placement is successful, and send the control data to the control area.
  • the control data includes the control icon, the size of the control, the logic executed after clicking, and the like, and sends the control data to the control area.
  • Control creation unit 637 Used to create a control based on the control data in the control area and add the created control to the control area. Create a control based on the acquired control data in the control area, and add the created control to the control area. If you add a desktop component as a music component, you can add controls such as play, pause, fast forward, and back in the control area.
  • the above method and system for dynamically adjusting the desktop layout and the computer storage medium can adjust the desktop elements on the desktop area according to the request of changing the desktop element, and can flexibly adjust the desktop elements to meet different needs.
  • the desktop area is divided into an information area, a scroll area, and a control area, so that it is convenient to make changes and adjustments only in the scroll area, and the entire desktop is not required to be adjusted.

Landscapes

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

Abstract

本发明涉及一种动态调整桌面布局的方法及系统、计算机存储介质。该方法包括以下步骤:获取桌面元素;将所述桌面元素放置在桌面区域上;获取变更桌面元素的请求;根据所述变更请求在所述桌面区域上调整桌面元素。上述动态调整桌面布局的方法及系统、计算机存储介质,能根据变更桌面元素的请求,在桌面区域上调整桌面元素,能灵活的调整桌面元素,满足不同的需求。

Description

动态调整桌面布局的方法及系统、 计算机存储介质
【技术领域】
本发明涉及计算机技术领域,特别涉及一种动态调整桌面布局的方法及系统、计算机存储介质。
【背景技术】
网络即时通讯工具( Instant Messaging ,简称 IM )发展到今天,已经被大多数的网民所接受,成为用户必不可少的软件工具,不但在平时的休闲娱乐中,而且在用户的工作中同样得到广泛的使用。因此用户对 IM 软件的易用性、稳定性、安全性等方面提出了较高的要求。
桌面系统是电脑用户中的一种常见的系统结构,传统的桌面系统是由预先制定好的静态元素构成的,使得桌面上的元素无法根据需要进行调整。
【发明内容】
基于此,有必要提供一种能灵活调整桌面元素的动态调整桌面布局的方法。
一种动态调整桌面布局的方法,包括以下步骤:
获取桌面元素;
将所述桌面元素放置在桌面区域上;
获取变更桌面元素的请求;
根据所述变更请求在所述桌面区域上调整桌面元素。
此外,还有必要提供一种能灵活调整桌面元素的动态调整桌面布局的系统。
一种动态调整桌面布局的系统,包括:
提取模块,用于获取桌面元素;
排布模块,用于将所述桌面元素放置在桌面区域上;
请求获取模块,用于获取变更桌面元素的请求;
更新模块,用于根据所述变更请求在所述桌面区域上调整桌面元素。
此外,还有必要提供一种能灵活调整桌面元素的计算机存储介质。
一个或多个包含计算机可执行指令的计算机存储介质,所述计算机可执行指令用于执行一种动态调整桌面布局的方法,所述方法包括以下步骤:
获取桌面元素;
将所述桌面元素放置在桌面区域上;
获取变更桌面元素的请求;
根据所述变更请求在所述桌面区域上调整桌面元素。
上述动态调整桌面布局的方法及系统、计算机存储介质,能根据变更桌面元素的请求,在桌面区域上调整桌面元素,能灵活的调整桌面元素,满足不同的需求。
【附图说明】
图 1 为一个实施例中动态调整桌面布局的方法流程图;
图 2 为另一个实施例中动态调整桌面布局的方法流程图;
图 3 为一个实施例中动态调整桌面布局的界面展示示意图;
图 4 为图 2 中根据变更请求调整桌面布局的方法流程图;
图 5 为图 4 中将桌面组件放置在滚动区的方法流程图;
图 6 为一个实施例中动态调整桌面布局的系统的结构示意图;
图 7 为另一个实施例中动态调整桌面布局的系统的结构示意图;
图 8 为图 7 中更新模块的内部结构示意图。
【具体实施方式】
下面结合具体的实施例及附图对技术方案进行详细的描述。
如图 1 所示,在一个实施例中,一种动态调整桌面布局的方法,包括以下步骤:
步骤 S100 ,获取桌面元素。
桌面元素可包括组件及控件等。控件包括但不限于按钮、下拉框、文本框、列表等等。
步骤 S110 ,将该桌面元素放置在桌面区域上。
将获得的桌面元素放置在桌面区域上,进行展示。
步骤 S120 ,获取变更桌面元素的请求。
变更桌面元素可为添加桌面元素、删除桌面元素或变更桌面元素的大小等。
步骤 S130 ,根据该变更请求在所述桌面区域上调整桌面元素。
根据该变更请求进行相应的操作,如添加桌面元素,则创建一个桌面元素,添加到桌面区域;删除桌面元素,则直接删除选中的桌面元素;变更桌面元素的大小,则对选中的桌面元素进行拉伸或缩小等操作。
如图 2 所示,在另一个实施例中,桌面元素包括组件和控件时,一种动态调整桌面布局的方法具体包括以下步骤:
步骤 S200 ,获取组件及控件。
用户启动系统,系统获取存储的组件及控件,若是首次启动,使用默认组件及控件。
在步骤 S200 之前还包括步骤:将桌面区域分成组件区和控件区。组件区包括信息区和滚动区。组件包括信息组件和桌面组件。信息区是用来放置信息的区域,当桌面滚动时,该区域始终不变;滚动区是用来放置各桌面组件的区域,可以有若干页,如果大于一页,可进行横向的滚动来切换显示的页面;控件区是用来摆放各个控件的区域,当桌面滚动时,该区域始终不变。信息组件是放置在信息区的组件,只能有一个,当放置在桌面时,可以在控件区添加若干个控件,如用户信息和天气组成一个信息组件;桌面组件是放置在滚动区的组件,可以有若干个,当放置在桌面时,可以在控件区添加若干个控件,如新闻( news )、消息( message )等均为一个桌面组件。如图 3 所示,信息区 30 放置有用户信息及天气组成的组件,滚动区 32 放置有新闻组件、消息组件、搜索组件,控件区 34 放置有下载控件、电子邮件控件等。
步骤 S210 ,将该组件及控件放置在桌面区域上。
获取到存储的组件及控件后,将其放置在桌面区域上。将信息组件直接放置在信息区,将已存储的桌面组件放置在滚动区中指定页的指定位置上,将控件放置在控件区。
步骤 S220 ,获取变更组件的请求。
变更组件可为添加组件、删除组件或变更组件的尺寸大小。
步骤 S230 ,根据该变更组件的请求在桌面区域上调整组件及控件。
变更组件请求为删除组件时,直接删除。
变更组件请求为添加组件时,可分为添加信息组件和桌面组件两种。
在一个实施例中,当变更组件的请求为添加信息组件时,则创建要添加的信息组件,将添加的信息组件直接放置到信息区。信息区只能放置一个信息组件,添加的信息组件将替代原来的信息组件。
在一个实施例中,如图 4 所示,当变更组件的请求为添加桌面组件时,根据该变更组件的请求在桌面区域上调整组件及控件的具体步骤包括:
步骤 S231 ,创建要添加的桌面组件。
创建一个桌面组件,并获取该桌面组件的数据,如组件尺寸等。
步骤 S233 ,将添加的桌面组件放置到滚动区。
自动在滚动区的当前页开始寻找放置该桌面组件的位置,若成功找到,则将该桌面组件放置在找到的位置处,若未找到,则查找下一页,依次类推。
在一个实施例中,如图 5 所示,步骤 S233 具体包括:
步骤 S2331 ,获取添加的桌面组件的尺寸。
桌面组件以矩形框的形式展示,首先获取添加的桌面组件所在矩形框的尺寸大小,以便后续进行判断其能否放置在滚动区。
步骤 S2332 ,遍历滚动区和已有的桌面组件,获取已有的桌面组件的顶点坐标和滚动区的顶点坐标。
获取滚动区所形成的矩形的四个顶点坐标和已放置在滚动区的桌面组件所在的矩形框的四个顶点坐标。
在获取到滚动区和已有的桌面组件的顶点坐标后,还可对所得的顶点坐标进行过滤处理,排出明显无法放置添加的桌面组件的位置。该位置包括已有的桌面组件的左上角顶点,滚动区的右上角顶点、左下角顶点和右下角顶点。滚动区和桌面组件展示在用户面前时,滚动区和桌面组件存在四个顶点,该四个顶点分别为左上角顶点、右上角顶点、左下角顶点和右下角顶点。
步骤 S2333 ,将添加的桌面组件的左上角位置放置到遍历的其中一个顶点。
步骤 S2334 ,遍历已有的桌面组件,判断所述放置的桌面组件与所述已有的桌面组件是否有重叠,若是,执行步骤 S2335 ,若否,则执行步骤 S2336 。
步骤 S2335 ,遍历另一个顶点,跳转到步骤 2333 。
步骤 S2336 ,将该添加的桌面组件放置在该滚动区内且与已有的桌面组件没有重叠的位置。
若所有的顶点在放置该桌面组件的左上角后都与其他已有的桌面组件有重叠,则滚动区上无法放置该桌面组件,提醒用户放置失败。
步骤 S235 ,在放置成功后获取添加的桌面组件创建的控件数据,并将控件数据发送到控件区。
放置成功后,获取添加的桌面组件创建的控件数据,该控件数据包括控件图标、控件大小、点击后执行的逻辑等,并将这些控件数据发送到控件区。
步骤 S237 ,在控件区根据控件数据创建控件,并将创建的控件添加到控件区。
在控件区根据获取的控件数据创建控件,并将创建的控件添加到控件区中。如添加桌面组件为音乐组件,在控件区可添加播放、暂停、快进、后退等控件。
变更组件的请求为变更组件的尺寸大小时,将调整大小后的组件放置到滚动区,具体的放置步骤如步骤 S2331 至步骤 S2336 。
此外,本发明还提供了一个或多个包含计算机可执行指令的计算机存储介质,所述计算机可执行指令用于执行一种动态调整桌面布局的方法,计算机存储介质中的计算机可执行指令执行动态调整桌面布局的方法的具体步骤如上述方法描述,在此不再赘述。
在一个实施例中,如图 6 所示,一种动态调整桌面布局的系统,包括提取模块 600 、排布模块 610 、请求获取模块 620 和更新模块 630 。其中,
提取模块 600 用于获取桌面元素。桌面元素可包括组件及控件等。控件包括但不限于按钮、下拉框、文本框、列表等等。
排布模块 610 用于将该桌面元素放置在桌面区域上。排布模块 610 将获得的桌面元素放置在桌面区域上,以便进行展示。
请求获取模块 620 用于获取变更桌面元素的请求。变更桌面元素可为添加桌面元素、删除桌面元素或变更桌面元素的大小等。
更新模块 630 用于根据该变更请求在该桌面区域上调整桌面元素。更新模块 630 根据该变更请求进行相应的操作,如添加桌面元素,更新模块 630 则创建一个桌面元素,添加到桌面区域;更新模块 630 删除桌面元素,则直接删除选中的桌面元素;变更桌面元素的大小,更新模块 630 则对选中的桌面元素进行拉伸或缩小等操作。
在另一个实施例中,以桌面元素包括组件和控件为例,动态调整桌面布局的系统工作的具体过程如下:
提取模块 600 用于获取组件及控件。用户启动系统,提取模块 600 获取存储的组件及控件,若是首次启动,则提取模块 600 获取默认组件及控件。
排布模块 610 用于将组件及控件放置在桌面区域上。组件包括信息组件和桌面组件。用户信息和天气组成一个信息组件,桌面组件可为新闻组件、消息组件、搜索组件等,控件可为下载控件、电子邮件控件等。
请求获取模块 620 用于获取变更组件的请求。变更组件可为添加组件、删除组件或变更组件的尺寸大小。
更新模块 630 用于根据变更请求在桌面区域上调整组件及控件。
在一个实施例中,如图 7 所示,上述动态调整桌面布局的系统,除了包括提取模块 600 、排布模块 610 、请求获取模块 620 和更新模块 630 ,还包括分区模块 640 。
分区模块 640 将桌面区域分成组件区和控件区。排布模块 610 还用于将组件放置在组件区,将控件放置在控件区。
该实施例中,组件区包括信息区和滚动区。组件包括信息组件和桌面组件。信息区是用来放置信息的区域,当桌面滚动时,该区域始终不变;滚动区是用来放置各桌面组件的区域,可以有若干页,如果大于一页,可进行横向的滚动来切换显示的页面;控件区是用来摆放各个控件的区域,当桌面滚动时,该区域始终不变。信息组件是放置在信息区的组件,只能有一个,当放置在桌面时,可以在控件区添加若干个控件,如用户信息和天气组成一个信息组件;桌面组件是放置在滚动区的组件,可以有若干个,当放置在桌面时,可以在控件区添加若干个控件,如新闻( news )、消息( message )等均为一个桌面组件。
排布模块 610 还用于将信息组件放置信息区,将桌面组件放置在滚动区。
当桌面组件为已存储的桌面组件时,排布模块 610 还用于将已存储的桌面组件放置在滚动区的指定页的指定位置上。
在一个实施例中,如图 8 所示,请求获取模块 620 获取的变更请求为添加桌面组件时,更新模块 630 包括组件创建单元 631 、放置单元 633 、信息获取单元 635 和控件创建单元 637 。其中,
组件创建单元 631 用于创建要添加的桌面组件。组件创建单元 631 创建一个桌面组件,并获取该桌面组件的数据,如组件尺寸等。
放置单元 633 用于将添加的桌面组件放置到滚动区。放置单元 633 自动在滚动区的当前页开始寻找放置该桌面组件的位置,若成功找到,则将该桌面组件放置在找到的位置处,若未找到,则查找下一页,依次类推。
优选的实施例中,放置单元 633 将添加的桌面组件放置到滚动区的具体过程包括:
( 1 )获取添加的桌面组件的尺寸。桌面组件以矩形框形式展示,则首先获取添加的桌面组件所在矩形框的尺寸大小,以便后续进行判断其能否放置在滚动区。
( 2 )遍历滚动区和已有的桌面组件,获取已有的桌面组件的顶点坐标和滚动区的顶点坐标。
获取滚动区所形成的矩形的四个顶点坐标和已放置在滚动区的桌面组件所在的矩形的四个顶点坐标。
在获取到滚动区和已有的桌面组件的顶点坐标后,还可对所得的顶点坐标进行过滤处理,排出明显无法放置添加的桌面组件的位置。该位置包括已有的桌面组件的左上角顶点,滚动区的右上角顶点、左下角顶点和右下角顶点。滚动区和桌面组件展示在用户面前时,滚动区和桌面组件存在四个顶点,该四个顶点分别为左上角顶点、右上角顶点、左下角顶点和右下角顶点。
( 3 )将添加的桌面组件的左上角位置放置到遍历的其中一个顶点。
( 4 )遍历已有的桌面组件,判断所述放置的桌面组件与所述已有的桌面组件是否有重叠,若是,执行过程( 5 ),若否,则执行过程( 6 )。
( 5 )遍历另一个顶点,跳转到过程( 3 )。
( 6 )将该添加的桌面组件放置在该滚动区内且与已有的桌面组件没有重叠的位置。
若所有的顶点在放置该桌面组件的左上角后都与其他已有的桌面组件有重叠,则滚动区上无法放置该桌面组件,提醒用户放置失败。
在一个实施例中,请求获取模块 620 获取的变更组件的请求为变更组件的尺寸大小时,更新模块 630 将调整大小后的组件放置到滚动区,具体的放置过程如( 1 )至( 6 )。
信息获取单元 635 用于在放置成功后获取添加的桌面组件创建的控件数据,并将控件数据发送到控件区。该控件数据包括控件图标、控件大小、点击后执行的逻辑等,并将这些控件数据发送到控件区。
控件创建单元 637 用于在控件区根据控件数据创建控件,并将创建的控件添加到控件区。在控件区根据获取的控件数据创建控件,并将创建的控件添加到控件区中。如添加桌面组件为音乐组件,在控件区可添加播放、暂停、快进、后退等控件。
上述动态调整桌面布局的方法及系统、计算机存储介质,能根据变更桌面元素的请求,在桌面区域上调整桌面元素,能灵活的调整桌面元素,满足不同的需求。
另外,将桌面区域分成信息区、滚动区和控件区,可方便仅在滚动区进行变更调整,不需整个桌面进行调整。
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。

Claims (18)

  1. 一种动态调整桌面布局的方法,包括以下步骤:
    获取桌面元素;
    将所述桌面元素放置在桌面区域上;
    获取变更桌面元素的请求;
    根据所述变更请求在所述桌面区域上调整桌面元素。
  2. 根据权利要求 1 所述的动态调整桌面布局的方法,其特征在于,所述桌面元素包括组件和控件;所述动态调整桌面布局的方法具体为:
    获取组件及控件;
    将所述组件及控件放置在桌面区域上;
    获取变更组件的请求;
    根据所述变更请求在所述桌面区域上调整组件及控件。
  3. 根据权利要求 2 所述的动态调整桌面布局的方法,其特征在于,在获取组件及控件的步骤之前还包括步骤:将桌面区域分成组件区和控件区,其中,所述组件区包括信息区和滚动区,所述组件包括信息组件和桌面组件;
    将所述组件及控件放置在桌面区域上的步骤具体为:将所述信息组件放置在信息区,将所述桌面组件放置在滚动区,将所述控件放置在控件区。
  4. 根据权利要求 3 所述的动态调整桌面布局的方法,其特征在于,所述桌面组件为已存储的桌面组件;将所述组件放置在桌面区域上的步骤为:将所述已存储的桌面组件放置在所述滚动区中指定页的指定位置上。
  5. 根据权利要求 3 所述的动态调整桌面布局的方法,其特征在于,所述变更请求为添加桌面组件时,根据所述变更请求在所述桌面区域上调整组件及控件的具体步骤为:
    创建要添加的桌面组件;
    将所述添加的桌面组件放置到所述滚动区;
    在放置成功后获取所述添加的桌面组件创建的控件数据,并将所述控件数据发送到所述控件区;
    在所述控件区根据所述控件数据创建控件,并将所述创建的控件添加到所述控件区。
  6. 根据权利要求 5 所述的动态调整桌面布局的方法,其特征在于,将所述添加的桌面组件放置到所述滚动区的步骤具体为:
    获取添加的桌面组件的尺寸;
    遍历所述滚动区和已有的桌面组件,获取已有的桌面组件的顶点坐标和滚动区的顶点坐标;
    将所述添加的桌面组件的左上角位置放置到所述遍历的其中一个顶点;
    遍历已有的桌面组件,判断所述放置的桌面组件与所述已有的桌面组件是否有重叠,若是,则遍历另一个顶点,若否,则将该所述添加的桌面组件放置在该滚动区内且与已有的桌面组件没有重叠的位置。
  7. 一种动态调整桌面布局的系统,其特征在于,包括:
    提取模块,用于获取桌面元素;
    排布模块,用于将所述桌面元素放置在桌面区域上;
    请求获取模块,用于获取变更桌面元素的请求;
    更新模块,用于根据所述变更请求在所述桌面区域上调整桌面元素。
  8. 根据权利要求 7 所述的动态调整桌面布局的系统,其特征在于,所述桌面元素包括组件和控件;
    所述提取模块还用于获取组件及控件;
    所述排布模块还用于将所述组件及控件放置在桌面区域上;
    所述请求获取模块还用于获取变更组件的请求;
    所述更新模块还用于根据所述变更请求在所述桌面区域上调整组件及控件。
  9. 根据权利要求 8 所述的动态调整桌面布局的系统,其特征在于,还包括分区模块,所述分区模块将所述桌面区域分成组件区和控件区,其中,所述组件区包括信息区和滚动区,所述组件包括信息组件和桌面组件;所述排布模块还用于将所述信息组件放置信息区,将所述桌面组件放置在滚动区,将所述控件放置在控件区。
  10. 根据权利要求 9 所述的动态调整桌面布局的系统,其特征在于,所述桌面组件为已存储的桌面组件,所述排布模块还用于将所述已存储的桌面组件放置在所述滚动区中指定页的指定位置上。
  11. 根据权利要求 9 所述的动态调整桌面布局的系统,其特征在于,所述请求获取模块获取的所述变更请求为添加桌面组件时,所述更新模块包括:
    组件创建单元,用于创建要添加的桌面组件;
    放置单元,用于将所述添加的桌面组件放置到所述滚动区;
    信息获取单元,用于在放置成功后获取所述添加的桌面组件创建的控件数据,并将所述控件数据发送到所述控件区;
    控件创建单元,用于在所述控件区根据所述控件数据创建控件,并将所述创建的控件添加到所述控件区。
  12. 根据权利要求 11 所述的动态调整桌面布局的系统,其特征在于,所述放置单元还用于获取添加的桌面组件的尺寸,遍历所述滚动区和已有的桌面组件,获取已有的桌面组件的顶点坐标和滚动区的顶点坐标,将所述添加的桌面组件的左上角位置放置到所述遍历的其中一个顶点,遍历已有的桌面组件,判断所述放置的桌面组件与所述已有的桌面组件是否有重叠,若是,则遍历另一个顶点,若否,则将该所述添加的桌面组件放置在该滚动区内且与已有的桌面组件没有重叠的位置。
  13. 一个或多个包含计算机可执行指令的计算机存储介质,所述计算机可执行指令用于执行一种动态调整桌面布局的方法,其特征在于,所述方法包括以下步骤:
    获取桌面元素;
    将所述桌面元素放置在桌面区域上;
    获取变更桌面元素的请求;
    根据所述变更请求在所述桌面区域上调整桌面元素。
  14. 根据权利要求 13 所述的计算机存储介质,其特征在于,所述桌面元素包括组件和控件;所述动态调整桌面布局的方法具体为:
    获取组件及控件;
    将所述组件及控件放置在桌面区域上;
    获取变更组件的请求;
    根据所述变更请求在所述桌面区域上调整组件及控件。
  15. 根据权利要求 14 所述的计算机存储介质,其特征在于,在获取组件及控件的步骤之前还包括步骤:将桌面区域分成组件区和控件区,其中,所述组件区包括信息区和滚动区,所述组件包括信息组件和桌面组件;
    将所述组件及控件放置在桌面区域上的步骤具体为:将所述信息组件放置在信息区,将所述桌面组件放置在滚动区,将所述控件放置在控件区。
  16. 根据权利要求 15 所述的计算机存储介质,其特征在于,所述桌面组件为已存储的桌面组件,将所述组件放置在桌面区域上的步骤为:将所述已存储的桌面组件放置在所述滚动区中指定页的指定位置上。
  17. 根据权利要求 15 所述的计算机存储介质,其特征在于,所述变更请求为添加桌面组件时,根据所述变更请求在所述桌面区域上调整组件及控件的具体步骤为:
    创建要添加的桌面组件;
    将所述添加的桌面组件放置到所述滚动区;
    在放置成功后获取所述添加的桌面组件创建的控件数据,并将所述控件数据发送到所述控件区;
    在所述控件区根据所述控件数据创建控件,并将所述创建的控件添加到所述控件区。
  18. 根据权利要求 17 所述的计算机存储介质,其特征在于,将所述添加的桌面组件放置到所述滚动区的步骤具体为:
    获取添加的桌面组件的尺寸;
    遍历所述滚动区和已有的桌面组件,获取已有的桌面组件的顶点坐标和滚动区的顶点坐标;
    将所述添加的桌面组件的左上角位置放置到所述遍历的其中一个顶点;
    遍历已有的桌面组件,判断所述放置的桌面组件与所述已有的桌面组件是否有重叠,若是,则遍历另一个顶点,若否,则将该所述添加的桌面组件放置在该滚动区内且与已有的桌面组件没有重叠的位置。
PCT/CN2012/070867 2011-03-10 2012-02-03 动态调整桌面布局的方法及系统、计算机存储介质 WO2012119494A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US14/022,958 US20140013256A1 (en) 2011-03-10 2013-09-10 Method and system for dynamic modification of desktop layout and computer storage medium thereof

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110057154.0A CN102681826B (zh) 2011-03-10 2011-03-10 动态调整桌面布局的方法及系统
CN201110057154.0 2011-03-10

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/022,958 Continuation-In-Part US20140013256A1 (en) 2011-03-10 2013-09-10 Method and system for dynamic modification of desktop layout and computer storage medium thereof

Publications (1)

Publication Number Publication Date
WO2012119494A1 true WO2012119494A1 (zh) 2012-09-13

Family

ID=46797476

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/070867 WO2012119494A1 (zh) 2011-03-10 2012-02-03 动态调整桌面布局的方法及系统、计算机存储介质

Country Status (3)

Country Link
US (1) US20140013256A1 (zh)
CN (1) CN102681826B (zh)
WO (1) WO2012119494A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015056932A1 (en) * 2013-10-17 2015-04-23 Samsung Electronics Co., Ltd. Display device and calibration method thereof

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929506B (zh) * 2012-09-21 2016-11-09 广州市久邦数码科技有限公司 一种快速添加桌面元素至桌面的方法
CN102955696B (zh) * 2012-11-06 2016-05-04 广东欧珀移动通信有限公司 一种桌面插件部署方法及系统
CN103428576A (zh) * 2013-08-14 2013-12-04 中山大学深圳研究院 基于遥控器按键数的互动应用页面调优方法
CN104751496B (zh) * 2013-12-25 2018-08-10 珠海格力电器股份有限公司 组合柜空调机组功能段三视图显示的方法及系统
CN105824517B (zh) * 2015-01-07 2019-06-11 阿里巴巴集团控股有限公司 一种桌面的实现方法和装置
CN104615441A (zh) * 2015-02-13 2015-05-13 广州市久邦数码科技有限公司 一种自定义桌面元素的桌面系统
CN104866178B (zh) * 2015-05-28 2018-05-22 努比亚技术有限公司 一种智能截图方法及智能截图终端
JP6634302B2 (ja) 2016-02-02 2020-01-22 株式会社ジャパンディスプレイ 表示装置
CN109920023B (zh) * 2019-03-28 2024-01-26 网易(杭州)网络有限公司 一种游戏中模型摆放的方法和装置
CN112148405A (zh) * 2020-09-25 2020-12-29 维沃移动通信有限公司 桌面布局方法、装置和电子设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060277460A1 (en) * 2005-06-03 2006-12-07 Scott Forstall Webview applications
EP1881705A1 (en) * 2005-04-19 2008-01-23 Sharp Kabushiki Kaisha Display description format providing device, control method thereof, communication network system, display control device, control method thereof, display system, display description format providing device control program, display control device control program, and recording medium containing the
CN201196775Y (zh) * 2008-01-29 2009-02-18 中兴通讯股份有限公司 一种手机动态桌面生成器
CN101741969A (zh) * 2008-11-07 2010-06-16 康佳集团股份有限公司 管理手机显示界面上多个控件的方法及其控件管理器

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070162850A1 (en) * 2006-01-06 2007-07-12 Darin Adler Sports-related widgets
US8788954B2 (en) * 2007-01-07 2014-07-22 Apple Inc. Web-clip widgets on a portable multifunction device
US8245143B2 (en) * 2008-10-08 2012-08-14 Research In Motion Limited Method and handheld electronic device having a graphical user interface which arranges icons dynamically
US8365082B2 (en) * 2008-10-23 2013-01-29 Savnor Technologies Llc Universal content referencing, packaging, distribution system, and a tool for customizing web content
KR101624137B1 (ko) * 2009-11-18 2016-06-07 삼성전자주식회사 표시 화면 업데이트 방법 및 이를 이용한 휴대 단말기
US8972873B2 (en) * 2010-11-30 2015-03-03 International Business Machines Corporation Multi-environment widget assembly, generation, and operation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1881705A1 (en) * 2005-04-19 2008-01-23 Sharp Kabushiki Kaisha Display description format providing device, control method thereof, communication network system, display control device, control method thereof, display system, display description format providing device control program, display control device control program, and recording medium containing the
US20060277460A1 (en) * 2005-06-03 2006-12-07 Scott Forstall Webview applications
CN201196775Y (zh) * 2008-01-29 2009-02-18 中兴通讯股份有限公司 一种手机动态桌面生成器
CN101741969A (zh) * 2008-11-07 2010-06-16 康佳集团股份有限公司 管理手机显示界面上多个控件的方法及其控件管理器

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015056932A1 (en) * 2013-10-17 2015-04-23 Samsung Electronics Co., Ltd. Display device and calibration method thereof

Also Published As

Publication number Publication date
US20140013256A1 (en) 2014-01-09
CN102681826B (zh) 2016-09-28
CN102681826A (zh) 2012-09-19

Similar Documents

Publication Publication Date Title
WO2012119494A1 (zh) 动态调整桌面布局的方法及系统、计算机存储介质
WO2014157886A1 (en) Method and device for executing application
WO2018201773A1 (zh) 单元格页面的渲染方法、装置、服务器和可读存储介质
WO2016093506A1 (ko) 이동 단말기 및 그 제어 방법
WO2015005674A1 (en) Method for displaying and electronic device thereof
WO2019139270A1 (ko) 디스플레이 장치 및 이의 컨텐츠 제공 방법
WO2015064903A1 (en) Displaying messages in an electronic device
WO2013125863A1 (en) Method and device for generating captured image for display windows
WO2014089970A1 (zh) 一种显示终端图标排列方法及装置
WO2014027818A2 (en) Electronic device for displaying touch region to be shown and method thereof
WO2015178707A1 (en) Display device and method for controlling the same
WO2016101441A1 (zh) 一种进行文件同步的方法及系统
WO2017142143A1 (en) Method and apparatus for providing summary information of a video
WO2015002386A1 (en) Method for restoring an autocorrected character and electronic device thereof
WO2014038824A1 (en) Method for changing object position and electronic device thereof
WO2015020417A1 (en) Method for displaying and an electronic device thereof
WO2020052247A1 (zh) 网络资源批量加载方法、智能电视、存储介质及装置
WO2015020496A1 (ko) 동영상 편집을 위한 사용자 인터페이스의 제공장치, 그 제공방법 및 기록매체
WO2017135776A1 (en) Display apparatus, user terminal apparatus, system, and controlling method thereof
WO2017016264A1 (zh) 一种智能手表的表冠及智能手表的操作方法
WO2018161603A1 (zh) 移动终端图像绘制的控制方法、装置、介质及电子设备
WO2019139367A1 (en) Display device and method for touch interface
WO2019051892A1 (zh) 基于日程的信息推送方法、装置和计算机可读存储介质
WO2016024824A1 (en) Display apparatus and method of controlling the same
WO2019184436A1 (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: 12755763

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: 12755763

Country of ref document: EP

Kind code of ref document: A1