WO2012126343A1 - 一种用于对显示对象进行显示变换的方法、装置和设备 - Google Patents

一种用于对显示对象进行显示变换的方法、装置和设备 Download PDF

Info

Publication number
WO2012126343A1
WO2012126343A1 PCT/CN2012/072528 CN2012072528W WO2012126343A1 WO 2012126343 A1 WO2012126343 A1 WO 2012126343A1 CN 2012072528 W CN2012072528 W CN 2012072528W WO 2012126343 A1 WO2012126343 A1 WO 2012126343A1
Authority
WO
WIPO (PCT)
Prior art keywords
display
transformed
information
transformation
content
Prior art date
Application number
PCT/CN2012/072528
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 WO2012126343A1 publication Critical patent/WO2012126343A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation

Definitions

  • the present invention relates to the field of computer technologies, and in particular, to a method for performing display transformation on a display object. Background technique
  • the source code for generating the display content for example, a CSS module used in generating source code of the webpage, is generally used to implement Shows the ability to scale the content as a whole. But because there are often display objects of limited position or size in the source code,
  • a computer-implemented method for display transformation of a display object comprises the following steps:
  • the method further includes:
  • the display position and the display content of each display object to be converted are displayed and converted according to the conversion requirement information to obtain a converted display position and display content, thereby obtaining a converted display object for display.
  • a display conversion apparatus for performing display transformation on a display object
  • the display conversion apparatus includes: a first obtaining device, configured to acquire a display position and a display content of one or more display objects to be transformed in the display entity;
  • the display conversion device further includes:
  • a second acquiring device configured to acquire conversion requirement information of the one or more display objects to be transformed
  • the display conversion device further includes:
  • a transforming device configured to display and transform the display position and the display content of each display object to be transformed according to the transformation requirement information, to obtain the transformed display position and the display content, to obtain the transformed display object, for displaying .
  • a computer device comprising the display conversion device.
  • the present invention has the following advantages: 1) The method according to the present invention can perform unified transformation on all objects to be transformed, and avoids refactoring on the basis of source code by modifying the display content code in the prior art.
  • the method according to the present invention can perform display transformation on the transformed area according to the reference point selected by the user, so that the display transformation is more flexible and more suitable for the user's use requirement; 3) the method according to the present invention can directly
  • the display transformation is directly performed according to the current display position of the object to be transformed, and the efficiency of the display transformation is improved.
  • FIG. 1 is a flow chart of a computer implemented method for performing display transformation on a display object according to an aspect of the present invention
  • FIG. 2 is a flow chart of a method for performing display transformation on a display object according to a preferred embodiment of the present invention
  • FIG. 3 is a flow chart of a method for performing display transformation on a display object according to another preferred embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a display conversion apparatus for performing display conversion on a display object according to an aspect of the present invention
  • FIG. 6 is a schematic structural diagram of a display conversion apparatus for performing display conversion on a display object according to a preferred embodiment of the present invention
  • FIG. 7 is a schematic structural diagram of a display conversion apparatus for performing display conversion on a display object according to another preferred embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a display conversion apparatus for performing display conversion on a display object according to still another preferred embodiment of the present invention.
  • FIG. 1 is a flow chart showing a computer implemented method for display transformation of a display object in accordance with one aspect of the present invention.
  • the method according to the invention can be implemented by a display conversion means in a computer device.
  • the computer device includes but is not limited to: 1) a user device; 2) a network device.
  • the user equipment includes, but is not limited to, a computer, a smart phone, a PDA, etc.;
  • the network device includes but is not limited to a single network server, a server group composed of multiple network servers, or a cloud computing based computer or network A cloud composed of servers, where cloud computing is a kind of distributed computing, a super virtual computer composed of a group of loosely coupled computers.
  • the display conversion device includes, but is not limited to, software and/or hardware implemented devices, such as an operating system, an application module, a processing controller, and the like.
  • step S1 the display conversion means acquires the display position and display content of one or more display objects to be transformed in the display entity.
  • the display transforming means regards all the objects within the predetermined range as the object to be transformed, or determines the object to be transformed according to the selection behavior of the user, to obtain the display position and display content of the object to be transformed.
  • the display entity includes an object currently available for operation by the user; for example, The object related to the currently active window, such as the web page, image, etc. displayed by the current active window.
  • All objects within the predetermined range include, but are not limited to: 1) displaying all display objects in the entity, for example, when the display entity includes a webpage, all objects within the predetermined range include all display objects in the webpage; 2) A display object in the display entity and currently displayed on the display screen, for example, a display object currently displayed on the display screen in the web page, and the like.
  • the display position includes a set of position information for determining a range of position of the display object; for example, when the shape of the display object is a rectangle, the display position includes the coordinates of the diagonal vertex of the rectangle, or the display position thereof includes a rectangular shape.
  • the display content includes content that is required to be displayed by the display object.
  • the display content further includes a presentation form of the content that the display object needs to exhibit.
  • the display content when the display object is text, the display content includes the string information of the text, and preferably, the color, the font size, the font, and the like of the character string information; and, for example, when the display object is a border, the display content thereof
  • the length of the border line is included, and preferably includes the thickness, color, style, and the like of the border line.
  • the display content includes a picture, and preferably, the filling manner of the picture, and the like.
  • step S2 the display transforming means acquires transform requirement information of the one or more display objects to be transformed.
  • the transformation requirement information includes at least one of the following information: 1) a transformation type, for example, an enlargement transformation, a reduction transformation, etc.; 2) a transformation ratio, for example, a 1.5-fold transformation, a 0.5-fold transformation, etc.; wherein the transformation ratio can be further
  • the conversion ratios in the respective transformation directions are included, for example, the length conversion ratio, the width conversion ratio, and the like.
  • the manner of obtaining the transformation requirement information includes, but is not limited to: 1) the display transformation device acquires transformation requirement information directly selected or input by the user. For example, when the user clicks a button of “ ⁇ 2” on the touch screen, the display transformation device determines the user. The conversion ratio of the input is 2 times; 2) the display transformation means determines the transformation demand information according to the user's operation behavior; for example, the display transformation means determines the transformation ratio according to the length of the distance the user swipes on the touch screen For example, the display conversion device directly acquires the preset transformation requirement information; for example, the display transformation device presets that in the display transformation mode, each time the user double-clicks the touch screen, all the display objects to be transformed are doubled.
  • step S1 and the step S2 are not in the order, and the resource allocating device may perform step S1 and then perform step S2, or perform step S2 and then perform step S1, or perform step S1 in parallel. And step S2.
  • step S3 the display conversion device performs display conversion on the display position and display content of each display object to be converted according to the conversion requirement information to obtain the converted display position and display content, to obtain the transformed display object, For display.
  • the manner in which the display transforming device obtains a transformed display object includes but is not limited to:
  • the display transformation device first displays and transforms the display position of the display object to be transformed according to the transformation requirement information to determine a transformed display position; and then, the display transformation device converts according to the transformation The subsequent display position performs corresponding display transformation on the display content to write the converted display content to the converted display position to obtain the converted display object.
  • the display conversion device obtains a display position of a display object to be transformed, including "top left corner vertex coordinates (10, 10), length 100, width 150", and the display content of the display object includes “filling the display object area and The fill color is red "; and the conversion ratio obtained by the user is 2 times. Then, the display conversion device enlarges the display position of the display object by 2 times, and obtains the converted display position including "upper left corner vertex coordinates (20, 20), length 200, width 300"; then, the display conversion device is The transformed display position is used to determine a fill range to write red into the determined fill range to obtain the transformed display object.
  • the display transformation device performs display transformation on the display position of the display object to be transformed according to the transformation requirement information, to obtain a transformed display position, and the display transformation device according to the Transforming the demand information to display and transform the display content of the display object to be transformed to obtain the transformed display content; and then, the display conversion device combines the converted display position and the display content to obtain The transformed display object.
  • the display conversion device obtains the display position of the display object to be transformed including four vertex coordinate information "(100, 100), (300, 100), (100, 200), (300, 200)", and the display content of the display object to be transformed includes "length”
  • the image of X width 200x100
  • the obtained transformation demand information includes "the transformation ratio in the longitudinal direction is 1.5 times, and the transformation ratio in the width direction is 3 times”.
  • the display conversion means performs any of the above operations on each of the display objects to be transformed to obtain all of the transformed display objects for display.
  • the method according to the embodiment includes step S1, step S2, step S7 (not shown), and step S3.
  • Step S3 further includes step S302 (not shown).
  • Steps S1 and S2 have been described in detail in the foregoing steps, and are included herein by reference, and are not described again.
  • step S7 the display conversion means acquires the converted reference position information.
  • the change reference position information includes coordinate information of the transformed reference position for assisting display conversion.
  • the manner in which the display transforming device acquires the transformed reference location information includes but is not limited to:
  • the display transformation device determines the transformation reference position information according to the user behavior
  • the display conversion means uses the position information of the point selected by the user as the conversion reference position information; for example, the display conversion means acquires an area selected by the user, and uses the center point coordinates of the obtained area as the conversion reference position information.
  • the preset transformation reference position information includes the coordinates of the vertices in the upper left corner of the screen; and, for example, the preset transformation reference position includes the coordinates of the center point of the screen.
  • step S1, the step S2, and the step S7 have no sequence.
  • step S302 the display conversion device performs display conversion on the display position and display content of each display object to be converted according to the converted reference position information and the transformation requirement information to obtain the transformed display position and Display content to obtain the transformed display object for display.
  • the display conversion device performs display conversion on the display position and the display content of each display object to be converted according to the converted reference position information and the transformation requirement information to obtain the transformed display position and display content.
  • the difference between the position and the display content to obtain the converted display object is only that the manner of obtaining the transformed display position is different. Only the manner of obtaining the converted display position will be described here, and the rest will not be described again.
  • the display transformation device first determines a relative position of the display position of the display object to be transformed with respect to the transformed reference position information. Position information, and performing display transformation on the relative position information according to the transformation requirement information to obtain a display transformation result of the relative position information; then, the display transformation means obtains the position of the display transformation result according to the transformation reference position information Information, to obtain a transformed display position of the display object to be transformed.
  • the display conversion device obtains the display position of the display object to be transformed including four vertex coordinate information "(100, 100), (200, 100), (100, 200), (200, 200)", and the obtained conversion ratio is 2 times; display conversion device
  • the obtained user-selected transformed reference position information includes coordinate information (50, 50).
  • the display conversion device determines, according to the transformed reference position information, that the relative display position of the display object to be transformed includes vertex coordinate information “(50, 50), (150, 50), (50, 150), (150, 150)”, and Determining the display transformation result of the relative position information according to the transformation requirement information includes "(100, 100), b(300, 100), c(100, 300), d(300, 300)', and then, the display transformation means according to the transformation Referring to the position information, it is determined that the transformed display position of the display object includes vertex coordinate information "(150, 150), (350, 150), (150, 350), (350, 350)". The display conversion device obtains the converted display position and display content. The manner in which the transformed display object is displayed will not be described again.
  • any reference to the transformed reference position information and the conversion demand information is The display position and the display content of each display object to be converted are displayed and converted to obtain the converted display position and display content, so as to obtain the converted display object, and the implementation manner for displaying is included in the present invention.
  • the step S3 further includes a step S304 (not shown).
  • step S304 the display conversion device 4 displays the display position and display of the respective display objects according to the conversion demand information and the content change information corresponding to the predetermined type of display content obtained based on the conversion requirement information.
  • the content is displayed and transformed to obtain the converted display position and display content to obtain a transformed display object for display.
  • the content change information includes information to be transformed of the predetermined type of display content determined according to the transformation requirement information.
  • the display conversion device 4 displays the display position according to the conversion demand information.
  • the manner of obtaining the display object and the manner of obtaining the display object based on the converted display content and the display position have been described in detail in the foregoing step S3, and are hereby incorporated by reference.
  • the display conversion device determines whether the obtained display content is a predetermined type of display content, and if it is a predetermined type of display content, the display conversion device acquires the corresponding content according to the conversion requirement information and the display content. The information is changed, and the transformed display content is determined based on the content change information.
  • the predetermined category includes a text category
  • the display content of the display object to be transformed acquired by the display conversion device includes "the font is Song, the font with the font size is No. 5", and the conversion ratio is 2 times.
  • the display conversion device determines that the text is a display content of a predetermined category, and determines that the content change information includes a "small font size” according to the transformation requirement information
  • the display transformation device determines that the transformed display content includes "the font is Song
  • the font size is Xiaobian's text 'Baidu,'.
  • the transformed display object is regenerated according to the transformation requirement information and the read display object to be transformed. Therefore, the method according to the present invention can uniformly transform all the objects to be transformed, thereby avoiding In the prior art, by modifying the display content code to reconstruct the typography caused by the source code, the user has a better experience.
  • the method according to the embodiment includes the step S1, the step S2 and the step S3, wherein the step S1 further comprises a step S101.
  • step S101 the display transformation device determines, according to the location information of the to-be-transformed region in the display entity and the original location identification information of all display objects in the display entity. Displaying the respective display objects to be transformed related to the area to be transformed, and obtaining display positions and display contents of the respective display objects to be transformed.
  • the manner of determining the location information of the to-be-transformed area includes, but is not limited to: 1) the display transformation device directly acquires the location information of the preset to-be-transformed area, for example, the display range of the preset entire screen is the area to be transformed.
  • the display transformation device directly uses the coordinate information of the four vertices of the screen as the position information of the to-be-transformed region; 2) the display transformation device acquires the to-be-transformed region in the display entity according to the user's selection operation on the display entity Position information, for example, the display conversion device determines, by the line drawn by the user on the touch screen, the area to be transformed as a rectangular area with the straight line as a diagonal line, and acquires coordinate information of the two end points of the straight line as the The position information of the rectangular area.
  • the original location identification information of the display object includes location coordinate information of a display object of an original size directly obtained according to a source code associated with the display object, for example, when display conversion processing is not performed on the display object.
  • the source code includes any code that can be used to generate or form a display object, such as html, xml, ASCII, and custom code implemented in a binary format such as a BIN code.
  • the display transformation device acquires the location information of the to-be-transformed region, and compares the obtained location information of the to-be-transformed region with the original location identification information of all display objects in the display entity, and compares all or part of The display object included in the position information of the to-be-transformed area is displayed as the display object to be transformed, and the display position and the display content are obtained according to the original position identification information of each display object to be transformed.
  • the display conversion means determines that the position information of the area to be transformed includes "diagonal vertex coordinates (50, 50), a rectangular area of (100, 100)" according to a user selection operation, and the display conversion means obtains the display entity including the display object A
  • the display object B and the display object C wherein the original position identification information of the display object A includes "the line segment whose vertex coordinates are (110, 40), (120, 60)", and the original position identification information of the display object B includes the "vertex”
  • the triangles with coordinates (60, 55), (75, 80), (90, 90), and the original position identification information of the display object C include "line segments with vertex coordinates of (70, 70), (70, 120)".
  • Display conversion device will treat the The position information of the transformed area is compared with the original position identification information of the respective display objects, and the vertices ( 6 0, 55 ), (75, 80), ( 9 0, 90 ) and (0, 7 0) are located
  • the display transformation means determines that the display objects B and C are the display objects to be transformed, and uses the original position identification information of the display objects B and C as the display positions of the display objects B and C, and according to The original position identification information of the display objects B and C acquires the display contents of the display objects B and C.
  • the display conversion device first obtains the other two vertices of the display object "(50, 100), ( 50, 100)", and then determining whether the display object is the object to be transformed by determining whether any one of the above four vertices is included in the area to be transformed; or, for the original position identification information, including "central coordinates (50, 50), The display object of the circular area of radius 50 determines whether the display object is an object to be transformed or the like by judging the closest distance of the center coordinates to the area to be transformed.
  • step S2 and step S3 are described in detail in the example shown in FIG. 1 and are included herein by reference, and are not described again.
  • the steps S101 and S2 are not in the order, and the resource allocation device may perform step S101 and then perform step S2, or perform step S2 and then perform step S101, or perform steps in parallel. S101 and step S2.
  • the method according to the embodiment further includes a step S4 (not shown), and the step S101 further includes a step S101 1 (not shown) and a step S1012 (not shown).
  • Step S3 further includes step S301 (not shown).
  • step S4 the display conversion means acquires history conversion demand information related to the display entity.
  • the historical transformation requirement information includes at least one of the following: 1) changing in history display All the transformation demand information used in the operation, for example, if the display transformation device uses the transformation demand information "conversion ratio is 2 times" and “conversion ratio is 1.5 times" in the first two display transformation operations, the history transformation The demand information includes “the conversion ratio is 2 times” and the 'transform ratio is 1.5 times,”; 2) the display position of the current display object obtained according to the foregoing all the transformation demand information used in the history display transformation operation with respect to the current Display conversion information of the original position identification information of the display object, for example, if the display conversion device uses the conversion requirement information "conversion ratio is 2 times” and “conversion ratio is 1.5 times" in the previous two display conversion operations, The transforming means determines that the history transform demand information includes "the conversion ratio is 3 times".
  • step S1011 the display conversion device obtains the actual transformed region according to the location information of the to-be-transformed region and the historical transformation requirement information;
  • the display transforming device performs inverse transform processing on the location information of the to-be-transformed region according to the historical transform requirement information to obtain an actual transform region corresponding to the to-be-transformed region.
  • the position information of the area to be transformed includes three vertex coordinate positions "(20, 20), (20, 80), (80, 20)", and the history transformation demand information includes "the conversion ratio is 2 times"
  • the transforming device inversely transforming the location information according to the historical transformation requirement information to obtain an actual transformed region corresponding to the location information, including “(10, 10), (10, 40), (40, 10) "The area that is the apex.
  • step S1012 the display conversion device determines the display objects to be transformed according to the actual transformed region and the original location identification information of all the display objects, and obtains the display positions of the display objects to be transformed and Display content.
  • the display transforming device acquires the location information of the actual transformed region, and obtains the obtained location information of the actual transformed region and all display objects in the display entity.
  • the original position identification information is compared, and the display object included in the position information of the actual transformation area is displayed as the display object to be transformed, and the original position identification information of each display object to be transformed is used. Get its display position and display content.
  • step S2 has been described in detail in the embodiment shown in FIG. 1 and is hereby incorporated by reference.
  • step S4 there is no sequence between step S4, step S1011, step S1012, and step S2.
  • step S301 the display conversion device displays the display position of each of the display objects to be transformed according to the display position and display content of each display object to be transformed, the conversion requirement information, and the history transformation demand information.
  • the display content is displayed and transformed to obtain the converted display position and display content to obtain a transformed display object for display.
  • the display conversion device determines the actual transformation requirement information according to the transformation requirement information and the historical transformation requirement information, and displays the display position and the display content of each of the display objects to be transformed according to the actual transformation requirement information. Display conversion is performed to obtain the converted display position and display content, to obtain a converted display object for display.
  • each display object to be transformed Displaying and transforming the position and the display content to obtain the transformed display position and the display content, to obtain the converted display object, the manner for displaying, and the display of each display object to be transformed according to the transformation requirement information in the foregoing step S3
  • the position and the display content are displayed and transformed to obtain the transformed display position and the display content, so as to obtain the transformed display object, and the manner for displaying is the same or similar, and is not mentioned here.
  • the method according to the embodiment further includes the step
  • step S101 further includes step S1013 (not shown) and step S1014 (not shown)
  • step S3 further includes step S303 (not shown) Show).
  • step S8 the display conversion means acquires history conversion demand information and history conversion reference position information associated with the display entity.
  • step S1013 the display converting means obtains the actual converted area based on the position information of the area to be transformed, the history conversion demand information, and the history conversion reference position information.
  • the display transformation device first determines the relative position information of the to-be-transformed region according to the position information of the to-be-transformed region and the historical transformation reference position information; and then, the display transformation device according to the relative position of the to-be-transformed region The information is subjected to inverse transform processing to obtain inversely transformed relative position information.
  • the display transforming means determines the actual to-be-transformed region based on the history-transformed reference position information and the inverse-transformed relative position information.
  • the position information of the area to be transformed obtained by the display transforming device includes three vertices The coordinates "(20,10), b(25,20), c(30,10)", the history transformation demand information is obtained including "the transformation ratio is 1/2 times", and the history transformation reference position information includes coordinates" (10 , 10)";
  • the display conversion device first determines the relative position information of the to-be-transformed region with respect to the historical transformation reference position information including the coordinates "(10, 0), (15, 10), (20, 0)”;
  • the display conversion device inversely transforms the obtained position information by an inverse transform by 2 times according to the historical transformation requirement information, and obtains the transformed relative position information including "(20, 0), b (30, 20), c (40 , (0)”;
  • the display conversion device combines the history reference position information "(10, 10)” and the transformed relative position information to determine the position information of the actual to-be-transformed region including "(30, 10), b(40, 30), c(50
  • step S1014 the display conversion device determines each display object to be transformed according to the actual transformed region and the original position identification information of all the display objects, and obtains the display position and display content of each display object to be transformed. .
  • the display conversion device determines the display objects to be transformed according to the actual transformation area and the original position identification information of all the display objects, and obtains the display position and display content of each display object to be transformed. It is described in detail in step S1012, and is hereby incorporated by reference.
  • step S2 has been described in detail in the embodiment shown in FIG. 1 and is hereby incorporated by reference.
  • step S9 the display conversion means acquires the converted reference position information.
  • step S8 and step S1013 to the step S1014 and the step S2 the display conversion device may perform step S8 and step S1013 to step S1014 before performing step S2.
  • step S8 and step S1013 to step S1014 are performed, or steps S2 and S8 and steps S1013 to S1014 are performed in parallel; and step S8 and step S1013 to step S1014 and step S9 are not sequential.
  • step S9 is performed first, or step S9 is performed first, then step S8 and step S1013 to step S1014 are performed, or step S9 and step S8, step S1013 to step are performed in parallel.
  • step S1014 there is no sequence in step S2 and step S9.
  • the display conversion device may perform step S2 and then perform step S9, or perform step S9 before performing step S2, or perform step S9 and step S2 in parallel.
  • step S303 the display conversion device performs display conversion on the display position and the display content of each display object to be converted according to the conversion requirement information and the converted reference position information to obtain the converted display position and Display content to obtain the transformed display object for display.
  • the display conversion device displays and transforms the display position and the display content of each display object to be converted according to the conversion requirement information and the conversion reference position information to obtain the converted display position and display content.
  • the manner of obtaining the transformed display object for display is described in detail in the foregoing step S302, and is hereby incorporated by reference.
  • the transformation area can be displayed and transformed according to the reference point selected by the user, so that the display transformation is more flexible and more suitable for the user's use requirements.
  • FIG. 3 is a flow chart of a method for performing display transformation on a display object according to another preferred embodiment of the present invention.
  • the method according to the embodiment includes a step S1, a step S2, a step S5 and a step S3, wherein the step S1 further comprises a step S102.
  • step S5 the display conversion device acquires the display history record of the display entity, wherein the display history record includes location information and display content of each display object in the display entity.
  • step S102 the display conversion device determines the respective to-be-changed related to the to-be-transformed region according to the position information of the to-be-transformed region in the display entity and the display position of each display object in the display history record. Display objects, and obtain display positions and display contents of the respective display objects to be transformed.
  • the display conversion device determines the respective to-be-transformed regions related to the to-be-transformed region according to the location information of the to-be-transformed region in the display entity and the display location of each display object in the display history record. Displaying an object, and obtaining each of the displays to be transformed The display position of the object and the manner of displaying the content, and the step S101, the display conversion device determines, according to the position information of the area to be transformed in the display entity and the original position identification information of all display objects in the display entity, The display areas of the display objects to be transformed and the display content of the display objects to be converted are the same or similar, and are included herein by reference, and are not described again.
  • Steps S2 and S3 have been described in detail in the embodiment shown in FIG. 1, and are included herein by way of reference, and are not described again.
  • step S5 to the step S102 and the step S2 are not in the order, and the display conversion device may perform step S5 to step S102 before performing step S2, or the display conversion device may execute first.
  • Step S2 is followed by step S5 to step S102, or the display conversion means can perform step S2 and step S5 to step S102 in parallel.
  • the method according to the embodiment further includes step S6 (not shown).
  • step S6 the display conversion means updates the display history based on the display position and display content of the converted display object.
  • the display conversion device creates or updates the display information and the display content of the display object recorded in the display history record based on the display information and the display content of the converted display object.
  • the display converting means can directly perform display conversion according to the current display position of the object to be transformed, thereby improving the efficiency of display conversion.
  • step S1 is a flow chart of a method for performing display transformation on a display object according to still another preferred embodiment of the present invention.
  • the method according to this embodiment includes step S1, step S2, step S3, step S10, step S11, and step S12.
  • step S10 the display conversion means acquires the trigger action information of the user on the display entity.
  • the trigger action information includes at least the location information of the trigger action, and according to the trigger action of the user, the location information of the trigger action includes any one of the following: 1) position information of a coordinate point, for example, when the user clicks on the touch screen, the position information of the trigger action includes the click position information of the click action; 2) the group is used to determine the position information of the operation range of the trigger action, For example, when the user performs a scribing operation on the touch screen, the position information of the trigger action includes coordinates of the start point and the end point of the scribing action.
  • step S11 the display conversion means determines the actual trigger position information based on the trigger action information and the history change demand information related to the display entity.
  • the display conversion device determines the manner of actually triggering the location information according to the triggering action information and the historical transformation requirement information related to the display entity, and the display conversion device according to the location information of the to-be-transformed region in step S1011
  • the historical transformation requirement information is obtained by the same or similar manner in the actual transformation region, and is included herein by reference, and will not be described again.
  • step S12 the display conversion means determines the display object as the actual trigger object based on the actual trigger position information to perform an operation corresponding to the display object as the actual trigger object.
  • the display transformation device performs the query and the comparison in the original location identification information of all the display objects corresponding to the display entity, and uses the display object of the original location identification information to include all or part of the actual trigger location information as the actual trigger object. To perform an operation corresponding to the display object that is the actual trigger object.
  • the method according to the embodiment further includes a step S13 (not shown), and the foregoing step S11 further includes a step S1101 (not shown).
  • step S13 the display conversion means acquires the history conversion reference position information.
  • step S10 has been described in detail in the foregoing embodiments, and is hereby incorporated by reference.
  • step S1101 the display conversion means obtains the actual trigger action information based on the trigger action information, the history change request information, and the history change reference position information.
  • the display conversion device first determines the triggering motion according to the location information of the triggering action included in the triggering action information and the history conversion reference location information. Corresponding position information; then, the display converting means inversely transforms the relative position information of the triggering action according to the historical transformation demand information to obtain inversely transformed relative position information; and then, the display converting means refers to the historical transformation reference The position information and the inversely transformed relative position information are used to obtain the actual trigger action information.
  • the position information of the trigger action information obtained by the display conversion device includes coordinates
  • obtaining the history transformation demand information includes “reducing to 1/3 of the original position identification information", and the history transformation reference position information includes the coordinates "(10, 0)", then the display conversion device first determines The relative position information of the trigger action relative to the history change reference position information is (20, 10); then, the display transforming device performs an inverse transformation of the relative position information of the obtained trigger action by 3 times according to the history change demand information.
  • the relative position information obtained after the inverse transformation includes the coordinates "(60, 30)”;
  • the display conversion means determines the actual trigger action information including the position information "(70, 40)" in conjunction with the history reference position information (10, 0).
  • step S10 and step S13 there is no sequence in step S10 and step S13, and the display conversion device may perform step S10 and then perform step S13.
  • the display conversion device may perform step S13 before performing step S10.
  • the display converting means may perform step S10 and step S13 in parallel.
  • step S12 has been described in detail in the foregoing steps and is included in the reference, ⁇ , ⁇ .
  • the user can smoothly respond to various operations of the user for displaying the content, thereby further improving the user experience.
  • Fig. 5 is a view showing the configuration of a display converting apparatus for performing display conversion on a display object in another aspect of the present invention.
  • the display conversion device according to the present embodiment includes a first acquisition device 1, a second acquisition device 2, and a conversion device 3.
  • the first obtaining device 1 acquires a display position and display content of one or more display objects to be transformed in the display entity. Specifically, the first acquiring device 1 regards all the objects in the predetermined range in the display entity as the object to be transformed, or determines the object to be transformed according to the selection behavior of the user, to obtain the display position and the display content of the object to be transformed.
  • the display entity includes an object currently available for operation by the user; for example, an object related to the currently active window, such as a webpage, a picture, and the like displayed by the current active window.
  • All objects within the predetermined range include, but are not limited to: 1) displaying all display objects in the entity, for example, when the display entity includes a webpage, all objects within the predetermined range include all display objects in the webpage; 2) A display object in the display entity and currently displayed on the display screen, for example, a display object currently displayed on the display screen in the web page, and the like.
  • the display position includes a set of position information for determining a range of position of the display object; for example, when the shape of the display object is a rectangle, the display position includes the coordinates of the diagonal vertex of the rectangle, or the display position thereof includes a rectangular shape.
  • the display content includes content that is required to be displayed by the display object.
  • the display content further includes a presentation form of the content that the display object needs to display.
  • the display content includes the string information of the text, and preferably, the color, the font size, the font, and the like of the character string information; and, for example, when the display object is a border, the display content thereof
  • the length of the border line is included, and preferably includes the thickness, color, style, and the like of the border line.
  • the display content includes a picture, and preferably, the filling manner of the picture, and the like.
  • the second obtaining means 2 acquires the transformation demand information of the one or more display objects to be transformed.
  • the transformation requirement information includes at least one of the following information: 1) a transformation type, for example, an enlargement transformation, a reduction transformation, etc.; 2) a transformation ratio, for example, a 1.5-fold transformation, a 0.5-fold transformation, etc.; wherein the transformation ratio can be further
  • the conversion ratios in the respective transformation directions are included, for example, the length conversion ratio, the width conversion ratio, and the like.
  • the manner in which the second obtaining device 2 acquires the transformation requirement information includes but is not limited to The second obtaining device 2 obtains the conversion demand information directly selected or input by the user. For example, if the user clicks the button of “ ⁇ 2” on the touch screen, the second obtaining device 2 determines that the conversion ratio input by the user is 2 times; The second obtaining means 2 determines the conversion demand information according to the user's operation behavior; for example, the second obtaining means 2 determines the conversion ratio or the like according to the length of the distance swiped by the user on the touch screen; 3) the second obtaining means 2 directly acquires the pre- The transformation request information is set; for example, the second acquisition device 2 presets to double-fold all the display objects to be transformed each time the user double-clicks the touch screen in the display transformation mode.
  • the converting means 3 displays and transforms the display position and the display content of each display object to be converted based on the conversion request information to obtain the converted display position and display content, and obtains the converted display object for display.
  • the manner in which the transforming device 3 obtains a transformed display object includes but is not limited to:
  • the transforming device 3 For a display object to be transformed, the transforming device 3 first displays and transforms the display position of the display object to be transformed according to the transform requirement information to determine the transformed display position; and then, the transforming device 3 converts according to the transform The subsequent display position performs corresponding display transformation on the display content to write the converted display content to the converted display position to obtain the converted display object.
  • the display position of the display object to be transformed by the transforming device 3 includes "top left corner vertex coordinates (10, 10), length 100, width 150", and the display content of the display object includes “filling the display object area and The fill color is red "; and the conversion ratio obtained by the user is 2 times. Then, the conversion device 3 enlarges the display position of the display object by a factor of two, and obtains the converted display position including "the upper left vertex coordinates (20, 20), the length 200, and the width 300". Next, the conversion device 3 is based on The transformed display position is used to determine a fill range to write red into the determined fill range to obtain the transformed display object.
  • the transforming device 3 performs display transformation on the display position of the display object to be transformed according to the transformation requirement information, to obtain a transformed display position, and the transforming device 3 according to the Transforming the demand information to display and transform the display content of the display object to be transformed to obtain the transformed display content;
  • the conversion device 3 obtains the converted display object in conjunction with the converted display position and display content.
  • the display device obtains the display position of the display object to be transformed including four vertex coordinate information "(100, 100), (300, 100), (100, 200), (300, 200)", the display of the display object to be transformed
  • the obtained transformation demand information includes "the transformation ratio in the longitudinal direction is 1.5 times, and the transformation ratio in the width direction is 3 times”.
  • the transforming means 3 performs any of the above operations on each display object to be transformed to obtain all the transformed display objects for display.
  • the display conversion device includes a first acquisition device 1, a second acquisition device 2, a fifth acquisition device (not shown), and a conversion device 3.
  • the transforming device 3 further includes a second sub-transformer (not shown).
  • the first obtaining device 1 and the second obtaining device 2 have been described in detail in the foregoing embodiments, and are included herein by reference, and are not described again.
  • the fifth obtaining means acquires the transformed reference position information.
  • the transformation refers to a location letter
  • the information includes coordinate information of the transformed reference position, and the transformed reference position is used to assist in display conversion.
  • the manner in which the fifth obtaining device acquires the converted reference location information includes but is not limited to:
  • the fifth obtaining device determines the converted reference position information according to the user behavior
  • the fifth obtaining means uses the position information of the point selected by the user as the conversion reference position information; for example, the fifth obtaining means acquires an area selected by the user, and uses the center point coordinates of the obtained area as the conversion reference position information.
  • the preset transformation reference position information includes the coordinates of the vertices in the upper left corner of the screen; and, for example, the preset transformation reference position includes the coordinates of the center point of the screen.
  • the second sub-transformation device performs display conversion on the display position and the display content of each display object to be transformed according to the converted reference position information and the transformation requirement information to obtain a transformed display position and display content, to obtain The converted display object is used for display.
  • the second sub-transformation device performs display conversion on the display position and display content of each display object to be converted according to the converted reference position information and the transformation requirement information to obtain the transformed display position and display. And obtaining, by the conversion device 3, the display position and the display content of each display object to be transformed according to the transformation requirement information to obtain a transformed image.
  • the manner in which the display position and the display content are displayed to obtain the transformed display object differs only in the manner in which the converted display position is obtained. Only the manner of obtaining the transformed display position will be described here, and the rest will not be described again. .
  • the second sub-transformation device first determines relative position information of the display position of the display object to be transformed with respect to the transformed reference position information, and according to the transformation requirement information. Performing display transformation on the relative position information to obtain a display transformation result of the relative position information, and then, the second sub-transformation device And obtaining position information of the display transformation result according to the transformation reference position information, to obtain a transformed display position of the display object to be transformed.
  • the first acquisition device 1 obtains the display position of the display object to be transformed including four vertex coordinate information "(100, 100), (200, 100), (100, 200), (200, 200)", and the conversion ratio obtained by the second acquisition device 2 is 2 times;
  • the user-selected transformed reference position information obtained by the fifth obtaining means includes coordinate information (50, 50).
  • the second sub-transformation device determines, according to the transformed reference position information, that the relative display position of the display object to be transformed includes vertex coordinate information "(50, 50), (150, 50), (50, 150), (150, 150)” And determining, according to the transformation requirement information, that the display transformation result of the relative position information includes "(100, 100), b (300, 100), c (100, 300), d (300, 300)"; and then, the second sub-transformation device according to the transformation reference The position information determines that the transformed display position of the display object includes vertex coordinate information "(150, 150), (350, 150), (150, 350), (350, 350)". The manner in which the second sub-transformation device obtains the transformed display object based on the converted display position and display content will not be described again.
  • any reference to the transformed reference position information and the conversion demand information is The display position and the display content of each display object to be converted are displayed and converted to obtain the converted display position and display content, so as to obtain the converted display object, and the implementation manner for displaying is included in the present invention.
  • the transforming device 3 further includes a fourth sub-transformer (not shown).
  • the fourth sub-transformation device 4 displays the display position and the display content of the respective display objects according to the conversion requirement information and the content change information corresponding to the predetermined type of display content obtained based on the transformation requirement information. Transform, to obtain the transformed display position and display content, to obtain the transformed display object for display.
  • the content change information includes information to be transformed of the predetermined type of display content determined according to the transformation requirement information.
  • the fourth sub-transformation device obtains the display object by the manner in which the display position is displayed and converted according to the conversion request information, and the display content and the display position after the conversion.
  • the equation has been described in detail in the foregoing conversion device 3, and is included herein by reference.
  • the fourth sub-transformation device determines whether the obtained display content is a predetermined type of display content, if it is of a predetermined type.
  • the fourth sub-transformation device acquires the corresponding content change information according to the conversion requirement information and the display content, and determines the transformed display content according to the content change information.
  • the text category is included in the predetermined category, and the display content of the display object to be transformed acquired by the first obtaining device 1 includes "the font of the font is Song, the font number is No. 5, Baidu,"; the conversion ratio obtained by the second acquiring device 2 It is 2 times.
  • the fourth sub-transformation device determines that the text is the display content of the predetermined category, and determines that the content change information includes the "small font size” according to the transformation requirement information, and the fourth sub-transformation device determines that the transformed display content includes " The font is Song, and the font size is Xiaobian's text 'Baidu,'.
  • the manner in which the fourth sub-transformation device obtains the converted display object based on the converted display position and display content will not be described again.
  • the transformed display object is regenerated according to the transformation requirement information and the read display object to be transformed. Therefore, the method according to the present invention can uniformly transform all the objects to be transformed, thereby avoiding In the prior art, by modifying the display content code to reconstruct the typography caused by the source code, the user has a better experience.
  • FIG. 6 is a block diagram showing the structure of a display conversion device for performing display conversion on a display object in accordance with a preferred embodiment of the present invention.
  • the display conversion device according to the present embodiment includes a first acquisition device 1, a second acquisition device 2, and a conversion device 3, wherein the first acquisition device 1 further includes a first determination device 101.
  • the first determining device 101 is configured to determine location information of the area to be transformed in the display entity and And displaying the original position identification information of all the display objects in the entity, determining the display objects to be transformed related to the to-be-transformed area, and obtaining display positions and display contents of the display objects to be transformed.
  • the manner in which the first determining apparatus 101 acquires the location information of the to-be-transformed area includes, but is not limited to: 1) the first determining apparatus 101 directly acquires the preset location information of the to-be-transformed area, for example, presets the display of the entire screen.
  • the first determining device 101 directly acquires the coordinate information of the four vertices of the screen as the position information of the to-be-transformed region; 2) the first determining device 101 further includes a third sub-fetching device,
  • the third sub-acquisition device acquires the location information of the to-be-transformed region in the display entity according to the user's selection operation on the display entity.
  • the third sub-acquisition device determines the to-be-transformed region by using a line drawn by the user on the touch screen.
  • a rectangular area in which the straight line is a diagonal line, and coordinate information of two end points of the straight line is acquired as position information of the rectangular area.
  • the original location identification information of the display object includes location coordinate information of a display object of an original size directly obtained according to a source code associated with the display object, for example, when display conversion processing is not performed on the display object.
  • the source code includes any code that can be used to generate or form a display object, such as html, xml, ASCII, and custom code implemented in a binary format such as a BIN code.
  • the first determining apparatus 101 acquires location information of the to-be-transformed area, and compares the obtained location information of the to-be-transformed area with original location identification information of all display objects in the display entity, and compares all Or the display object included in the position information of the to-be-transformed area is displayed as the display object to be transformed, and the display position and the display content are obtained according to the original position identification information of each display object to be transformed.
  • the first determining means 101 determines that the position information of the area to be transformed includes "diagonal line coordinates (50, 50), rectangular area of (100, 100)" according to a user selection operation, and the first determining means 101 obtains the display entity The display object A, the display object B, and the display object C, wherein the original position identification information of the display object A includes "a line segment with vertex coordinates of (1 10, 40), (120, 60)", and displays the original position of the object B. Identification information includes "top The point coordinates are (60, 55), (75, 80), (90, 90) triangles, and the original position identification information of the display object C includes "line segments of vertex coordinates of (70, 70), (70, 120)".
  • the first determining means 101 compares the position information of the area to be transformed with the original position identification information of the respective display objects and determines vertices (60, 55), (75, 80), (90, 90) and (70) 70 is located in the area to be transformed, then the first determining means 101 determines that the display objects B and C are display objects to be transformed, and uses the original position identification information of the display objects B and C as display objects B and C. The display position, and the display contents of the display objects B and C are acquired according to the original position identification information of the display objects B and C.
  • the first determining means 101 first obtains the other two vertices of the display object" (50, 100) , (50,100)", and then determining whether the display object is the object to be transformed by determining whether any one of the above four vertices is included in the area to be transformed; or, for the original position identification information, including "central coordinates (50, 50)
  • the display object of the circular area of radius 50 determines whether the display object is an object to be transformed or the like by judging the closest distance of the center coordinates to the area to be transformed.
  • the display conversion device further includes a third acquisition device (not shown), and the first determination device 101 further includes a first sub-acquisition device (not shown) and A first sub-determining device (not shown), the transforming device 3 further comprising a first sub-transforming device (not shown).
  • the third obtaining means acquires historical transformation demand information related to the display entity.
  • the historical transformation requirement information includes at least one of the following: 1) changing in history display All the transformation demand information used in the operation, for example, if the display transformation device uses the transformation demand information "conversion ratio is 2 times" and “conversion ratio is 1.5 times" in the first two display transformation operations, the history transformation The demand information includes “the conversion ratio is 2 times” and the 'transform ratio is 1.5 times,”; 2) the display position of the current display object obtained according to the foregoing all the transformation demand information used in the history display transformation operation with respect to the current Display conversion information of the original position identification information of the display object, for example, if the display conversion device uses the conversion requirement information "conversion ratio is 2 times” and “conversion ratio is 1.5 times" in the previous two display conversion operations, The transforming means determines that the history transform demand information includes "the conversion ratio is 3 times".
  • the first sub-acquisition device obtains an actual transformation region according to the location information of the to-be-transformed region and the historical transformation requirement information;
  • the first sub-acquisition device performs inverse transform processing on the location information of the to-be-transformed region according to the historical transform requirement information to obtain an actual transform region corresponding to the to-be-transformed region.
  • the position information of the area to be transformed includes three vertex coordinate positions "(20, 20), (20, 80), (80, 20)", and the history transformation demand information includes "the conversion ratio is 2 times"
  • the first sub-acquisition device inversely transforms the location information according to the historical transformation requirement information to obtain the location information, where the corresponding actual transformation region includes “(10, 10), (10, 40), (40,10)” is the area of the apex.
  • the first sub-determining device determines the display objects to be transformed according to the actual transformed region and the original position identification information of all the display objects, and obtains display positions and display contents of the respective display objects to be transformed.
  • the first sub-determining device acquires location information of the actual transformed region, and obtains location information of the actual transformed region and all display objects in the display entity.
  • the original position identification information is compared, and the display object included in the position information of the actual transformation area is displayed as the display object to be transformed, and the original position identification information of each display object to be transformed is determined according to To get its display position and display content.
  • the second obtaining device 2 has been described in detail in the embodiment shown in Fig. 5, and is hereby incorporated by reference.
  • the first sub-transformation device displays and displays the display position and the display content of each of the display objects to be transformed according to the display position and the display content of the display object to be transformed, the transformation demand information, and the historical transformation requirement information.
  • the transformed display position and display content are obtained to obtain a transformed display object for display.
  • the first sub-transformation device determines actual conversion requirement information according to the transformation requirement information and the historical transformation requirement information, and displays display positions of the display objects to be transformed according to the actual transformation requirement information.
  • the display content is displayed and transformed to obtain the converted display position and display content to obtain a transformed display object for display.
  • the second acquisition means 2 obtains the transformation demand information including "the transformation ratio in the length direction is 2/3 times, the transformation ratio in the width direction is 1/2 times", and the third acquisition means obtains the history transformation demand information including the "longitudinal direction”
  • the transformation ratio is 3 times and the transformation ratio in the width direction is 2 times
  • the transformation ratio in the width direction included in the actual transformation demand information the transformation ratio in the width direction in the transformation demand information * in the history transformation demand information
  • the first sub-converter has "the conversion ratio in the longitudinal direction is 2 times and the conversion ratio in the width direction is 1 time” based on the obtained actual transformation demand information. Displaying and transforming the display position and the display content of each of the display objects to be
  • the display position and the display content of each display object to be transformed are displayed and transformed according to the actual transformation demand information to obtain the transformed display position and display content, Obtaining the converted display object, displaying the display position and the display content of each display object to be converted according to the conversion request information, and obtaining the converted display position and the display content by using the conversion device 3
  • the transformed display objects are obtained in the same or similar manner for display, and are not mentioned here.
  • the display conversion device further includes a sixth obtaining device (not shown) and a seventh obtaining device (not shown), wherein the first determining device 101 further includes The second sub-acquisition device (not shown) and the second sub-determination device (not shown) further comprise a third sub-transformation device (not shown).
  • the sixth obtaining means acquires history conversion demand information and history conversion reference position information related to the display entity.
  • the second sub-acquisition device obtains the actual transformed region based on the position information of the region to be transformed, the history transformation demand information, and the history transformation reference position information.
  • the second sub-acquisition device first determines the relative position information of the to-be-transformed region according to the location information of the to-be-transformed region and the historical transformed reference location information; The relative position information of the region is subjected to inverse transform processing to obtain inversely transformed relative position information. Next, the second sub-acquisition device determines the actual to-be-transformed region according to the historical transformed reference position information and the inverse transformed relative position information.
  • the position information of the region to be transformed obtained by the display transforming device includes three vertex coordinates "(20, 10), b(25, 20), c(30, 10)', and the sixth obtaining means obtains the history transform demand information. Including "the transformation ratio is 1/2 times", and the historical transformation reference position information includes coordinates "(10,10)"; then the second sub-acquisition device first determines the relative position information of the to-be-transformed region with respect to the historical transformed reference position information including coordinates "(10,0), (15,10), (20, 0)”; Next, the second sub-acquisition device inversely transforms the obtained position information by 2 times according to the historical transformation demand information, and obtains the transformed relative position information including "(20, 0), b (30 , 20), c(40, 0)',; Next, the second sub-acquisition device combines the historical reference position information "(10, 10)" and the transformed relative position information to determine the position information of the actual to-be-transformed region including: (30,10), b(40
  • the second sub-determining device determines each display object to be transformed according to the actual transformed region and the original position identification information of all the display objects, and obtains the display position and display content of each display object to be transformed.
  • the second sub-determining device determines the display objects to be transformed according to the actual transformed region and the original location identification information of all the display objects, and obtains the display position and display content of each display object to be transformed. It is described in detail in the foregoing description of the first sub-determining device, and is hereby incorporated by reference.
  • the second obtaining device 2 has been described in detail in the embodiment shown in Fig. 5, and is hereby incorporated by reference.
  • the seventh obtaining means acquires the transformed reference position information.
  • the third sub-transformation device displays and transforms the display position and the display content of each display object to be converted according to the conversion request information and the converted reference position information to obtain the converted display position and display content.
  • the third sub-transformation device displays and transforms the display position and the display content of each display object to be converted to obtain the converted display position and display according to the conversion requirement information and the converted reference position information.
  • the content to obtain the converted display object for display is described in detail in the description of the second sub-transformation device, and is hereby incorporated by reference.
  • the transformation area can be displayed and transformed according to the reference point selected by the user, so that the display transformation is more flexible and more suitable for the user's use requirements.
  • Fig. 7 is a block diagram showing the structure of a display conversion apparatus for performing display conversion on a display object according to another preferred embodiment of the present invention.
  • the display conversion device according to the present embodiment includes a first acquisition device 1, a second acquisition device 2, a fourth acquisition device 5, and a conversion device 3, wherein the first acquisition device 1 further includes a second determination device 102.
  • the fourth obtaining device 5 acquires a display history record of the display entity, wherein the display history record includes location information and display content of each display object in the display entity.
  • the second determining means 102 determines, according to the position information of the area to be transformed in the display entity and the display position of each display object in the display history, the respective display objects to be transformed related to the area to be transformed, and Obtaining a display position and a display content of each of the display objects to be transformed.
  • the second determining device 102 determines, according to the location information of the to-be-transformed region in the display entity and the display location of each display object in the display history, the respective to-be-transformed regions related to the to-be-transformed region. Displaying an object, and obtaining a display position of the display object to be transformed and a manner of displaying the content, and the first determining means 101 according to the position information of the area to be transformed in the display entity and all display objects in the display entity.
  • the original location identification information determines the display objects to be transformed related to the to-be-transformed area, and obtains the display position and display content of each display object to be transformed in the same or similar manner, and is included in the reference manner. This will not be repeated.
  • the second obtaining means 2 and the converting means 3 have been described in detail in the embodiment shown in Fig. 5, and are hereby incorporated by reference.
  • the display conversion device further includes an update device (not shown).
  • the update device updates the display history based on the display position and display content of the converted display object.
  • the update device creates or updates the display information of the display object recorded in the display history record and the display content according to the display information and the display content of the converted display object.
  • the display conversion device according to the embodiment can directly perform display conversion according to the current display position of the object to be transformed, thereby improving the efficiency of display conversion.
  • FIG. 8 is a schematic structural diagram of an updating apparatus for performing display conversion on a display object according to still another preferred embodiment of the present invention.
  • the method according to the present embodiment includes a first acquisition device 1, a second acquisition device 2, a conversion device 3, a trigger acquisition device 10, a trigger determination device 11, and an execution device 12.
  • the first obtaining means 1, the second obtaining means 2 and the converting means 3 have been described in detail in the embodiment shown in Fig. 5, Fig. 6, or Fig. 7, and are hereby incorporated by reference.
  • the trigger acquisition device 10 acquires trigger action information of the user on the display entity.
  • the trigger action information includes at least the location information of the trigger action, and according to the trigger action of the user, the location information of the trigger action includes any one of the following: 1) location information of a coordinate point, for example, when the user When clicking on the touch screen, the location information of the triggered action includes the click location information of the click action; 2) the group is used to determine the location information of the operation range of the trigger action, for example, when the user performs the scribing operation on the touch screen,
  • the position information of the trigger action includes the coordinates of the start point and the end point of the scribing action.
  • the trigger determining means 11 determines the actual trigger position information based on the trigger action information and the history change demand information related to the display entity.
  • the trigger determining device 11 determines, according to the triggering action information and the historical transformation requirement information related to the display entity, a manner of actually triggering the location information, and the location information and the location of the to-be-transformed region by the first sub-acquisition device.
  • the historical transformation requirement information is obtained in the same or similar manner to obtain the actual transformation region, and is included herein by reference, and will not be described again.
  • the execution device 12 determines a display object as an actual trigger object based on the actual trigger position information to perform an operation corresponding to the display object as the actual trigger object.
  • the executing device 12 performs the query and the comparison in the original location identification information of all the display objects corresponding to the display entity, and uses the display object of the actual location information including all or part of the actual trigger location information as the actual trigger object. To execute An operation corresponding to the display object as the actual trigger object.
  • the display conversion device further includes an eighth acquisition device (not shown), and the trigger determination device 11 further includes a sub-trigger determination device (not shown).
  • the eighth obtaining means acquires the history conversion reference position information.
  • the trigger acquisition device 10 has been described in detail in the foregoing embodiments and is hereby incorporated by reference.
  • the sub-trigger determining means 4 obtains the actual trigger action information based on the trigger action information, the history change request information, and the history change reference position information.
  • the sub-trigger determining device first determines the relative position information of the triggering action according to the position information of the triggering action included in the triggering action information and the historical transformation reference position information;
  • the historical transformation demand information performs inverse transformation processing on the relative position information of the triggering action to obtain inversely transformed relative position information.
  • the sub-trigger determining device converts the reference position information and the inverse transformed relative position information according to the history. Obtaining the actual trigger action information.
  • the position information of the trigger action information obtained by the trigger acquisition device 10 includes coordinates "(30, 10)", and the display conversion device obtains the history change demand information including "reduced to 1/3 of the original position identification information", and the eighth
  • the acquisition device obtains the history transformation reference position information including the coordinate "(10,0)”
  • the sub-trigger determination device first determines the relative position information of the trigger action relative to the history transformation reference position information as (20, 10);
  • the trigger determining means performs an inverse transformation of the relative position information of the obtained triggering action by 3 times according to the historical transformation demand information to obtain the inverse transformed relative position information including the coordinate "(60, 30)”;
  • the determining device determines the actual trigger action information including the position information "(70, 40)” in conjunction with the history reference position information (10, 0).
  • the user after the display content is displayed and converted, the user can smoothly respond to various operations of the user for displaying the content, thereby further improving the user experience.

Description

一种用于对显示对象进行显示变换的方法、 装置和设备 技术领域
本发明涉及计算机技术领域, 尤其涉及一种用于对显示对象进行 显示变换的方法。 背景技术
现有技术中, 当需要对网页等展现在屏幕上的显示内容进行缩放 变换时, 通常采用修改用于生成显示内容的源代码, 例如用于生成网 页的源代码中的 CSS模块, 来实现对显示内容进行整体缩放的功能。 但由于源代码中往往存在限定位置或大小的显示对象, 使得通过修改
CSS等宏观调整样式的方法无法实现对该等显示对象的缩放, 导致缩 放后的排版变形。 发明内容
本发明的目的是提供一种用于对显示对象进行显示变换的方法、 装置和设备。
根据本发明的一个方面, 提供一种计算机实现的用于对显示对象 进行显示变换的方法, 其中, 该方法包括以下步骤:
a获取显示实体中一个或多个待变换的显示对象的显示位置及显示 内容;
其中, 该方法还包括:
- 获取所述一个或多个待变换的显示对象的变换需求信息; 其中, 该方法还包括:
1才艮据所述变换需求信息对各个待变换的显示对象的显示位置及显 示内容进行显示变换来获得变换后的显示位置及显示内容, 以获得变换 后的显示对象, 用以进行显示。
根据本发明的另一个方面, 还提供了一种用于对显示对象进行显 示变换的显示变换装置, 其中, 该显示变换装置包括: 第一获取装置、 用于获取显示实体中一个或多个待变换的显示对 象的显示位置及显示内容;
其中, 该显示变换装置还包括:
第二获取装置、 用于获取所述一个或多个待变换的显示对象的变 换需求信息;
其中, 该显示变换装置还包括:
变换装置、 用于根据所述变换需求信息对各个待变换的显示对象 的显示位置及显示内容进行显示变换来获得变换后的显示位置及显 示内容, 以获得变换后的显示对象, 用以进行显示。
根据本发明的再一个方面, 还提供了一种计算机设备, 该计算机 设备包括所述显示变换装置。
与现有技术相比, 本发明具有以下优点: 1 )根据本发明的方法 能够对所有待变换对象进行统一变换, 避免了现有技术中通过修改显 示内容代码来在源代码基础上进行重构所产生的排版变形问题; 2 ) 根据本发明的方法可根据用户选择的参照点对待变换区域进行显示 变换, 使得显示变换更加灵活, 更符合用户的使用需求; 3 )根据本 发明的方法可以直接根据待变换对象的当前的显示位置直接进行显 示变换, 提高了显示变换的效率。 附图说明
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述, 本发明的其它特征、 目的和优点将会变得更明显:
图 1为本发明一个方面的计算机实现的用于对显示对象进行显示 变换的方法流程图;
图 2为本发明一个优选实施例的用于对显示对象进行显示变换的 方法流程图;
图 3为本发明另一个优选实施例的用于对显示对象进行显示变换 的方法流程图;
图 4为本发明再一个优选实施例的用于对显示对象进行显示变换 的方法流程图;
图 5为本发明一个方面的用于对显示对象进行显示变换的显示变 换装置的结构示意图;
图 6为本发明一个优选实施例的用于对显示对象进行显示变换的 显示变换装置的结构示意图;
图 7为本发明另一个优选实施例的用于对显示对象进行显示变换 的显示变换装置的结构示意图;
图 8为本发明再一个优选实施例的用于对显示对象进行显示变换 的显示变换装置的结构示意图;
附图中相同或相似的附图标记代表相同或相似的部件。 具体实施方式
下面结合附图对本发明作进一步详细描述。
图 1示意出了本发明一个方面的计算机实现的用于对显示对象进 行显示变换的方法流程图。 其中, 根据本发明的方法可通过计算机设 备中的显示变换装置来实现。 其中, 该计算机设备包括但不限于: 1 ) 用户设备; 2 ) 网络设备。 所述用户设备包括但不限于计算机、 智能 手机、 PDA等; 所述网络设备包括但不限于单个网络服务器、 多个网 络服务器组成的服务器组或基于云计算( Cloud Computing )的由大量 计算机或网络服务器构成的云, 其中, 云计算是分布式计算的一种, 由一群松散耦合的计算机集组成的一个超级虚拟计算机。 其中, 所述 显示变换装置包括但不限于基于软件和 /或硬件实现的装置,如操作系 统、 应用模块、 处理控制器等。
在步骤 S1 中, 显示变换装置获取显示实体中一个或多个待变换 的显示对象的显示位置及显示内容。
具体地, 显示变换装置将预定范围内的所有对象作为待变换对 象, 或者, 根据用户的选择行为来确定待变换对象, 以获得待变换对 象的显示位置及显示内容。
其中, 所述显示实体包括当前可供用户进行操作的对象; 例如, 与当前活动窗口相关的对象,如当前活动窗口所展现的网页、图片等。 所述预定范围内的所有对象包括但不限于: 1 ) 显示实体中的所有显 示对象, 例如, 当显示实体包括网页时, 预定范围内的所有对象包括 该网页中的所有显示对象; 2 ) 包含于显示实体中且当前展现在显示 屏上的显示对象,例如,网页中当前被展现在显示屏上的显示对象等。
其中, 所述显示位置包括一组用于确定显示对象位置范围的位置 信息; 例如, 当显示对象的形状为长方形, 其显示位置包括该长方形 的对角顶点坐标, 或者, 其显示位置包括长方形的左上角顶点坐标以 及该长方形的长度和宽度; 又例如, 当显示对象的形状为圆形, 其显 示位置包括圆形的圆心坐标和圆形的半径; 又例如, 当显示对象的形 状为多边形, 其显示位置包括每个边缘顶点的位置坐标等。
其中, 所述显示内容包括显示对象所需展现的内容, 优选地, 显 示内容还包括显示对象所需展现的内容的展现形式。 例如, 当显示对 象为文本时, 其显示内容包括该文本的字符串信息, 优选地, 还包括 该字符串信息的颜色、 字号、 字体等; 又例如, 当显示对象为边框时, 其显示内容包括边框线条的长度, 优选地, 还包括边框线条的粗细、 颜色、 式样等; 又例如, 当显示对象为图片时, 其显示内容包括图片, 优选地, 还包括图片的填充方式等。
在步骤 S2 中, 显示变换装置获取所述一个或多个待变换的显示 对象的变换需求信息。
其中, 所述变换需求信息包括以下至少一种信息: 1 ) 变换类型, 例如, 放大变换、 缩小变换等; 2 )变换比例, 例如, 1.5倍变换、 0.5 倍变换等;其中,变换比例可进一步包括各个变换方向上的变换比例, 例如, 长度变换比例、 宽度变换比例等。
其中, 获取所述变换需求信息的方式包括但不限于: 1 ) 显示变 换装置获取用户直接选择或输入的变换需求信息, 例如, 用户在触摸 屏上点击" χ2"的按键, 则显示变换装置确定用户输入的变换比例为 2 倍; 2 )显示变换装置根据用户操作行为来确定变换需求信息; 例如, 显示变换装置根据用户在触摸屏上划动的距离的长短来确定变换比 例等; 3 ) 显示变换装置直接获取预设的变换需求信息; 例如, 显示 变换装置预设在显示变换模式下每次用户双击触摸屏时, 将所有的待 变换的显示对象放大两倍。
需要说明的是, 本实施例中, 所述步骤 S1与步骤 S2并无先后顺 序, 资源分配装置可以先执行步骤 S1再执行步骤 S2 , 或者先执行步 骤 S2再执行步骤 S1 , 或者并行执行步骤 S1和步骤 S2。
在步骤 S3 中, 显示变换装置根据所述变换需求信息对各个待变 换的显示对象的显示位置及显示内容进行显示变换来获得变换后的 显示位置及显示内容, 以获得变换后的显示对象, 用以进行显示。
具体地, 显示变换装置获得一个变换后的显示对象的方式包括但 不限于:
1 ) 对于一个待变换的显示对象, 显示变换装置先根据所述变换 需求信息来对该待变换的显示对象的显示位置进行显示变换, 以确定 变换后的显示位置; 接着, 显示变换装置根据变换后的显示位置对该 显示内容进行相应的显示变换以将变换后的显示内容写入变换后的 显示位置, 来获得变换后的显示对象。
例如, 显示变换装置获得一个待变换的显示对象的显示位置包括 "左上角顶点坐标(10, 10), 长度 100, 宽度 150", 且该显示对象的显 示内容包括"填充该显示对象所在区域且填充色为红色"; 并且获得用 户输入的变换比例为 2倍。 则显示变换装置对该显示对象的显示位置 进行放大 2倍的显示变换, 获得变换后的显示位置包括 "左上角顶点 坐标 (20, 20), 长度 200, 宽度 300"; 接着, 显示变换装置根据所述 变换后的显示位置, 来确定填充范围, 以将红色写入所确定的填充范 围中, 来获得变换后的显示对象。
2 ) 对于一个待变换的显示对象, 显示变换装置根据所述变换需 求信息来对该待变换的显示对象的显示位置进行显示变换, 以获得变 换后的显示位置, 并且, 显示变换装置根据所述变换需求信息来对该 待变换的显示对象的显示内容进行显示变换, 以获得变换后的显示内 容; 接着, 显示变换装置结合变换后的显示位置及显示内容, 来获得 变换后的显示对象。
例如, 显示变换装置获得待变换的显示对象的显示位置包括四个 顶点坐标信息 "(100,100), (300,100), (100,200), (300,200)" , 该待变 换的显示对象的显示内容包括"长度 X宽度 =200x100的图像", 且获得 的变换需求信息包括 "长度方向的变换比例为 1.5倍,宽度方向的变换 比例为 3倍"。
则显示变换装置根据所述变换需求信息分别将显示位置中的长 度坐标放大 1.5倍, 将宽度坐标放大 3倍, 获得变换后的显示位置中 四个顶点坐标信息" (150,300), (450,300), (150,600), (450,600)" , 并 且, 显示变换装置对显示内容进行相应的显示变换处理并获得变换后 的显示内容包括"长 X宽 =300x300的图像"; 接着, 显示变换装置将变 换后的图像写入变换后的显示位置中, 以获得变换后以 "(150,300) , (450,300), (150,600), (450,600)"四个点为顶点, 并且长 χ宽 =300x300 的图像。
显示变换装置对每个待变换的显示对象执行上述任一操作, 以获 得所有变换后的显示对象, 用以进行显示。
需要说明的是, 上述举例仅为更好地说明本发明的技术方案, 而非 对本发明的限制, 本领域技术人员应该理解,任何根据所述变换需求信 息对各个待变换的显示对象的显示位置及显示内容进行显示变换来 获得变换后的显示位置及显示内容, 以获得变换后的显示对象, 用以 进行显示的实现方式, 例如, 才艮据变换类型, 来获取与变换类型对应的 预定变换比例, 以才艮据预定变换比例来获得变换后的显示对象等, 均应 包含在本发明的范围内。
作为本发明的一个优选实施例, 才艮据本实施例的方法包括步骤 Sl、 步骤 S2、 步骤 S7 (图未示)及步骤 S3。 其中, 步骤 S3还包括步骤 S302 (图未示) 。
步骤 S1与步骤 S2已在前述步骤中予以详述, 并以引用的方式包含 于此, 不再赘述。
在步骤 S7中, 显示变换装置获取变换参照位置信息。 其中, 所述变 换参照位置信息包括变换参照位置的坐标信息, 该变换参照位置用于辅 助进行显示变换。 其中, 显示变换装置获取所述变换参照位置信息的方 式包括但不限于:
1 )显示变换装置才艮据用户行为确定变换参照位置信息;
例如, 显示变换装置将用户选择的点的位置信息作为变换参照位置 信息; 又例如, 显示变换装置获取用户选择的一个区域, 并将所获得的 区域的中心点坐标作为变换参照位置信息。
2 )获取预设的变换参照位置信息的坐标等。 例如, 预设变换参照位 置信息包括屏幕左上角顶点的坐标; 又例如, 预设变换参照位置包括屏 幕中心点的坐标。
需要说明的是, 上述举例仅为更好地说明本发明的技术方案, 而非 对本发明的限制, 本领域技术人员应该理解, 任何获取变换参照位置信 息的实现方式, 均应包含在本发明的范围内。
需要进一步说明的是, 本实施例中, 所述步骤 Sl、 步骤 S2及步 骤 S7并无先后顺序。
在步骤 S302中,显示变换装置才艮据所述变换参照位置信息以及所述 变换需求信息, 对所述各个待变换的显示对象的显示位置及显示内容进 行显示变换来获得变换后的显示位置及显示内容, 以获得变换后的显示 对象, 用以进行显示。
其中, 显示变换装置才艮据所述变换参照位置信息以及所述变换需求 信息, 对所述各个待变换的显示对象的显示位置及显示内容进行显示变 换来获得变换后的显示位置及显示内容, 以获得变换后的显示对象, 用 以进行显示的方式, 与前述步骤 S3 中才艮据所述变换需求信息对各个待 变换的显示对象的显示位置及显示内容进行显示变换来获得变换后 的显示位置及显示内容, 以获得变换后的显示对象的方式的区别仅在 于获取所述变换后的显示位置的方式不同, 在此仅对获取变换后的显 示位置的方式进行说明, 其余不再赘述。
具体地, 对于每个待变换的显示对象, 显示变换装置先确定所述 待变换的显示对象的显示位置相对于所述变换参照位置信息的相对 位置信息, 并根据所述变换需求信息来对所述相对位置信息进行显示 变换以获得相对位置信息的显示变换结果; 接着, 显示变换装置根据 所述变换参照位置信息获得所述显示变换结果的位置信息, 以获得所 述待变换的显示对象的变换后的显示位置。
例如, 显示变换装置获得待变换的显示对象的显示位置包括四个 顶点坐标信息 "(100,100), (200,100), (100,200), (200,200)" , 且获得 的变换比例为 2倍; 显示变换装置获得的用户选择的变换参照位置信 息包括坐标信息 ( 50,50 )。 则显示变换装置根据所述变换参照位置信 息确定所述待变换的显示对象的相对显示位置包括顶点坐标信息 "(50,50), (150,50), (50,150), (150,150)" , 并根据所述变换需求信息 确定相对位置信息的显示变换结果包括 "( 100, 100) , b(300, 100) , c(100,300), d(300,300)',; 接着, 显示变换装置根据所述变换参照位置 信息, 确定所述显示对象的变换后的显示位置包括顶点坐标信息 "(150,150), (350,150), (150,350), (350,350)"。 显示变换装置根据变 换后的显示位置及显示内容获得变换后的显示对象的方式不再赘述。
需要说明的是, 上述举例仅为更好地说明本发明的技术方案, 而非 对本发明的限制, 本领域技术人员应该理解, 任何根据所述变换参照位 置信息以及所述变换需求信息, 对所述各个待变换的显示对象的显示位 置及显示内容进行显示变换来获得变换后的显示位置及显示内容, 以获 得变换后的显示对象, 用以进行显示的实现方式, 均应包含在本发明的 范围内。
优选的, 所述步骤 S3还包括步骤 S304 (图未示) 。
在步骤 S304中,显示变换装置 4艮据所述变换需求信息,并结合基于 该变换需求信息来获得的预定类型的显示内容所对应的内容更改信息, 对所述各个显示对象的显示位置及显示内容进行显示变换, 来获得变换 后的显示位置及显示内容, 以获得变换后的显示对象, 用以进行显示。
其中, 所述内容更改信息包括根据变换需求信息来确定的所述预定 类型的显示内容的待变换信息。
其中, 显示变换装置 4艮据所述变换需求信息对显示位置进行显示变 换的方式及根据变换后的显示内容及显示位置来获得显示对象的方式 已经在前述步骤 S3中予以详述, 并以引用的方式包含于此, 不再赘述。
具体地, 显示变换装置判断所获得的显示内容是否为预定类型的显 示内容, 若为预定类型的显示内容, 则显示变换装置才艮据所述变换需求 信息及所述显示内容来获取相应的内容更改信息, 并根据所述内容更改 信息确定变换后的显示内容。
例如, 预定类别中包括文本类别, 显示变换装置获取的待变换的显 示对象的显示内容包括"字体为宋体, 字号为五号的文本'百度",; 变换 比例为 2倍。 则显示变换装置确定文本为预定类别的显示内容, 才艮据所 述变换需求信息确定内容更改信息包括"小二字号", 则显示变换装置确 定所述变换后的显示内容包括"字体为宋体, 字号为小二号的文本 '百 度,"。 显示变换装置根据变换后的显示位置及显示内容获得变换后的 显示对象的方式不再赘述。
需要说明的是, 上述举例仅为更好地说明本发明的技术方案, 而非 对本发明的限制, 本领域技术人员应该理解, 任何根据所述变换需求信 息, 并结合基于该变换需求信息来获得的预定类型的显示内容所对应的 内容更改信息, 对所述各个显示对象的显示位置及显示内容进行显示变 换, 来获得变换后的显示位置及显示内容, 以获得变换后的显示对象, 用以进行显示的实现方式, 均应包含在本发明的范围内。
根据本发明的方法, 通过直接根据变换需求信息及所读取的待变换 的显示对象来重新生成变换后的显示对象, 因此, 根据本发明的方法能 够对所有待变换对象进行统一变换, 避免了现有技术中通过修改显示内 容代码来在源代码基础上进行重构所产生的排版变形问题, 使用户有更 好的使用体验。
图 2为本发明一个优选实施例的用于对显示对象进行显示变换的 方法流程图。 才艮据本实施例的方法包括步骤 Sl、 步骤 S2和步骤 S3, 其 中, 所述步骤 S1进一步包括步骤 S101。
在步骤 S101 中, 显示变换装置根据所述显示实体中待变换区域 的位置信息及该显示实体中所有显示对象的原始位置标识信息, 确定 与所述待变换区域相关的所述各个待变换的显示对象, 并获得各个待 变换的显示对象的显示位置及显示内容。
其中, 确定所述待变换区域的位置信息的方式包括但不限于: 1 ) 显示变换装置直接获取预设的待变换区域的位置信息, 例如, 预设整 个屏幕的显示范围即为待变换区域, 则显示变换装置直接将该屏幕的 四个顶点的坐标信息作为所述待变换区域的位置信息; 2 ) 显示变换 装置根据用户对所述显示实体的选择操作, 获取所述显示实体中待变 换区域的位置信息, 例如, 显示变换装置以用户在触摸屏上划出的直 线确定所述待变换区域为以该直线为对角线的矩形区域, 并获取所述 直线的两个端点的坐标信息作为所述矩形区域的位置信息。
其中, 所述显示对象的原始位置标识信息包括直接根据与该显示 对象相关的源代码所得的原始大小的显示对象在显示屏上的位置坐 标信息, 例如, 未对显示对象进行显示变换处理时, 该显示对象在显 示屏上的位置坐标信息等。 其中, 该源代码包括任何能够用于生成或 构成显示对象的代码, 例如, html、 xml、 ASCII码以及采用二进制格 式的 BIN码等实现的自定义代码等。
具体地, 显示变换装置获取所述待变换区域的位置信息, 并将所 获得的待变换区域的位置信息与所述显示实体中所有显示对象的原 始位置标识信息进行比对, 并将全部或部分显示位置包含于所述待变 换区域的位置信息中的显示对象作为待变换的显示对象, 并根据各个 待变换的显示对象的原始位置标识信息来获得其显示位置及显示内 容。
例如, 显示变换装置根据用户选择操作确定所述待变换区域的位 置信息包括"对角线顶点坐标 (50,50), (100,100)的矩形区域", 且显示 变换装置获得显示实体包括显示对象 A、 显示对象 B及显示对象 C, 其中, 显示对象 A 的原始位置标识信息包括"顶点坐标为(110,40)、 (120, 60)的线段", 显示对象 B的原始位置标识信息包括"顶点坐标为 (60,55)、 (75,80)、 (90,90)的三角形", 显示对象 C 的原始位置标识信 息包括 "顶点坐标为(70,70)、(70,120)的线段"。显示变换装置将所述待 变换区域的位置信息与所述各个显示对象的原始位置标识信息进行 比较并确定顶点(60,55)、 (75,80), (90,90)和 ( 0,70)位于所述待变换区 域内, 则显示变换装置确定显示对象 B和 C为待变换的显示对象, 并将所述显示对象 B和 C的原始位置标识信息作为显示对象 B和 C 的显示位置, 并根据所述显示对象 B和 C的原始位置标识信息获取 显示对象 B和 C的显示内容。
需要说明的是, 上述举例仅为更好地说明本发明的技术方案, 而 非对本发明的限制, 本领域技术人员应该理解, 任何根据所述显示实 体中待变换区域的位置信息及该显示实体中所有显示对象的原始位 置标识信息, 确定与所述待变换区域相关的所述各个待变换的显示对 象, 并获得各个待变换的显示对象的显示位置及显示内容的实现方 式, 均应包含在本发明的范围内。 例如, 对于原始位置标识信息包括 "对角线顶点坐标 (50,50), (100,100)的矩形区域"的显示对象, 显示变 换装置先获得该显示对象的另两个顶点" (50,100), (50,100)", 再通过 判断上述四个顶点中的任意一个是否包含于待变换区域中来判断该 显示对象是否为待变换对象; 或者, 对于原始位置标识信息包括 "圆 心坐标 (50,50), 半径 50的圆形区域"的显示对象, 通过判断圆心坐标 至待变换区域的最近距离来判断该显示对象是否为待变换对象等。
接着, 步骤 S2与步骤 S3已在参照图 1所示是实例中予以详述, 并以引用的方式包含于此, 不再赘述。
需要进一步说明的是, 本实施例中, 所述步骤 S101与步骤 S2并 无先后顺序, 资源分配装置可以先执行步骤 S101再执行步骤 S2, 或者 先执行步骤 S2再执行步骤 S101 , 或者并行执行步骤 S101和步骤 S2。
作为本实施例的优选方案之一, 根据本实施例的方法还包括步骤 S4 (图未示) , 所述步骤 S101 还包括步骤 S101 1 (图未示) 和步骤 S1012 (图未示) , 所述步骤 S3还包括步骤 S301 (图未示) 。
在步骤 S4中, 显示变换装置获取与该显示实体相关的历史变换需 求信息。
其中, 所述历史变换需求信息包括以下至少一项: 1 )在历史显示变 换操作中所使用的所有变换需求信息, 例如, 若显示变换装置在前两次 显示变换操作中分别使用了变换需求信息 "变换比例为 2倍"及"变换比 例为 1.5倍", 则历史变换需求信息包括" '变换比例为 2倍'及'变换比例 为 1.5倍,"; 2 )根据前述在历史显示变换操作中所采用的所有变换需求 信息所获得的当前显示对象的显示位置相对于当前显示对象的原始位 置标识信息的显示变换信息, 例如, 若显示变换装置在前两次显示变换 操作中分别使用了变换需求信息"变换比例为 2倍"及"变换比例为 1.5 倍", 则显示变换装置确定历史变换需求信息包括"变换比例为 3倍"。
在步骤 S1011中,显示变换装置才艮据所述待变换区域的位置信息及 所述历史变换需求信息, 获得实际变换区域;
具体地,显示变换装置根据所述历史变换需求信息对所述待变换区 域的位置信息进行逆变换处理, 以获得所述待变换区域对应的实际变换 区域。
例如, 所述待变换区域的位置信息包括三个顶点坐标位置 "(20,20), (20,80), (80,20)", 所述历史变换需求信息包括 "变换比例为 2倍",则显示变换装置根据所述历史变换需求信息将所述位置信息进 行逆变换以获得所述位置信息所对应的实际变换区域包括以" (10,10), (10,40), (40,10)"为顶点的区域。
需要说明的是, 上述举例仅为更好地说明本发明的技术方案, 而 非对本发明的限制, 本领域技术人员应该理解, 任何根据所述待变换 区域的位置信息及所述历史变换需求信息, 获得实际变换区域的实现方 式, 例如, 当历史变换需求信息包括多个变换比例时, 根据该多个变 换比例来进行多次逆变换处理, 以获得实际变换区域等, 均应包含在 本发明的范围内。
在步骤 S1012中,显示变换装置才艮据所述实际变换区域及所述所有 显示对象的原始位置标识信息, 确定所述各个待变换的显示对象, 并获 得各个待变换的显示对象的显示位置及显示内容。
具体地, 显示变换装置获取所述实际变换区域的位置信息, 并将 所获得的实际变换区域的位置信息与所述显示实体中所有显示对象的 原始位置标识信息进行比对, 并将全部或部分显示位置包含于所述实 际变换区域的位置信息中的显示对象作为待变换的显示对象, 并根据 各个待变换的显示对象的原始位置标识信息来获得其显示位置及显 示内容。
步骤 S2已在图 1所示实施例中予以详述,并以引用的方式包含于此, 不再赘述。
需要说明的是, 本实施例中, 步骤 S4、 步骤 S1011和步骤 S1012 以及步骤 S2间并无先后顺序。
在步骤 S301 中, 显示变换装置才艮据各个待变换的显示对象的显示 位置及显示内容、 所述变换需求信息及所述历史变换需求信息, 对所述 各个待变换的显示对象的显示位置及显示内容进行显示变换来获得变 换后的显示位置及显示内容, 以获得变换后的显示对象,用以进行显示。
具体的, 显示变换装置根据所述变换需求信息及所述历史变换需 求信息, 确定实际变换需求信息, 并根据所述实际变换需求信息, 对 所述各个待变换的显示对象的显示位置及显示内容进行显示变换来获 得变换后的显示位置及显示内容, 以获得变换后的显示对象, 用以进行 显示。
例如,显示变换装置获得变换需求信息包括"长度方向的变换比例为 2/3倍, 宽度方向的变换比例为 1/2倍", 并且历史变换需求信息包括 "长 度方向的变换比例为 3倍, 宽度方向的变换比例为 2倍", 则显示变换装 置获得实际变换需求信息中包含的长度方向的变换比例 =变换需求信息 中的长度方向的变换信息 *历史变换需求信息中的长度方向的变换比例 =(2/3)*3=2, 实际变换需求信息中包含的宽度方向的变换比例 =变换需求 信息中的宽度方向的变换比例 *历史变换需求信息中的宽度方向的变换 比例 =(1/2)*2=1倍,则显示变换装置根据所获得的实际变换需求信息 "长 度方向的变换比例为 2倍, 宽度方向的变换比例为 1倍",对所述各个待 变换的显示对象的显示位置及显示内容进行显示变换来获得变换后的 显示位置及显示内容, 以获得变换后的显示对象, 用以进行显示。
其中, 才艮据所述实际变换需求信息对各个待变换的显示对象的显示 位置及显示内容进行显示变换来获得变换后的显示位置及显示内容, 以 获得变换后的显示对象, 用以进行显示的方式与前述步骤 S3 中根据变 换需求信息对各个待变换的显示对象的显示位置及显示内容进行显示 变换来获得变换后的显示位置及显示内容, 以获得变换后的显示对象, 用以进行显示的方式相同或相似, 在此不再赞述。
需要说明的是, 上述举例仅为更好地说明本发明的技术方案, 而 非对本发明的限制, 本领域技术人员应该理解, 任何根据所述变换需 求信息及所述历史变换需求信息, 确定所述实际变换需求信息, 并根 据所述实际变换需求信息,对所述各个待变换的显示对象的显示位置及 显示内容进行显示变换来获得变换后的显示位置及显示内容, 以获得变 换后的显示对象, 用以进行显示的实现方式, 例如, 根据历史需求信 息中所包含的变换类型、各变换类型的数量及变换类型所对应的预定 变换比例,来获得实际变换需求信息等,均应包含在本发明的范围内。
作为本实施例的优选方案之一, 根据本实施例的方法还包括步骤
S8 (图未示) 和步骤 S9 (图未示) , 其中, 前述步骤 S101还包括步 骤 S 1013 (图未示)和步骤 S 1014 (图未示) , 前述步骤 S3还包括步 骤 S303 (图未示) 。
在步骤 S8中,显示变换装置获取与该显示实体相关的历史变换需 求信息及历史变换参照位置信息。
在步骤 S1013中, 显示变换装置根据待变换区域的位置信息、 所 述历史变换需求信息以及所述历史变换参照位置信息, 获得实际变换 区域。
具体地, 显示变换装置先根据所述待变换区域的位置信息及所述 历史变换参照位置信息来确定所述待变换区域的相对位置信息; 接 着, 显示变换装置根据所述待变换区域的相对位置信息进行逆变换处 理以获得逆变换后的相对位置信息; 接着, 显示变换装置根据所述历 史变换参照位置信息及逆变换后的相对位置信息来确定实际待变换 区域。
例如, 显示变换装置获得的待变换区域的位置信息包括三个顶点 坐标" (20,10), b(25,20), c(30,10)", 获得历史变换需求信息包括 "变换 比例为 1/2倍", 且历史变换参照位置信息包括坐标 "(10,10)"; 则显示 变换装置先确定所述待变换区域相对于历史变换参照位置信息的相 对位置信息包括坐标 "(10,0), (15,10), (20,0)"; 接着, 显示变换装置 根据所述历史变换需求信息对所获得的位置信息进行放大 2倍的逆变 换, 获得变换后的相对位置信息包括" (20,0), b(30,20), c(40,0)"; 接 着, 显示变换装置结合历史参照位置信息" (10,10)"及变换后的相对位 置信息, 确定实际待变换区域的位置信息包括" (30,10) , b(40,30) , c(50,10)"。
需要说明的是, 上述举例仅为更好地说明本发明的技术方案, 而 非对本发明的限制, 本领域技术人员应该理解, 任何根据待变换区域 的位置信息、 所述历史变换需求信息以及所述历史变换参照位置信 息, 获得实际变换区域的实现方式, 均应包含在本发明的范围内。
接着, 在步骤 S1014中, 显示变换装置根据所述实际变换区域及所 述所有显示对象的原始位置标识信息, 确定各个待变换的显示对象, 并 获得各个待变换的显示对象的显示位置及显示内容。 其中, 显示变换装 置才艮据实际变换区域及所述所有显示对象的原始位置标识信息, 确定各 个待变换的显示对象, 并获得各个待变换的显示对象的显示位置及显示 内容的方式已在前述步骤 S1012中予以详述,并以引用的方式包含于此, 不再赘述。
步骤 S2已在图 1所示实施例中予以详述,并以引用的方式包含于此, 不再赘述。
在步骤 S9中, 显示变换装置获取变换参照位置信息。
需要说明的是, 本实施例中, 所述步骤 S8以及步骤 S1013至步 骤 S1014与步骤 S2之间并无先后顺序; 显示变换装置可以先执行步 骤 S8以及步骤 S1013至步骤 S1014后, 再执行步骤 S2, 或者先执行 步骤 S2后, 再执行步骤 S8以及步骤 S1013至步骤 S1014, 或者并行 执行步骤 S2与步骤 S8以及步骤 S1013至步骤 S1014; 并且, 步骤 S8 以及步骤 S1013至步骤 S1014与步骤 S9也无先后顺序, 显示变换装 置可以先执行步骤 S8以及步骤 S1013至步骤 S1014后, 再执行步骤 S9, 或者先执行步骤 S9后, 再执行步骤 S8以及步骤 S1013至步骤 S1014, 或者并行执行步骤 S9与步骤 S8、 步骤 S1013至步骤 S1014; 并且, 步骤 S2与步骤 S9也无先后顺序, 显示变换装置可以先执行步 骤 S2再执行步骤 S9, 或者先执行步骤 S9后再执行步骤 S2, 或者并 行执行步骤 S9与步骤 S2。
接着, 在步骤 S303中, 显示变换装置根据所述变换需求信息及所述 变换参照位置信息, 对所述各个待变换的显示对象的显示位置及显示内 容进行显示变换来获得变换后的显示位置及显示内容, 以获得变换后的 显示对象, 用以进行显示。 其中, 显示变换装置才艮据所述变换需求信息 及所述变换参照位置信息, 对所述各个待变换的显示对象的显示位置及 显示内容进行显示变换来获得变换后的显示位置及显示内容, 以获得变 换后的显示对象, 用以进行显示的方式已在前述步骤 S302中予以详述, 并以引用的方式包含于此, 不再赘述。
根据本实施例的方法, 可根据用户选择的参照点对待变换区域进 行显示变换, 使得显示变换更加灵活, 更符合用户的使用需求。
图 3为本发明另一个优选实施例的用于对显示对象进行显示变换 的方法流程图。 根据本实施例的方法包括步骤 Sl、 步骤 S2、 步骤 S5 和步骤 S3 , 其中, 所述步骤 S1还包括步骤 S102。
在步骤 S5中,显示变换装置获取所述显示实体的显示历史记录, 其中, 所述显示历史记录包括该显示实体中各个显示对象的位置信息 及显示内容。
在步骤 S102中,显示变换装置才艮据所述显示实体中待变换区域的位 置信息及所述显示历史记录中各个显示对象的显示位置, 确定与所述待 变换区域相关的所述各个待变换的显示对象, 并获得所述各个待变换的 显示对象的显示位置及显示内容。
其中, 所述显示变换装置才艮据所述显示实体中待变换区域的位置信 息及所述显示历史记录中各个显示对象的显示位置, 确定与所述待变换 区域相关的所述各个待变换的显示对象, 并获得所述各个待变换的显示 对象的显示位置及显示内容的方式, 与前述步骤 S101 中, 显示变换装 置根据所述显示实体中待变换区域的位置信息及该显示实体中所有 显示对象的原始位置标识信息, 确定与所述待变换区域相关的所述各 个待变换的显示对象, 并获得各个待变换的显示对象的显示位置及显 示内容的方式相同或相似, 并以引用的方式包含于此, 不再赘述。
步骤 S2及步骤 S3已在图 1所示实施例中予以详述, 并以引用的方 式包含于此, 不再赘述。
需要说明的是, 本实施例中, 所述步骤 S5 至步骤 S102 与步骤 S2并无先后顺序, 显示变换装置可以先执行步骤 S5至步骤 S102后 再执行步骤 S2, 或者, 显示变换装置可以先执行步骤 S2后再执行步 骤 S5至步骤 S102, 或者, 显示变换装置可以并行执行步骤 S2和步 骤 S5至步骤 S102.
优选的, 才艮据本实施例的方法还包括步骤 S6 (图未示) 。
在步骤 S6中,显示变换装置才艮据所述变换后的显示对象的显示位置 及显示内容, 更新所述显示历史记录。
具体的, 显示变换装置才艮据所述变换后的显示对象的显示信息及显 示内容, 建立或更新显示历史记录中所记录的显示对象的显示信息及显 示内容。
根据本实施例的方法, 显示变换装置可以直接根据待变换对象的 当前的显示位置直接进行显示变换, 提高了显示变换的效率。
图 4为本发明再一个优选实施例的用于对显示对象进行显示变换 的方法流程图。根据本实施例的方法包括步骤 Sl、 步骤 S2、 步骤 S3、 步骤 S10、 步骤 S11及步骤 S12。
步骤 Sl、 步骤 S2及 S3已在图 1、 图 2或图 3所示实施例中予以详 述, 并以引用的方式包含于此, 不再赘述。
接着, 在步骤 S10中, 显示变换装置获取用户对显示实体的触发 动作信息。
其中, 所述触发动作信息至少包括所述触发动作的位置信息, 并 且, 根据用户的触发动作, 该触发动作的位置信息包括以下任一项: 1 ) 一个坐标点的位置信息, 例如, 当用户在触摸屏上进行点击时, 触发动作的位置信息包括该点击动作的点击位置信息; 2 ) —组用于 确定触发动作的操作范围的位置信息, 例如, 当用户在触摸屏上进行 划线操作时, 触发动作的位置信息包括该划线动作的起点和终点的坐 标等。
接着, 在步骤 S11中, 显示变换装置根据所述触发动作信息及与 所述显示实体相关的历史变换需求信息, 确定实际触发位置信息。
其中, 显示变换装置根据所述触发动作信息及与所述显示实体相 关的历史变换需求信息,确定实际触发位置信息的方式,与步骤 S 1011 中显示变换装置根据所述待变换区域的位置信息及所述历史变换需 求信息, 获得实际变换区域的方式相同或相似, 并以引用的方式包含 于此, 不再赘述。
接着, 在步骤 S12中, 显示变换装置根据所述实际触发位置信息 来确定作为实际触发对象的显示对象, 以执行与所述作为实际触发对 象的显示对象相对应的操作。
具体地, 显示变换装置通过在显示实体对应的所有显示对象的原 始位置标识信息中进行查询及比对, 来将原始位置标识信息包含全部 或部分所述实际触发位置信息的显示对象作为实际触发对象, 以执行 与所述作为实际触发对象的显示对象相对应的操作。
作为本实施例的优选方案之一,根据本实施例的方法还包括步骤 S 13 (图未示) , 前述步骤 S11进一步包括步骤 S1101 (图未示) 。
在步骤 S13中, 显示变换装置获取历史变换参照位置信息。
步骤 S10已在前述实施例中予以详述, 并以引用的方式包含于此, 不再赘述。
在步骤 S1101 中, 显示变换装置艮据所述触发动作信息、 所述历史 变换需求信息及所述历史变换参照位置信息, 获得所述实际触发动作信 息。
具体地, 显示变换装置先根据所述触发动作信息中包含的所述触 发动作的位置信息及所述历史变换参照位置信息来确定所述触发动 作的相对位置信息; 接着, 显示变换装置根据历史变换需求信息对所 述触发动作的相对位置信息进行逆变换处理以获得逆变换后的相对 位置信息; 接着, 显示变换装置根据所述历史变换参照位置信息及逆 变换后的相对位置信息来获得所述实际触发动作信息。
例如, 显示变换装置获得的该触发动作信息的位置信息包括坐标
"(30,10)" , 获得历史变换需求信息包括"缩小为原始位置标识信息的 1/3", 且历史变换参照位置信息包括坐标 "(10,0)" , 则显示变换装置先 确定所述触发动作相对于历史变换参照位置信息的相对位置信息为 (20,10); 接着, 显示变换装置根据所述历史变换需求信息对所获得的 触发动作的相对位置信息进行放大 3倍的逆变换以获得逆变换后的相 对位置信息包括坐标 "(60,30)"; 接着, 显示变换装置结合历史参照位 置信息(10,0)确定实际触发动作信息包括位置信息" (70,40)"。
需要说明的是, 上述举例仅为更好地说明本发明的技术方案, 而 非对本发明的限制, 本领域技术人员应该理解, 任何根据所述触发动 作信息、 所述历史变换需求信息及所述历史变换参照位置信息, 获得所 述实际触发动作信息的实现方式, 均应包含在本发明的范围内。
需要进一步说明的是, 在本实施例中, 步骤 S10与步骤 S13并无先 后顺序, 显示变换装置可以先执行步骤 S10再执行步骤 S13 , 或者, 显 示变换装置可以先执行步骤 S13后再执行步骤 S10, 或者, 显示变换装 置可以并行执行步骤 S10与步骤 S13。
接着, 步骤 S12已在前述步骤中予以详述, 并以引用的方式包含于 匕, ϋ。
根据本实施例的方法, 对显示内容进行显示变换后仍然可以顺利的 响应用户对于显示内容的各类操作, 进一步提高用户体验。
图 5示意出了本发明另一个方面的用于对显示对象进行显示变换 的显示变换装置的结构示意图。根据本实施例的显示变换装置包括第 一获取装置 1、 第二获取装置 2和变换装置 3。
第一获取装置 1获取显示实体中一个或多个待变换的显示对象的 显示位置及显示内容。 具体地, 第一获取装置 1将显示实体中预定范围内的所有对象作 为待变换对象, 或者, 根据用户的选择行为来确定待变换对象, 以获 得待变换对象的显示位置及显示内容。
其中, 所述显示实体包括当前可供用户进行操作的对象; 例如, 与当前活动窗口相关的对象,如当前活动窗口所展现的网页、图片等。 所述预定范围内的所有对象包括但不限于: 1 ) 显示实体中的所有显 示对象, 例如, 当显示实体包括网页时, 预定范围内的所有对象包括 该网页中的所有显示对象; 2 ) 包含于显示实体中且当前展现在显示 屏上的显示对象,例如,网页中当前被展现在显示屏上的显示对象等。
其中, 所述显示位置包括一组用于确定显示对象位置范围的位 置信息; 例如, 当显示对象的形状为长方形, 其显示位置包括该长方 形的对角顶点坐标, 或者, 其显示位置包括长方形的左上角顶点坐标 以及该长方形的长度和宽度; 又例如, 当显示对象的形状为圆形, 其 显示位置包括圆形的圆心坐标和圆形的半径; 又例如, 当显示对象的 形状为多边形, 其显示位置包括每个边缘顶点的位置坐标等。
其中, 所述显示内容包括显示对象所需展现的内容, 优选地, 显示内容还包括显示对象所需展现的内容的展现形式。 例如, 当显示 对象为文本时, 其显示内容包括该文本的字符串信息, 优选地, 还包 括该字符串信息的颜色、 字号、 字体等; 又例如, 当显示对象为边框 时, 其显示内容包括边框线条的长度, 优选地, 还包括边框线条的粗 细、 颜色、 式样等; 又例如, 当显示对象为图片时, 其显示内容包括 图片, 优选地, 还包括图片的填充方式等。
第二获取装置 2获取所述一个或多个待变换的显示对象的变换需 求信息。
其中, 所述变换需求信息包括以下至少一种信息: 1 ) 变换类型, 例如, 放大变换、 缩小变换等; 2 )变换比例, 例如, 1.5倍变换、 0.5 倍变换等;其中,变换比例可进一步包括各个变换方向上的变换比例, 例如, 长度变换比例、 宽度变换比例等。
其中, 第二获取装置 2获取所述变换需求信息的方式包括但不限 于: 1 ) 第二获取装置 2获取用户直接选择或输入的变换需求信息, 例如, 用户在触摸屏上点击 "χ2"的按键, 则第二获取装置 2确定用户 输入的变换比例为 2倍; 2 ) 第二获取装置 2根据用户操作行为来确 定变换需求信息; 例如, 第二获取装置 2根据用户在触摸屏上划动的 距离的长短来确定变换比例等; 3 ) 第二获取装置 2直接获取预设的 变换需求信息; 例如, 第二获取装置 2预设在显示变换模式下每次用 户双击触摸屏时, 将所有的待变换的显示对象放大两倍。
变换装置 3根据所述变换需求信息对各个待变换的显示对象的显 示位置及显示内容进行显示变换来获得变换后的显示位置及显示内 容, 以获得变换后的显示对象, 用以进行显示。
具体地, 变换装置 3获得一个变换后的显示对象的方式包括但不 限于:
1 )对于一个待变换的显示对象, 变换装置 3先根据所述变换需 求信息来对该待变换的显示对象的显示位置进行显示变换, 以确定变 换后的显示位置; 接着, 变换装置 3根据变换后的显示位置对该显示 内容进行相应的显示变换以将变换后的显示内容写入变换后的显示 位置, 来获得变换后的显示对象。
例如,变换装置 3获得一个待变换的显示对象的显示位置包括"左 上角顶点坐标(10, 10), 长度 100, 宽度 150", 且该显示对象的显示 内容包括"填充该显示对象所在区域且填充色为红色"; 并且获得用户 输入的变换比例为 2倍。 则变换装置 3对该显示对象的显示位置进行 放大 2倍的显示变换, 获得变换后的显示位置包括 "左上角顶点坐标 (20, 20), 长度 200, 宽度 300"; 接着, 变换装置 3根据所述变换后 的显示位置, 来确定填充范围, 以将红色写入所确定的填充范围中, 来获得变换后的显示对象。
2 )对于一个待变换的显示对象, 变换装置 3根据所述变换需求 信息来对该待变换的显示对象的显示位置进行显示变换, 以获得变换 后的显示位置, 并且, 变换装置 3根据所述变换需求信息来对该待变 换的显示对象的显示内容进行显示变换, 以获得变换后的显示内容; 接着, 变换装置 3结合变换后的显示位置及显示内容, 来获得变换后 的显示对象。
例如, 变换装置 3获得待变换的显示对象的显示位置包括四个顶 点坐标信息" (100, 100) , (300, 100) , (100,200) , (300,200)" , 该待变换 的显示对象的显示内容包括 "长度 X宽度 =200x 100的图像", 且获得的 变换需求信息包括"长度方向的变换比例为 1 .5倍,宽度方向的变换比 例为 3倍"。
则变换装置 3根据所述变换需求信息分别将显示位置中的长度坐 标放大 1 .5倍, 将宽度坐标放大 3倍, 获得变换后的显示位置中四个 顶点坐标信息 "(150,300) , (450,300) , (150,600) , (450,600)" , 并且, 变换装置 3对显示内容进行相应的显示变换处理并获得变换后的显示 内容包括"长 X宽 =300x300的图像"; 接着, 变换装置 3将变换后的图 像写入变换后的显示位置中, 以获得变换后以" (150,300) , (450,300) , (150,600) , (450,600)"四个点为顶点, 并且长 χ宽 =300x300的图像。
变换装置 3对每个待变换的显示对象执行上述任一操作, 以获得 所有变换后的显示对象, 用以进行显示。
需要说明的是, 上述举例仅为更好地说明本发明的技术方案, 而非 对本发明的限制, 本领域技术人员应该理解,任何根据所述变换需求信 息对各个待变换的显示对象的显示位置及显示内容进行显示变换来 获得变换后的显示位置及显示内容, 以获得变换后的显示对象, 用以 进行显示的实现方式, 例如, 才艮据变换类型, 来获取与变换类型对应的 预定变换比例, 以才艮据预定变换比例来获得变换后的显示对象等, 均应 包含在本发明的范围内。
作为本发明的一个优选实施例, 才艮据本实施例的显示变换装置包括 第一获取装置 1、 第二获取装置 2、 第五获取装置 (图未示)及变换装 置 3。 其中, 变换装置 3还包括第二子变换装置 (图未示) 。
第一获取装置 1与第二获取装置 2已在前述实施例中予以详述, 并 以引用的方式包含于此, 不再赘述。
第五获取装置获取变换参照位置信息。 其中, 所述变换参照位置信 息包括变换参照位置的坐标信息, 该变换参照位置用于辅助进行显示变 换。 其中, 第五获取装置获取所述变换参照位置信息的方式包括但不限 于:
1 ) 第五获取装置才艮据用户行为确定变换参照位置信息;
例如, 第五获取装置将用户选择的点的位置信息作为变换参照位置 信息; 又例如, 第五获取装置获取用户选择的一个区域, 并将所获得的 区域的中心点坐标作为变换参照位置信息。
2 )获取预设的变换参照位置信息的坐标等。 例如, 预设变换参照位 置信息包括屏幕左上角顶点的坐标; 又例如, 预设变换参照位置包括屏 幕中心点的坐标。
需要说明的是, 上述举例仅为更好地说明本发明的技术方案, 而非 对本发明的限制, 本领域技术人员应该理解, 任何获取变换参照位置信 息的实现方式, 均应包含在本发明的范围内。
第二子变换装置根据所述变换参照位置信息以及所述变换需求信 息, 对所述各个待变换的显示对象的显示位置及显示内容进行显示变换 来获得变换后的显示位置及显示内容, 以获得变换后的显示对象, 用以 进行显示。
其中, 第二子变换装置才艮据所述变换参照位置信息以及所述变换需 求信息, 对所述各个待变换的显示对象的显示位置及显示内容进行显示 变换来获得变换后的显示位置及显示内容, 以获得变换后的显示对象, 用以进行显示的方式, 与变换装置 3才艮据所述变换需求信息对各个待变 换的显示对象的显示位置及显示内容进行显示变换来获得变换后的 显示位置及显示内容, 以获得变换后的显示对象的方式的区别仅在于 获取所述变换后的显示位置的方式不同, 在此仅对获取变换后的显示 位置的方式进行说明, 其余不再赘述。
具体地, 对于每个待变换的显示对象, 第二子变换装置先确定所 述待变换的显示对象的显示位置相对于所述变换参照位置信息的相 对位置信息, 并根据所述变换需求信息来对所述相对位置信息进行显 示变换以获得相对位置信息的显示变换结果, 接着, 第二子变换装置 根据所述变换参照位置信息获得所述显示变换结果的位置信息, 以获 得所述待变换的显示对象的变换后的显示位置。
例如, 第一获取装置 1获得待变换的显示对象的显示位置包括四 个顶点坐标信息" (100,100), (200,100), (100,200), (200,200)" , 第二 获取装置 2获得的变换比例为 2倍; 第五获取装置获得的用户选择的 变换参照位置信息包括坐标信息 ( 50,50 )。 则第二子变换装置根据所 述变换参照位置信息确定所述待变换的显示对象的相对显示位置包 括顶点坐标信息" (50,50), (150,50), (50,150), (150,150)" , 并根据所 述变换需求信息确定相对位置信息的显示变换结果包括 "(100,100), b(300,100) , c(100,300) , d(300,300)"; 接着, 第二子变换装置根据所 述变换参照位置信息, 确定所述显示对象的变换后的显示位置包括顶 点坐标信息" (150,150) , (350,150), (150,350), (350,350)"。 第二子变 换装置根据变换后的显示位置及显示内容获得变换后的显示对象的 方式不再赘述。
需要说明的是, 上述举例仅为更好地说明本发明的技术方案, 而非 对本发明的限制, 本领域技术人员应该理解, 任何根据所述变换参照位 置信息以及所述变换需求信息, 对所述各个待变换的显示对象的显示位 置及显示内容进行显示变换来获得变换后的显示位置及显示内容, 以获 得变换后的显示对象, 用以进行显示的实现方式, 均应包含在本发明的 范围内。
优选的, 所述变换装置 3还包括第四子变换装置 (图未示) 。
第四子变换装置 4艮据所述变换需求信息, 并结合基于该变换需求信 息来获得的预定类型的显示内容所对应的内容更改信息, 对所述各个显 示对象的显示位置及显示内容进行显示变换, 来获得变换后的显示位置 及显示内容, 以获得变换后的显示对象, 用以进行显示。
其中, 所述内容更改信息包括根据变换需求信息来确定的所述预定 类型的显示内容的待变换信息。
其中, 第四子变换装置才艮据所述变换需求信息对显示位置进行显示 变换的方式及艮据变换后的显示内容及显示位置来获得显示对象的方 式已经在前述变换装置 3中予以详述, 并以引用的方式包含于此, 不再 具体地, 第四子变换装置判断所获得的显示内容是否为预定类型的 显示内容, 若为预定类型的显示内容, 则第四子变换装置才艮据所述变换 需求信息及所述显示内容来获取相应的内容更改信息, 并根据所述内容 更改信息确定变换后的显示内容。
例如, 预定类别中包括文本类别, 第一获取装置 1获取的待变换的 显示对象的显示内容包括"字体为宋体, 字号为五号的文本'百度, "; 第 二获取装置 2获取的变换比例为 2倍。则第四子变换装置确定文本为预 定类别的显示内容,才艮据所述变换需求信息确定内容更改信息包括"小二 字号",则第四子变换装置确定所述变换后的显示内容包括"字体为宋体, 字号为小二号的文本 '百度,"。 第四子变换装置根据变换后的显示位置 及显示内容获得变换后的显示对象的方式不再赘述。
需要说明的是, 上述举例仅为更好地说明本发明的技术方案, 而非 对本发明的限制, 本领域技术人员应该理解, 任何根据所述变换需求信 息, 并结合基于该变换需求信息来获得的预定类型的显示内容所对应的 内容更改信息, 对所述各个显示对象的显示位置及显示内容进行显示变 换, 来获得变换后的显示位置及显示内容, 以获得变换后的显示对象, 用以进行显示的实现方式, 均应包含在本发明的范围内。
根据本发明的方法, 通过直接根据变换需求信息及所读取的待变换 的显示对象来重新生成变换后的显示对象, 因此, 根据本发明的方法能 够对所有待变换对象进行统一变换, 避免了现有技术中通过修改显示内 容代码来在源代码基础上进行重构所产生的排版变形问题, 使用户有更 好的使用体验。
图 6为本发明一个优选实施例的用于对显示对象进行显示变换的 显示变换装置的结构示意图。 才艮据本实施例的显示变换装置包括第一 获取装置 1、 第二获取装置 2和变换装置 3, 其中, 所述第一获取装置 1 进一步包括第一确定装置 101。
第一确定装置 101根据所述显示实体中待变换区域的位置信息及 该显示实体中所有显示对象的原始位置标识信息, 确定与所述待变换 区域相关的所述各个待变换的显示对象, 并获得各个待变换的显示对 象的显示位置及显示内容。
其中, 第一确定装置 101获取所述待变换区域的位置信息的方式包 括但不限于: 1 )第一确定装置 101 直接获取预设的待变换区域的位置 信息, 例如, 预设整个屏幕的显示范围即为待变换区域, 则第一确定装 置 101直接获取该屏幕的四个顶点的坐标信息作为所述待变换区域的位 置信息; 2 )第一确定装置 101 进一步包括第三子获取装置, 第三子获 取装置根据用户对所述显示实体的选择操作, 获取所述显示实体中待变 换区域的位置信息, 例如, 第三子获取装置以用户在触摸屏上划出的直 线确定所述待变换区域为以该直线为对角线的矩形区域, 并获取所述直 线的两个端点的坐标信息作为所述矩形区域的位置信息。
其中, 所述显示对象的原始位置标识信息包括直接根据与该显示 对象相关的源代码所得的原始大小的显示对象在显示屏上的位置坐 标信息, 例如, 未对显示对象进行显示变换处理时, 该显示对象在显 示屏上的位置坐标信息等。 其中, 该源代码包括任何能够用于生成或 构成显示对象的代码, 例如, html、 xml、 ASCII码以及采用二进制格 式的 BIN码等实现的自定义代码等。
具体地, 第一确定装置 101 获取所述待变换区域的位置信息, 并 将所获得的待变换区域的位置信息与所述显示实体中所有显示对象 的原始位置标识信息进行比对, 并将全部或部分显示位置包含于所述 待变换区域的位置信息中的显示对象作为待变换的显示对象, 并根据 各个待变换的显示对象的原始位置标识信息来获得其显示位置及显 示内容。
例如, 第一确定装置 101根据用户选择操作确定所述待变换区域 的位置信息包括"对角线顶点坐标 (50,50) , (100,100)的矩形区域", 且 第一确定装置 101获得显示实体包括显示对象 A、 显示对象 B及显示 对象 C , 其中, 显示对象 A 的原始位置标识信息包括"顶点坐标为 (1 10,40)、 (120 , 60)的线段 ",显示对象 B的原始位置标识信息包括"顶 点坐标为(60,55)、 (75,80)、 (90,90)的三角形", 显示对象 C 的原始位 置标识信息包括"顶点坐标为(70,70)、 (70,120)的线段"。 第一确定装置 101将所述待变换区域的位置信息与所述各个显示对象的原始位置标 识信息进行比较并确定顶点(60,55)、 (75,80)、 (90,90)和 (70,70)位于所 述待变换区域内, 则第一确定装置 101确定显示对象 B和 C为待变换 的显示对象, 并将所述显示对象 B和 C的原始位置标识信息作为显 示对象 B和 C的显示位置, 并根据所述显示对象 B和 C的原始位置 标识信息获取显示对象 B和 C的显示内容。
需要说明的是, 上述举例仅为更好地说明本发明的技术方案, 而 非对本发明的限制, 本领域技术人员应该理解, 任何根据所述显示实 体中待变换区域的位置信息及该显示实体中所有显示对象的原始位 置标识信息, 确定与所述待变换区域相关的所述各个待变换的显示对 象, 并获得各个待变换的显示对象的显示位置及显示内容的实现方 式, 均应包含在本发明的范围内。 例如, 对于原始位置标识信息包括 "对角线顶点坐标 (50,50), (100,100)的矩形区域"的显示对象, 第一确 定装置 101先获得该显示对象的另两个顶点" (50,100), (50,100)", 再 通过判断上述四个顶点中的任意一个是否包含于待变换区域中来判 断该显示对象是否为待变换对象; 或者, 对于原始位置标识信息包括 "圆心坐标 (50,50), 半径 50 的圆形区域"的显示对象, 通过判断圆心 坐标至待变换区域的最近距离来判断该显示对象是否为待变换对象 等。
接着, 第二获取装置 2与变换装置 3已在参照图 5所示实施例中 予以详述, 并以引用的方式包含于此, 不再赘述。
作为本实施例的优选方案之一, 根据本实施例的显示变换装置还 包括第三获取装置(图未示) , 所述第一确定装置 101还包括第一子 获取装置 (图未示) 和第一子确定装置 (图未示) , 所述变换装置 3 还包括第一子变换装置 (图未示) 。
第三获取装置获取与该显示实体相关的历史变换需求信息。
其中, 所述历史变换需求信息包括以下至少一项: 1 )在历史显示变 换操作中所使用的所有变换需求信息, 例如, 若显示变换装置在前两次 显示变换操作中分别使用了变换需求信息 "变换比例为 2倍"及"变换比 例为 1.5倍", 则历史变换需求信息包括" '变换比例为 2倍'及'变换比例 为 1.5倍,"; 2 )根据前述在历史显示变换操作中所采用的所有变换需求 信息所获得的当前显示对象的显示位置相对于当前显示对象的原始位 置标识信息的显示变换信息, 例如, 若显示变换装置在前两次显示变换 操作中分别使用了变换需求信息"变换比例为 2倍"及"变换比例为 1.5 倍", 则显示变换装置确定历史变换需求信息包括"变换比例为 3倍"。
第一子获取装置根据所述待变换区域的位置信息及所述历史变换 需求信息, 获得实际变换区域;
具体地,第一子获取装置根据所述历史变换需求信息对所述待变换 区域的位置信息进行逆变换处理, 以获得所述待变换区域对应的实际变 换区域。
例如, 所述待变换区域的位置信息包括三个顶点坐标位置 "(20,20), (20,80), (80,20)", 所述历史变换需求信息包括 "变换比例为 2倍",则第一子获取装置根据所述历史变换需求信息将所述位置信息 进行逆变换以获得所述位置信, 所对应的实际变换区域包括以 "(10,10), (10,40), (40,10)"为顶点的区域。
需要说明的是, 上述举例仅为更好地说明本发明的技术方案, 而 非对本发明的限制, 本领域技术人员应该理解, 任何根据所述待变换 区域的位置信息及所述历史变换需求信息, 获得实际变换区域的实现方 式, 例如, 当历史变换需求信息包括多个变换比例时, 根据该多个变 换比例来进行多次逆变换处理, 以获得实际变换区域等, 均应包含在 本发明的范围内。
第一子确定装置根据所述实际变换区域及所述所有显示对象的原 始位置标识信息, 确定所述各个待变换的显示对象, 并获得各个待变换 的显示对象的显示位置及显示内容。
具体地, 第一子确定装置获取所述实际变换区域的位置信息, 并 将所获得的实际变换区域的位置信息与所述显示实体中所有显示对象 的原始位置标识信息进行比对, 并将全部或部分显示位置包含于所述 实际变换区域的位置信息中的显示对象作为待变换的显示对象, 并根 据各个待变换的显示对象的原始位置标识信息来获得其显示位置及 显示内容。
第二获取装置 2已在图 5所示实施例中予以详述, 并以引用的方式 包含于此, 不再赘述。
第一子变换装置根据各个待变换的显示对象的显示位置及显示内 容、 所述变换需求信息及所述历史变换需求信息, 对所述各个待变换的 显示对象的显示位置及显示内容进行显示变换来获得变换后的显示位 置及显示内容, 以获得变换后的显示对象, 用以进行显示。
具体的, 第一子变换装置根据所述变换需求信息及所述历史变换 需求信息, 确定实际变换需求信息, 并根据所述实际变换需求信息, 对所述各个待变换的显示对象的显示位置及显示内容进行显示变换来 获得变换后的显示位置及显示内容, 以获得变换后的显示对象, 用以进 行显示。
例如,第二获取装置 2获得变换需求信息包括"长度方向的变换比例 为 2/3倍, 宽度方向的变换比例为 1/2倍", 并且第三获取装置获得历史 变换需求信息包括"长度方向的变换比例为 3倍,宽度方向的变换比例为 2倍",则第一子变换装置获得实际变换需求信息中包含的长度方向的变 换比例 =变换需求信息中的长度方向的变换信息 *历史变换需求信息中 的长度方向的变换比例 =(2/3)*3=2, 实际变换需求信息中包含的宽度方 向的变换比例=变换需求信息中的宽度方向的变换比例 *历史变换需求 信息中的宽度方向的变换比例 =(1/2)*2=1倍, 则第一子变换装置根据所 获得的实际变换需求信息"长度方向的变换比例为 2倍,宽度方向的变换 比例为 1倍",对所述各个待变换的显示对象的显示位置及显示内容进行 显示变换来获得变换后的显示位置及显示内容, 以获得变换后的显示对 象, 用以进行显示。
其中, 才艮据所述实际变换需求信息对各个待变换的显示对象的显示 位置及显示内容进行显示变换来获得变换后的显示位置及显示内容, 以 获得变换后的显示对象, 用以进行显示的方式与前述变换装置 3根据变 换需求信息对各个待变换的显示对象的显示位置及显示内容进行显示 变换来获得变换后的显示位置及显示内容, 以获得变换后的显示对象, 用以进行显示的方式相同或相似, 在此不再赞述。
需要说明的是, 上述举例仅为更好地说明本发明的技术方案, 而 非对本发明的限制, 本领域技术人员应该理解, 任何根据所述变换需 求信息及所述历史变换需求信息, 确定所述实际变换需求信息, 并根 据所述实际变换需求信息,对所述各个待变换的显示对象的显示位置及 显示内容进行显示变换来获得变换后的显示位置及显示内容, 以获得变 换后的显示对象, 用以进行显示的实现方式, 例如, 根据历史需求信 息中所包含的变换类型、各变换类型的数量及变换类型所对应的预定 变换比例,来获得实际变换需求信息等,均应包含在本发明的范围内。
作为本实施例的优选方案之一, 根据本实施例的显示变换装置还 包括第六获取装置 (图未示)和第七获取装置 (图未示) , 其中, 前 述第一确定装置 101还包括第二子获取装置(图未示)和第二子确定 装置(图未示), 前述变换装置 3还包括第三子变换装置(图未示)。
第六获取装置获取与该显示实体相关的历史变换需求信息及历史 变换参照位置信息。
第二子获取装置根据待变换区域的位置信息、 所述历史变换需求 信息以及所述历史变换参照位置信息, 获得实际变换区域。
具体地, 第二子获取装置先根据所述待变换区域的位置信息及所 述历史变换参照位置信息来确定所述待变换区域的相对位置信息; 接 着, 第二子获取装置根据所述待变换区域的相对位置信息进行逆变换 处理以获得逆变换后的相对位置信息; 接着, 第二子获取装置根据所 述历史变换参照位置信息及逆变换后的相对位置信息来确定实际待 变换区域。
例如, 显示变换装置获得的待变换区域的位置信息包括三个顶点 坐标" (20,10), b(25,20), c(30,10)',, 第六获取装置获得历史变换需求 信息包括"变换比例为 1/2 倍", 且历史变换参照位置信息包括坐标 "(10,10)"; 则第二子获取装置先确定所述待变换区域相对于历史变换 参照位置信息的相对位置信息包括坐标" (10,0), (15,10), (20,0)"; 接 着, 第二子获取装置根据所述历史变换需求信息对所获得的位置信息 进行放大 2 倍的逆变换, 获得变换后的相对位置信息包括" (20,0), b(30,20) , c(40,0)',; 接着, 第二子获取装置结合历史参照位置信息 "(10,10)"及变换后的相对位置信息, 确定实际待变换区域的位置信息 包括" (30,10), b(40,30), c(50,10)"。
需要说明的是, 上述举例仅为更好地说明本发明的技术方案, 而 非对本发明的限制, 本领域技术人员应该理解, 任何根据待变换区域 的位置信息、 所述历史变换需求信息以及所述历史变换参照位置信 息, 获得实际变换区域的实现方式, 均应包含在本发明的范围内。
接着, 第二子确定装置根据所述实际变换区域及所述所有显示对象 的原始位置标识信息, 确定各个待变换的显示对象, 并获得各个待变换 的显示对象的显示位置及显示内容。 其中, 第二子确定装置才艮据实际变 换区域及所述所有显示对象的原始位置标识信息, 确定各个待变换的显 示对象, 并获得各个待变换的显示对象的显示位置及显示内容的方式已 在前述第一子确定装置的说明中予以详述, 并以引用的方式包含于此, 不再赘述。
第二获取装置 2已在图 5所示实施例中予以详述, 并以引用的方 式包含于此, 不再赘述。
第七获取装置获取变换参照位置信息。
接着, 第三子变换装置根据所述变换需求信息及所述变换参照位置 信息, 对所述各个待变换的显示对象的显示位置及显示内容进行显示变 换来获得变换后的显示位置及显示内容, 以获得变换后的显示对象, 用 以进行显示。 其中, 第三子变换装置才艮据所述变换需求信息及所述变换 参照位置信息, 对所述各个待变换的显示对象的显示位置及显示内容进 行显示变换来获得变换后的显示位置及显示内容, 以获得变换后的显示 对象, 用以进行显示的方式已在前述第二子变换装置的说明中予以详 述, 并以引用的方式包含于此, 不再赘述。 根据本实施例的方法, 可根据用户选择的参照点对待变换区域进 行显示变换, 使得显示变换更加灵活, 更符合用户的使用需求。
图 7为本发明另一个优选实施例的用于对显示对象进行显示变换 的显示变换装置的结构示意图。根据本实施例的显示变换装置包括第 一获取装置 1、第二获取装置 2、第四获取装置 5和变换装置 3 ,其中, 所述步第一获取装置 1还包括第二确定装置 102。
第四获取装置 5获取所述显示实体的显示历史记录, 其中, 所述 显示历史记录包括该显示实体中各个显示对象的位置信息及显示内 容。
第二确定装置 102根据所述显示实体中待变换区域的位置信息及 所述显示历史记录中各个显示对象的显示位置, 确定与所述待变换区 域相关的所述各个待变换的显示对象, 并获得所述各个待变换的显示 对象的显示位置及显示内容。
其中, 所述第二确定装置 102根据所述显示实体中待变换区域的 位置信息及所述显示历史记录中各个显示对象的显示位置, 确定与所 述待变换区域相关的所述各个待变换的显示对象, 并获得所述各个待 变换的显示对象的显示位置及显示内容的方式, 与前述第一确定装置 101根据所述显示实体中待变换区域的位置信息及该显示实体中所有 显示对象的原始位置标识信息, 确定与所述待变换区域相关的所述各 个待变换的显示对象, 并获得各个待变换的显示对象的显示位置及显 示内容的方式相同或相似, 并以引用的方式包含于此, 不再赘述。
第二获取装置 2及变换装置 3已在图 5所示实施例中予以详述, 并 以引用的方式包含于此, 不再赘述。
优选的, 才艮据本实施例的显示变换装置还包括更新装置(图未示)。 更新装置才艮据所述变换后的显示对象的显示位置及显示内容, 更新 所述显示历史记录。
具体的, 更新装置才艮据所述变换后的显示对象的显示信息及显示内 容, 建立或更新显示历史记录中所记录的显示对象的显示信息及显示内 根据本实施例的显示变换装置可以直接根据待变换对象的当前 的显示位置直接进行显示变换, 提高了显示变换的效率。
图 8为本发明再一个优选实施例的用于对显示对象进行显示变换 的更新装置的结构示意图。根据本实施例的方法包括第一获取装置 1、 第二获取装置 2、 变换装置 3、 触发获取装置 10、 触发确定装置 11 及执行装置 12。
第一获取装置 1、 第二获取装置 2及变换装置 3 已在图 5、 图 6 或图 7所示实施例中予以详述,并以引用的方式包含于此,不再赞述。
接着, 触发获取装置 10获取用户对显示实体的触发动作信息。 其中, 所述触发动作信息至少包括所述触发动作的位置信息, 并 且, 根据用户的触发动作, 该触发动作的位置信息包括以下任一项: 1 ) 一个坐标点的位置信息, 例如, 当用户在触摸屏上进行点击时, 触发动作的位置信息包括该点击动作的点击位置信息; 2 ) —组用于 确定触发动作的操作范围的位置信息, 例如, 当用户在触摸屏上进行 划线操作时, 触发动作的位置信息包括该划线动作的起点和终点的坐 标等。
接着, 触发确定装置 11 根据所述触发动作信息及与所述显示实 体相关的历史变换需求信息, 确定实际触发位置信息。
其中, 触发确定装置 11 根据所述触发动作信息及与所述显示实 体相关的历史变换需求信息, 确定实际触发位置信息的方式, 与第一 子获取装置根据所述待变换区域的位置信息及所述历史变换需求信 息,获得实际变换区域的方式相同或相似,并以引用的方式包含于此, 不再赘述。
接着, 执行装置 12根据所述实际触发位置信息来确定作为实际 触发对象的显示对象, 以执行与所述作为实际触发对象的显示对象相 对应的操作。
具体地, 执行装置 12通过在显示实体对应的所有显示对象的原 始位置标识信息中进行查询及比对, 来将原始位置标识信息包含全部 或部分所述实际触发位置信息的显示对象作为实际触发对象, 以执行 与所述作为实际触发对象的显示对象相对应的操作。
作为本实施例的优选方案之一, 根据本实施例的显示变换装置还包 括第八获取装置 (图未示) , 前述触发确定装置 11进一步包括子触发 确定装置 (图未示) 。
第八获取装置获取历史变换参照位置信息。
触发获取装置 10 已在前述实施例中予以详述, 并以引用的方式包 含于此, 不再赘述。
子触发确定装置 4艮据所述触发动作信息、 所述历史变换需求信息及 所述历史变换参照位置信息, 获得所述实际触发动作信息。
具体地, 子触发确定装置先根据所述触发动作信息中包含的所述 触发动作的位置信息及所述历史变换参照位置信息来确定所述触发 动作的相对位置信息; 接着, 子触发确定装置根据历史变换需求信息 对所述触发动作的相对位置信息进行逆变换处理以获得逆变换后的 相对位置信息; 接着, 子触发确定装置根据所述历史变换参照位置信 息及逆变换后的相对位置信息来获得所述实际触发动作信息。
例如, 触发获取装置 10获得的该触发动作信息的位置信息包括坐 标" (30,10)",显示变换装置获得历史变换需求信息包括"缩小为原始位 置标识信息的 1/3", 且第八获取装置获得历史变换参照位置信息包括 坐标" (10,0)",则子触发确定装置先确定所述触发动作相对于历史变换 参照位置信息的相对位置信息为 (20,10); 接着, 子触发确定装置根据 所述历史变换需求信息对所获得的触发动作的相对位置信息进行放 大 3倍的逆变换以获得逆变换后的相对位置信息包括坐标" (60,30)"; 接着, 子触发确定装置结合历史参照位置信息(10,0)确定实际触发动 作信息包括位置信息 "(70,40)"。
需要说明的是, 上述举例仅为更好地说明本发明的技术方案, 而 非对本发明的限制, 本领域技术人员应该理解, 任何根据所述触发动 作信息、 所述历史变换需求信息及所述历史变换参照位置信息, 获得所 述实际触发动作信息的实现方式, 均应包含在本发明的范围内。
接着,执行装置 12已在前述实施例中予以详述, 并以引用的方式包 含于此, 不再赘述。
才艮据本实施例的显示变换装置, 对显示内容进行显示变换后仍然可 以顺利的响应用户对于显示内容的各类操作, 进一步提高用户体验。
对于本领域技术人员而言, 显然本发明不限于上述示范性实施例 的细节, 而且在不背离本发明的精神或基本特征的情况下, 能够以其 他的具体形式实现本发明。 因此, 无论从哪一点来看, 均应将实施例 看作是示范性的, 而且是非限制性的, 本发明的范围由所附权利要求 而不是上述说明限定, 因此旨在将落在权利要求的等同要件的含义和 范围内的所有变化涵括在本发明内。 不应将权利要求中的任何附图标 记视为限制所涉及的权利要求。 此外, 显然"包括"一词不排除其他单 元或步骤, 单数不排除复数。 系统权利要求中陈述的多个单元或装置 也可以由一个单元或装置通过软件或者硬件来实现。 第一, 第二等词 语用来表示名称, 而并不表示任何特定的顺序。

Claims

权 利 要 求 书
1.一种计算机实现的用于对显示对象进行显示变换的方法, 其中, 该方法包括以下步骤:
a获取显示实体中一个或多个待变换的显示对象的显示位置及显示 内容;
其中, 该方法还包括:
- 获取所述一个或多个待变换的显示对象的变换需求信息; 其中, 该方法还包括:
1根据所述变换需求信息对各个待变换的显示对象的显示位置及显 示内容进行显示变换来获得变换后的显示位置及显示内容, 以获得变换 后的显示对象, 用以进行显示。
2.如权利要求 1所述的方法, 其中, 所述步骤 a包括以下步骤: al 根据所述显示实体中待变换区域的位置信息及该显示实体中所 有显示对象的原始位置标识信息, 确定与所述待变换区域相关的所述各 个待变换的显示对象, 并获得各个待变换的显示对象的显示位置及显示 内容。
3.如权利要求 2所述的方法, 其中, 该方法还包括以下步骤: - 获取与该显示实体相关的历史变换需求信息;
其中, 所述步骤 al包括以下步骤:
-根据所述待变换区域的位置信息及所述历史变换需求信息, 获得 实际变换区域;
- 根据所述实际变换区域及所述所有显示对象的原始位置标识信 息, 确定所述各个待变换的显示对象, 并获得各个待变换的显示对象的 显示位置及显示内容;
其中, 所述步骤 i包括以下步骤:
-根据各个待变换的显示对象的显示位置及显示内容、 所述变换需 求信息及所述历史变换需求信息, 对所述各个待变换的显示对象的显示 位置及显示内容进行显示变换来获得变换后的显示位置及显示内容, 以 获得变换后的显示对象, 用以进行显示。
4.如权利要求 1所述的方法, 其中, 该方法还包括以下步骤:
- 获取所述显示实体的显示历史记录, 其中, 所述显示历史记录包 括该显示实体中各个显示对象的显示位置及显示内容;
其中, 所述步骤 a包括以下步骤:
a2根据所述显示实体中待变换区域的位置信息及所述显示历史记 录中各个显示对象的显示位置, 确定与所述待变换区域相关的所述各个 待变换的显示对象, 并获得所述各个待变换的显示对象的显示位置及显 示内容。
5.如权利要求 4所述的方法, 其中, 该方法还包括以下步骤:
-根据所述变换后的显示对象的显示位置及显示内容, 更新所述显 示历史 ^己录。
6.如权利要求 1至 5中任一项所述的方法, 其中, 该方法还包括以 下步骤:
- 获取变换参照位置信息;
其中, 所述步骤 i包括以下步骤:
-根据所述变换参照位置信息以及所述变换需求信息, 对所述各个 待变换的显示对象的显示位置及显示内容进行显示变换来获得变换后 的显示位置及显示内容, 以获得变换后的显示对象, 用以进行显示。
7. 如权利要求 1或 2所述的方法, 其中, 该方法还包括以下步骤:
- 获取与该显示实体相关的历史变换需求信息及历史变换参照位置
Ί^- 其中, 所述步骤 al包括以下步骤:
-根据待变换区域的位置信息、 所述历史变换需求信息以及所述历 史变换参照位置信息, 获得实际变换区域;
- 根据所述实际变换区域及所述所有显示对象的原始位置标识信 息, 确定各个待变换的显示对象, 并获得各个待变换的显示对象的显示 位置及显示内容;
其中, 该方法还包括以下步骤: - 获取变换参照位置信息;
其中, 所述步骤 i包括以下步骤:
-根据所述变换需求信息及所述变换参照位置信息, 对所述各个待 变换的显示对象的显示位置及显示内容进行显示变换来获得变换后的 显示位置及显示内容, 以获得变换后的显示对象, 用以进行显示。
8.如权利要求 1至 7中任一项所述的方法, 其中, 该方法还包括以 下步骤:
X获取用户对显示实体的触发动作信息;
y 艮据所述触发动作信息及与所述显示实体相关的历史变换需求信 息, 确定实际触发位置信息;
z根据所述实际触发位置信息来确定作为实际触发对象的显示对 象, 以执行与所述作为实际触发对象的显示对象相对应的操作。
9.如权利要求 8所述的方法, 其中, 该方法还包括以下步骤: - 获取历史变换参照位置信息;
其中, 所述步骤 y包括以下步骤:
-根据所述触发动作信息、 所述历史变换需求信息及所述历史变换 参照位置信息, 获得所述实际触发动作信息。
10. 如权利要求 1至 9中任一项所述的方法, 其中, 所述步骤 i包括 以下步骤:
-根据所述变换需求信息, 并结合基于该变换需求信息来获得的预 定类型的显示内容所对应的内容更改信息, 对所述各个显示对象的显示 位置及显示内容进行显示变换, 来获得变换后的显示位置及显示内容, 以获得变换后的显示对象, 用以进行显示。
11. 如权利要求 1至 10中任一项所述的方法, 其中, 所述步骤 a包 括以下步骤:
-根据用户对所述显示实体的选择操作, 获取所述显示实体中待变 换区域的位置信息。
12. 一种用于对显示对象进行显示变换的显示变换装置, 其中, 该 显示变换装置包括: 第一获取装置、 用于获取显示实体中一个或多个待变换的显示对象 的显示位置及显示内容;
第二获取装置、 用于获取所述一个或多个待变换的显示对象的变换 需求信息;
变换装置、 用于才艮据所述变换需求信息对各个待变换的显示对象的 显示位置及显示内容进行显示变换来获得变换后的显示位置及显示内 容, 以获得变换后的显示对象, 用以进行显示。
13. 如权利要求 12所述的显示变换装置, 其中, 所述第一获取装置 包括:
第一确定装置、 用于才艮据所述显示实体中待变换区域的位置信息及 该显示实体中所有显示对象的原始位置标识信息, 确定与所述待变换区 域相关的所述各个待变换的显示对象, 并获得各个待变换的显示对象的 显示位置及显示内容。
14. 如权利要求 13所述的显示变换装置, 其中, 该显示变换装置还 包括:
第三获取装置、 用于获取与该显示实体相关的历史变换需求信息; 其中, 所述第一确定装置包括:
第一子获取装置、 用于根据所述待变换区域的位置信息及所述历史 变换需求信息, 获得实际变换区域;
第一子确定装置、 用于才艮据所述实际变换区域及所述所有显示对象 的原始位置标识信息, 确定所述各个待变换的显示对象, 并获得各个待 变换的显示对象的显示位置及显示内容;
其中, 所述变换装置包括:
第一子变换装置、 用于才艮据各个待变换的显示对象的显示位置及显 示内容、 所述变换需求信息及所述历史变换记录, 对所述各个待变换的 显示对象的显示位置及显示内容进行显示变换来获得变换后的显示位 置及显示内容, 以获得变换后的显示对象, 用以进行显示。
15. 如权利要求 12所述的显示变换装置, 其中, 该显示变换装置还 包括: 第四获取装置、 用于获取所述显示实体的显示历史记录, 其中, 所 述显示历史记录包括该显示实体中各个显示对象的位置信息及显示内 容;
其中, 所述第一获取装置包括:
第二确定装置、 用于才艮据所述显示实体中待变换区域的位置信息及 所述显示历史记录中各个显示对象的位置信息, 确定与所述待变换区域 相关的所述各个待变换的显示对象, 并获得所述各个待变换的显示对象 的显示位置及显示内容。
16. 如权利要求 15所述的显示变换装置, 其中, 该显示变换装置还 包括:
更新装置、用于才艮据所述变换后的显示对象的位置信息及显示内容, 更新所述显示历史记录。
17. 如权利要求 12至 16中任一项所述的显示变换装置, 其中, 该 显示变换装置还包括:
第五获取装置、 用于获取变换参照位置信息;
其中, 所述变换装置包括:
第二子变换装置、 用于才艮据所述变换参照位置信息以及所述变换需 求信息, 对所述各个待变换的显示对象的显示位置及显示内容进行显示 变换来获得变换后的显示位置及显示内容, 以获得变换后的显示对象, 用以进行显示。
18.如权利要求 13或 14所述的显示变换装置, 其中, 该显示变换装 置还包括:
第六获取装置、 用于获取与该显示实体相关的历史变换需求信息及 历史变换参照位置信息;
其中, 所述第一确定装置包括:
第二子获取装置、 用于才艮据待变换区域的位置信息、 所述历史变换 需求信息以及所述历史变换参照位置信息, 获得实际变换区域;
第二子确定装置、 用于才艮据所述实际变换区域及所述所有显示对象 的原始位置标识信息, 确定各个待变换的显示对象, 并获得各个待变换 的显示对象的显示位置及显示内容;
其中, 该显示变换装置还包括:
第七获取装置、 用于获取变换参照位置信息;
其中, 所述变换装置包括:
第三子变换装置、 用于才艮据所述变换需求信息及所述变换参照位置 信息, 对所述各个待变换的显示对象的显示位置及显示内容进行显示变 换来获得变换后的显示位置及显示内容, 以获得变换后的显示对象, 用 以进行显示。
19. 如权利要求 12至 18中任一项所述的显示变换装置, 其中, 该 显示变换装置还包括:
触发获取装置、 用于获取用户对显示实体的触发动作信息; 触发确定装置、 用于才艮据所述触发动作信息及与所述显示实体相关 的历史变换需求信息, 确定实际触发位置信息;
执行装置、 用于根据所述实际触发位置信息来确定作为实际触发对 象的显示对象, 以执行与所述作为实际触发对象的显示对象相对应的操 作。
20. 如权利要求 19所述的显示变换装置, 其中, 该显示变换装置还 包括:
第八获取装置、 用于获取历史变换参照位置信息;
其中, 所述触发确定装置包括:
子触发确定装置、 用于 4艮据所述触发动作信息、 所述历史变换需求 信息及所述历史变换参照位置信息, 获得所述实际触发动作信息。
21. 如权利要求 12至 20中任一项所述的显示变换装置, 其中, 所 述变换装置包括:
第四子变换装置、 用于才艮据所述变换需求信息, 并结合基于该变换 需求信息来获得的预定类型的显示内容所对应的内容更改信息, 对所述 各个显示对象的显示位置及显示内容进行显示变换, 来获得变换后的显 示位置及显示内容, 以获得变换后的显示对象, 用以进行显示。
22. 如权利要求 12至 21 中任一项所述的显示变换装置, 其中, 所 述第一获取装置包括:
第三子获取装置、 用于根据用户对所述显示实体的选择操作, 获取 所述显示实体中待变换区域的位置信息。
23. 一种计算机设备, 其中, 该计算机设备包括如权利要求 12至 22 中任一项所述的显示变换装置。
PCT/CN2012/072528 2011-03-18 2012-03-19 一种用于对显示对象进行显示变换的方法、装置和设备 WO2012126343A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2011100666254A CN102681755A (zh) 2011-03-18 2011-03-18 一种用于对显示对象进行显示变换的方法、装置和设备
CN201110066625.4 2011-03-18

Publications (1)

Publication Number Publication Date
WO2012126343A1 true WO2012126343A1 (zh) 2012-09-27

Family

ID=46813770

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/072528 WO2012126343A1 (zh) 2011-03-18 2012-03-19 一种用于对显示对象进行显示变换的方法、装置和设备

Country Status (2)

Country Link
CN (1) CN102681755A (zh)
WO (1) WO2012126343A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104978756B (zh) * 2014-04-02 2018-01-12 北京大学 一种嵌入互动组件的页面的无缝缩放方法及装置
CN106384065B (zh) 2015-06-30 2019-08-06 北京智谷睿拓技术服务有限公司 显示控制方法和装置
CN106250791A (zh) 2015-06-30 2016-12-21 北京智谷睿拓技术服务有限公司 显示控制方法和装置

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101382868A (zh) * 2007-09-06 2009-03-11 夏普株式会社 信息显示装置
CN101981536A (zh) * 2008-02-20 2011-02-23 诺基亚公司 用于支持用户输入的装置、方法、计算机程序和用户接口

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4341408B2 (ja) * 2004-01-15 2009-10-07 パナソニック株式会社 画像表示方法及び装置
CN101162576A (zh) * 2007-10-18 2008-04-16 深圳华为通信技术有限公司 一种显示方法和装置

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101382868A (zh) * 2007-09-06 2009-03-11 夏普株式会社 信息显示装置
CN101981536A (zh) * 2008-02-20 2011-02-23 诺基亚公司 用于支持用户输入的装置、方法、计算机程序和用户接口

Also Published As

Publication number Publication date
CN102681755A (zh) 2012-09-19

Similar Documents

Publication Publication Date Title
US10254848B2 (en) Cross-platform data visualizations using common descriptions
US8610714B2 (en) Systems, methods, and computer-readable media for manipulating graphical objects
ES2240451T3 (es) Sistemas y metodos para generar representaciones visuales de datos graficos.
US20190035151A1 (en) Generating efficient, stylized mesh deformations using a plurality of input meshes
JP5992934B2 (ja) 三次元ビューイングの方法
CN102547450B (zh) 延迟的图像解码
US9135885B2 (en) Resolution independent client side rendering
JP2015518217A (ja) 3次元客体生成装置及びその方法
WO2013085595A1 (en) Selective image loading in mobile browsers
US9501812B2 (en) Map performance by dynamically reducing map detail
WO2012126343A1 (zh) 一种用于对显示对象进行显示变换的方法、装置和设备
JP2003531429A (ja) デジタルドキュメント処理
JP2011086050A (ja) 情報処理端末及びコンピュータプログラム
US11461874B2 (en) Graphics processing using matrices of transformations
US11295499B1 (en) Generating nested repetitions for display using multiple rendering techniques
CN113096217B (zh) 图片生成方法、装置、电子设备以及存储介质
US10930045B2 (en) Digital ink based visual components
JP5193969B2 (ja) 異なる地図を同時に表示する地図表示装置及び方法
US20220028140A1 (en) Transforming digital design objects utilizing dynamic magnetic guides
CN115857778A (zh) 页面生成方法和装置
JP6085197B2 (ja) 携帯情報処理装置、表示処理方法、表示処理プログラム
US20170193698A1 (en) On-Demand Transformation Aware Shape Tessellation
GB2556412A (en) Generating efficient, stylized mesh deformations using a plurality of input meshes
JP2011095874A (ja) フローチャート表示装置、フローチャート表示方法およびプログラム
JP2016184212A (ja) データ表示システム

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

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

Country of ref document: EP

Kind code of ref document: A1