CN106980622A - A kind of file processing method and processing device - Google Patents

A kind of file processing method and processing device Download PDF

Info

Publication number
CN106980622A
CN106980622A CN201610031387.6A CN201610031387A CN106980622A CN 106980622 A CN106980622 A CN 106980622A CN 201610031387 A CN201610031387 A CN 201610031387A CN 106980622 A CN106980622 A CN 106980622A
Authority
CN
China
Prior art keywords
operation object
rectangle
width
length
spacing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610031387.6A
Other languages
Chinese (zh)
Other versions
CN106980622B (en
Inventor
李静
贾鹏
吴锦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201610031387.6A priority Critical patent/CN106980622B/en
Publication of CN106980622A publication Critical patent/CN106980622A/en
Application granted granted Critical
Publication of CN106980622B publication Critical patent/CN106980622B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/168Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the present invention provides a kind of file processing method and processing device, is related to field of terminal technology.This method includes:The operation object rest area of file is determined, operation object rest area is located at the inside of file institute overlay area, and operation object rest area is rectangle N*N';Acquiescence width M', minimum zoom COEFFICIENT K and the width interval parameter of width N', operation object based on rectangle, determine on the width of rectangle can placement operation object number p;The acquiescence width M' of width N', operation object based on rectangle, width interval parameter, and p, determine the actual zoom factor K ' of operation object;Default-length M, K of length N, operation object based on rectangle ' and length spacing parameter, determine on the length direction of rectangle can placement operation object number q;Default size M*M', K ' based on operation object, width interval parameter, length spacing parameter, and p and q, determine the display location of p*q operation object in operation object rest area.

Description

A kind of file processing method and processing device
Technical field
The present invention relates to field of terminal technology, more particularly to a kind of file processing method and processing device.
Background technology
With the fast development of terminal technology, the hardware configuration more and more higher of terminal is applied to simultaneously The application program and theme of terminal are also more and more, such as, and when terminal is mobile phone, user can be with According to the hobby of itself, various application programs and mobile phone theme are installed in selection, when user's peace When the application program of dress is more, the Classification Management of application program for convenience, user big city is in hand Set up different files to be stored classifiedly the icon of application program under owner's topic.
Due to the shapes and sizes also not phase of file in many and different themes of the species of theme Together, and in different terminals the default size of the icon of application program is fixed, therefore, works as user When the icon of application program is deposited in the form of file, icon in file preview graph can be influenceed Quantity and size, at this point it is possible to which the icon in file preview graph is referred to as into operation object.If will The quantity for the operation object placed in file preview graph and fixed value is dimensioned to, when user's choosing When selecting different themes, it may appear that operation object is bigger than normal, less than normal or beyond file in file Situations such as border, therefore, need a kind of file processing method badly.
The content of the invention
Embodiments of the invention provide a kind of file processing method and processing device, solve prior art In occur in file that operation object is bigger than normal, less than normal or the problems such as beyond file border.
To reach above-mentioned purpose, embodiments of the invention are adopted the following technical scheme that:
First aspect includes there is provided a kind of file processing method, methods described:
The operation object rest area of file is determined, the operation object rest area is located at the file The inside of institute overlay area, wherein, the operation object rest area is rectangle N*N';
The acquiescence width M' of width N', operation object based on the rectangle, minimum zoom COEFFICIENT K With width interval parameter, determine on the width of the rectangle can placement operation object number p;
Between the acquiescence width M' of width N', the operation object based on the rectangle, the width Every parameter, and the p, the actual zoom factor K ' of the operation object is determined;
Default-length M, the K ' and length of length N, the operation object based on the rectangle Spend spacing parameter, determine on the length direction of the rectangle can placement operation object number q;
Default size M*M', the K ' based on the operation object, the width interval parameter, The length spacing parameter, and the p and q, determine in the operation object rest area p*q The display location of the operation object.
Wherein, operation object rest area is used to place the operation object that file includes, such as, the behaviour Make the icon that object can be application program, the operation object rest area refers to that this document is clipped in and is not switched on The preview graph target area that Shi Suoneng is placed.
In addition, the operation object rest area is rectangle, it can be rectangular to refer to the operation object rest area Shape or square, it is preferred that when the rectangle is the most imperial palace in this document folder region When connecing rectangle, the area of the rectangle is maximum, that is to say, the behaviour that the operation object rest area can be placed The region for making object is maximum.
Furthermore, the display location of p*q operation object, can refer to this in the operation object rest area The displaing coordinate of the center of p*q operation object, if with where the width and length of the rectangle Reference axis is set up in position, then the displaing coordinate of the center of the p*q operation object is, the p*q Displaing coordinate of the center of individual operation object on the width of rectangle, and this p*q behaviour Make displaing coordinate of the center of object on the length direction of rectangle.
It should be noted that minimum zoom COEFFICIENT K is the minimum multiple zoomed in and out to operation object, To ensure that operation object is not reduced arbitrarily, so that visual effect is influenceed, wherein, K can be set in advance Put, and 0 < K≤1, K can be the numerical value obtained by test of many times, such as, K can be 0.19 Deng of the invention not make that there is restriction to this.
With reference in a first aspect, in the first possible implementation of first aspect, between the width It is close to the rectangle to include the first spacing a and the second spacing b, the first spacing a every parameter The distance between the operation object of widthwise edges and the widthwise edges, the second spacing b are two The distance between operation object on the width.
Wherein, the first spacing a and the second spacing b can be set in advance, and to the first spacing a and Magnitude relationship between two spacing b is not construed as limiting, such as, and the first spacing a can be 4.8px, the Two spacing b can also be 4.8px, and the present invention is not construed as limiting to a and b concrete numerical value.
With reference to the first possible implementation of first aspect, second in first aspect is possible In implementation, the width N' based on the rectangle, the acquiescence width M' of operation object, most Small zoom factor K and width interval parameter, determining can placement operation pair on the width of the rectangle The number p of elephant, including:
The default size M' of width N', the operation object based on the rectangle, the minimum contracting COEFFICIENT K, a and b are put, is calculated according to formula (1) and obtains p ';
P'=(N'-2a+b)/(b+K*M') (1)
Downward rounding operation is carried out to the p ', determining can placement operation on the width of the rectangle The number p of object.
With reference in a first aspect, in the third possible implementation of first aspect, between the length Include the 3rd spacing a ' and the 4th spacing b ' every parameter, a ' is close to the length edge of the rectangle The distance between operation object and the length edge, the b ' is on two length directions The distance between operation object.
Wherein, the 3rd spacing a ' and the 4th spacing b ' can be set in advance, and to the 3rd spacing a ' and Magnitude relationship between four spacing b ' is not construed as limiting, such as, and the 3rd spacing a ' can be 10.8px, the Four spacing b ' can also be 10.8px, concrete numerical value of the present invention to the 3rd spacing a ' and the 4th spacing b ' It is not construed as limiting.
With reference to the third possible implementation of first aspect, the 4th kind in first aspect is possible In implementation, the length N based on the rectangle, the default size M of the operation object, The K ' and length spacing parameter, determine on the length direction of the rectangle can placement operation object Number q, including:
Default size M, the K ', a ' of length N, the operation object based on the rectangle And b ', calculated according to formula (2) and obtain q ';
Q'=(N-2a'+b')/(b'+K'*M) (2)
Downward rounding operation is carried out to the q ', determining can placement operation on the length direction of the rectangle The number q of object.
With reference to the 4th kind of possible implementation of first aspect, the 5th kind in first aspect is possible In implementation, the length N based on the rectangle, the default-length M of the operation object, The actual zoom factor K ', length spacing parameter, determine to place on the length direction of the rectangle After the number q of operation object, in addition to:
The default size M of length N, the operation object based on the rectangle, the actual scaling COEFFICIENT K ', the 3rd spacing a ', and can placement operation object on the length direction of the rectangle Number q, is updated to the described 4th interval b '.
Due to having carried out downward rounding operation to the q ' calculated, obtaining can on the length direction of the rectangle The number q of placement operation object, therefore, when the q ' calculated is not integer, if according to before Length spacing parameter determines the display location of the operation object in the rectangle, then can cause the rectangle length The operation object placed on direction is uneven, therefore, it can be updated the 4th interval b ', namely It is the distance between two operation objects on the length direction of the rectangle to be updated, to enter one Step improves Consumer's Experience.
With reference to the 5th kind of possible implementation of first aspect, the 6th kind in first aspect is possible In implementation, the default size M*M' based on the operation object, the actual scaling system The width of number K ', the width interval parameter, the length spacing parameter, and the rectangle On can on the number p of placement operation object and the length direction of the rectangle can placement operation object Number q, determines the display location of the p*q operation objects in the operation object rest area, including:
It is true according to formula (3) based on the M', the K ', a and b, and the p Displaing coordinate of the center of the fixed p*q operation object on the width of the rectangle Xi, the 1≤i≤p;
Xi=a+ (i-1) * b+ (i-0.5) * K'*M'(3)
It is true according to formula (4) based on the M, the K ', a ' and b ', and the q Displaing coordinate of the center of the fixed p*q operation object on the length direction of the rectangle Yj, the 1≤j≤q;
Yj=a'+ (j-1) * b'+ (j-0.5) * K'*M (4).
Afterwards, can be with when showing the p*q operation object in the operation object rest area of this document According to the displaing coordinate X of the p*q operation objectiAnd YjIt has been shown that, that is to say, this p*q behaviour The displaing coordinate for making object is (Xi, Yj), wherein, the 1≤i≤p, the 1≤j≤q, from And it is bigger than normal, less than normal or the problems such as beyond file border to solve operation object in file, improve The aesthetic property of file.
Second aspect includes there is provided a kind of file processing unit, described device:
First determining unit, the operation object rest area for determining file, the operation object is put The inside that area is located at file institute overlay area is put, wherein, the operation object rest area is square Shape N*N';
Second determining unit, for the width N' based on the rectangle, the acquiescence width of operation object M', minimum zoom COEFFICIENT K and width interval parameter, determine to place on the width of the rectangle The number p of operation object;
3rd determining unit, the acquiescence for the width N' based on the rectangle, the operation object is wide M', the width interval parameter, and the p are spent, the actual scaling system of the operation object is determined Number K ';
4th determining unit, the acquiescence for the length N based on the rectangle, the operation object is long M, the K ' and length spacing parameter are spent, determining can placement operation on the length direction of the rectangle The number q of object;
5th determining unit, for default size M*M', the K ' based on the operation object, The width interval parameter, the length spacing parameter, and the p and q, determine the operation The display location of the p*q operation objects in object rest area.
With reference to second aspect, in the first possible implementation of second aspect, between the width It is the widthwise edges close to the rectangle to include the first spacing a and the second spacing b, a every parameter The distance between operation object and the widthwise edges, the b is on two widths The distance between operation object.
With reference to the first possible implementation of second aspect, second in second aspect is possible In implementation, second determining unit specifically for:
The default size M' of width N', the operation object based on the rectangle, the minimum contracting COEFFICIENT K, a and b are put, is calculated according to formula (5) and obtains p ';
P'=(N'-2a+b)/(b+K*M') (5)
Downward rounding operation is carried out to the p ', determining can placement operation on the width of the rectangle The number p of object.
With reference to second aspect, in the third possible implementation of second aspect, between the length Include the 3rd spacing a ' and the 4th spacing b ' every parameter, a ' is close to the length edge of the rectangle The distance between operation object and the length edge, the b ' is on two length directions The distance between operation object.
With reference to the third possible implementation of second aspect, the 4th kind in second aspect is possible In implementation, the 4th determining unit specifically for:
The default size M of length N, the operation object based on the rectangle, the K ', institute State a ' and b ', calculated according to formula (6) and obtain q ';
Q'=(N-2a'+b')/(b'+K'*M) (6)
Downward rounding operation is carried out to the q ', determining can placement operation on the length direction of the rectangle The number q of object.
With reference to the 4th kind of possible implementation of second aspect, the 5th kind in second aspect is possible In implementation, described device also includes:
Updating block, for the length N based on the rectangle, the default size M of the operation object, The actual zoom factor K ', the 3rd spacing a ', and the q, to the described 4th interval b ' It is updated.
With reference to the 5th kind of possible implementation of second aspect, the 6th kind in second aspect is possible In implementation, the 5th determining unit specifically for:
It is true according to formula (7) based on the M', the K ', a and b, and the p Displaing coordinate of the center of the fixed p*q operation object on the width of the rectangle Xi, the 1≤i≤p;
Xi=a+ (i-1) * b+ (i-0.5) * K'*M'(7)
It is true according to formula (8) based on the M, the K ', a ' and b ', and the q Displaing coordinate of the center of the fixed p*q operation object on the length direction of the rectangle Yj, the 1≤j≤q;
Yj=a'+ (j-1) * b'+ (j-0.5) * K'*M (8).
The file processing method and processing device that embodiments of the invention are provided, by the behaviour for determining file Make object rest area, the operation object rest area is located at the inside of file institute overlay area, and the behaviour Make object rest area for rectangle N*N', the acquiescence width M' of width N', operation object based on rectangle, Minimum zoom COEFFICIENT K and width interval parameter, determining can placement operation object on the width of rectangle Number p, and the width N' based on rectangle, operation object acquiescence width M', width interval ginseng Number and the p, it is determined that the actual zoom factor K ' of operation object is stated, the length N based on rectangle, behaviour Make the default-length M, the K ' and length spacing parameter of object, determine on the length direction of rectangle Can placement operation object number q, afterwards, default size M*M', the K ' based on operation object, Width interval parameter, length spacing parameter, and the p and q, are determined in operation object rest area The display location of p*q operation object, thus solve operation object in file it is bigger than normal, less than normal or The problems such as person exceeds file border, improve the aesthetic property of file.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will to embodiment or The accompanying drawing used required in description of the prior art is briefly described, it should be apparent that, below Accompanying drawing in description is only some embodiments of the present invention, for those of ordinary skill in the art For, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 is a kind of system architecture diagram of terminal provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic flow sheet of file processing method provided in an embodiment of the present invention;
Fig. 3 a are a kind of operation object rest area schematic diagram of file provided in an embodiment of the present invention;
Fig. 3 b are a kind of operation object display interface figure of file provided in an embodiment of the present invention;
Fig. 4 is a kind of structural representation of file processing unit provided in an embodiment of the present invention;
Fig. 5 is the structural representation of another file processing unit provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, to the technical scheme in the embodiment of the present invention It is clearly and completely described, it is clear that described embodiment is only that a part of the invention is real Apply example, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill The every other embodiment that personnel are obtained under the premise of creative work is not made, belongs to this Invent the scope of protection.
The system architecture for the terminal that embodiments of the invention are applied is as shown in figure 1, the terminal can be Mobile phone, tablet personal computer, notebook computer, UMPC (Ultra-mobile Personal Computer, Ultra-Mobile PC), net book, PDA (Personal Digital Assistant, it is personal Digital assistants), video camera and camera etc..The embodiment of the present invention is carried out so that terminal is mobile phone as an example Illustrate, Fig. 1 is illustrated that the block diagram of the part-structure of the mobile phone related to various embodiments of the present invention.
It will appreciated by the skilled person that the structure shown in Fig. 1 is only signal, it is not Structure to mobile phone causes to limit.For example, the mobile phone may also include it is more more than shown in Fig. 1 or Less component, or with the configuration different from shown in Fig. 1.
As shown in figure 1, the terminal 10 includes:Memory 101, processor 102, sensor cluster 103rd, multimedia groupware 104, power supply module 105, input output interface 106.
Each component parts of terminal 10 is specifically introduced with reference to Fig. 1:
Memory 101 can be used for data storage, software program and module;Mainly include storage program Area and storage data field, wherein, storing program area can be needed for storage program area, at least one function Application program, such as sound-playing function, image player function etc.;Storage data field can store root According to the created data that use of terminal 10, such as voice data, view data, phone directory etc.. In addition, memory 101 can include high-speed random access memory, non-volatile deposit can also be included Reservoir, for example, at least one disk memory, flush memory device or other volatile solid-states Part.
Processor 102 is the control centre of terminal 10, entirely whole using various interfaces and connection The various pieces at end, software program and/or mould in memory 101 are stored in by operation or execution Block, and the data being stored in memory 101 are called, perform various functions and the place of terminal 10 Data are managed, so as to carry out integral monitoring to terminal.Optionally, processor 102 may include one or many Individual processing unit;It is preferred that, processor 102 can integrated application processor and modem processor, Wherein, application processor mainly handles operating system, user interface and application program etc., modulation /demodulation Processor mainly handles radio communication.It is understood that above-mentioned modem processor can not also It is integrated into processor 102.
Sensor cluster 103 includes one or more sensors, for providing each side for terminal 10 The state estimation in face.Wherein, sensor cluster 103 can include acceleration transducer, and gyroscope is passed Sensor, Magnetic Sensor, pressure sensor or temperature sensor, can be examined by sensor cluster 103 Measure the acceleration/deceleration, orientation, opening/closed mode of terminal 10, the relative positioning of component, or end The temperature change at end 10 etc..In addition, sensor cluster 103 can also include optical sensor, such as CMOS Or ccd image sensor, for being used in imaging applications.
The screen of offer one output interface of the multimedia groupware 104 between terminal 10 and user, Such as, the screen can be LCDs, touch panel.When screen is touch panel, screen Touch-screen is may be implemented as, to receive the input signal from user.Touch panel include one or Multiple touch sensors are with the gesture on sensing touch, slip and touch panel.The touch sensor Can not only sensing touch or sliding action border, but also detection and the touch or slide Related duration and pressure.In addition, multimedia groupware 104 also include front camera and / or rear camera.When terminal 10 is in operator scheme, such as screening-mode or during video mode is preceding The multi-medium data of outside can be received by putting camera and/or rear camera.Each front camera and Rear camera can be a fixed optical lens system or with focusing and optical zoom capabilities.
Power supply module 105 is used to provide power supply for each component of terminal 10, and power supply module 105 can With including power-supply management system, one or more power supplys, and other generated with terminal 10, manage and Distribute electric power associated component.Input output interface 106 be processor 102 and peripheral interface module Between interface is provided, such as, peripheral interface module can be with keyboard, mouse etc..
Although not shown, terminal 10 can also include audio-frequency assembly and communication component etc., such as, sound Frequency component include microphone, communication component include WiFi (wireless fidelity, Wireless Fidelity) module, Bluetooth module etc., the embodiment of the present invention will not be repeated here.
Fig. 2 is a kind of file processing method provided in an embodiment of the present invention, applied in terminal, Referring to Fig. 2, this method includes following steps.
Step 201:The operation object rest area of file is determined, the operation object rest area is located at should The inside of file institute overlay area, wherein, the operation object rest area is rectangle N*N'.
The theme applied by terminal is different, the also not phase of the file size and shape under the theme Together, therefore, for different size and file of different shapes, it is necessary to first determine the behaviour of this document folder Make object rest area, the operation object rest area is rectangle N*N'.
Wherein, operation object rest area is used to place the operation object that file includes, such as, this article Part presss from both sides the icon or image for placing application program, then the operation object can be application program The icon of icon or image, the operation object rest area is that this document is clipped in when being not switched on for placing Preview graph target area.
In addition, the operation object rest area is rectangle N*N', refer to that the operation object rest area can be with It is rectangle or square, it is preferred that when the rectangle is in this document folder region When rectangle is inscribed in maximum, the area of the rectangle is maximum, that is to say, the operation object rest area can be put The region for the operation object put is maximum.
Step 202:The acquiescence width M' of width N', operation object based on rectangle, minimum zoom COEFFICIENT K and width interval parameter, determine on the width of the rectangle can placement operation object number p。
Because the rectangle includes two length of sides of length and width, therefore, the shorter side of the length of side is referred to as square The width of shape, the longer side of the length of side is referred to as the length of rectangle, it is assumed here that in rectangle N*N' where N ' The length of side be less than or equal to N where the length of side, i.e. N ' be the rectangle width.
Wherein, width interval parameter includes the first spacing a and the second spacing b, the first spacing a For the distance between operation object and widthwise edges close to the widthwise edges of rectangle, second spacing B is the distance between operation object on two widths.
Specifically, the acquiescence width M' of width N', operation object based on rectangle, minimum zoom system Number K and width interval parameter, determine on the width of the rectangle can placement operation object number p The step of can be:Width N', the default size M' of operation object based on rectangle, minimum zoom COEFFICIENT K, the first spacing a and the second spacing b, calculate according to formula (1) and obtain p ';
P'=(N'-2a+b)/(b+K*M') (1)
Downward rounding operation is carried out to p ', determining on the width of the rectangle can placement operation object Number p.
Such as, it is 2.3 to be calculated according to formula (1) and obtain p ', and carrying out downward rounding operation to p ' obtains 2, so that it is determined that on the width of the rectangle can placement operation object number p be equal to 2.
It should be noted that the first spacing a and the second spacing b can be set in advance, and the present invention is right Magnitude relationship between first spacing a and the second spacing b is not construed as limiting, such as, and the first spacing a can It can also be 4.8px, specific number of the embodiment of the present invention to a and b to think 4.8px, the second spacing b Value is not construed as limiting.
In addition, minimum zoom COEFFICIENT K is the minimum multiple zoomed in and out to operation object, to ensure behaviour Make object not reduced arbitrarily, so that visual effect is influenceed, wherein, K can be set in advance, and 0 < K≤1, K can be the numerical value obtained by test of many times, such as, and K can be 0.19 etc., The embodiment of the present invention is not made to have to this to be limited.
Step 203:The acquiescence width M' of width N', operation object based on rectangle, width interval Parameter, and the p, determine the actual zoom factor K ' of operation object.
Due to it is determined that on the width of the rectangle can placement operation object number p when, to p ' Downward rounding operation is carried out, if based on minimum zoom COEFFICIENT K, determining the aobvious of operation object in the rectangle Show position, may result in the operation object placed on the rectangle width direction and show uneven, therefore, The uniformity and aesthetic property for the operation object placed on width in order to ensure the rectangle, can be by K in above-mentioned formula (1) is as unknown number, width N', the acquiescence of operation object based on rectangle Width M', width interval parameter, and on the width of the rectangle can placement operation object number P, calculating is re-started according to formula (1), that is, obtains the actual zoom factor K ' of operation object.
Step 204:Default-length M, the K ' and length of length N, operation object based on rectangle Spend spacing parameter, determine on the length direction of the rectangle can placement operation object number q.
Wherein, length spacing parameter includes the 3rd spacing a ' and the 4th spacing b ', the 3rd spacing a ' For the distance between operation object and the length edge close to the length edge of rectangle, the 4th spacing B ' is the distance between operation object on two length directions.
Specifically, the default-length M of length N, operation object based on rectangle, actual zoom factor K ' With length spacing parameter, determine on the length direction of the rectangle can placement operation object number q behaviour Work can be:Default size M, the K ', a ' of length N, operation object based on rectangle And b ', calculated according to formula (2) and obtain q ';
Q'=(N-2a'+b')/(b'+K'*M) (2)
Downward rounding operation is carried out to the q ', determining can placement operation object on the length direction of rectangle Number q.
Such as, it is 2.6 to be calculated according to formula (2) and obtain q ', and carrying out downward rounding operation to q ' obtains 2, so that it is determined that on the length direction of the rectangle can placement operation object number q be equal to 2.
It should be noted that the 3rd spacing a ' and the 4th spacing b ' can be set in advance, and the present invention is right Magnitude relationship between 3rd spacing a ' and the 4th spacing b ' is not construed as limiting, such as, the 3rd spacing a ' Can be 10.8px, the 4th spacing b ' can also be 10.8px, and the embodiment of the present invention is to the 3rd spacing a ' It is not construed as limiting with the 4th spacing b ' concrete numerical value.
Further, due to having carried out downward rounding operation to the q ' calculated, the length of the rectangle is obtained Spend direction on can placement operation object number q, therefore, if true according to length spacing parameter before The display location of operation object, may result in the behaviour placed on the rectangle length direction in the fixed rectangle Make object uneven, therefore, it can be updated the 4th interval b ', that is to say, to the rectangle The distance between two operation objects on length direction are updated, further to improve user's body Test.
Wherein, can be to the 4th interval b ' operations being updated:By the b ' in above-mentioned formula (2) It is used as unknown number, default size M, the actual zoom factor of length N, operation object based on rectangle K ', the 3rd spacing a ', and on the length direction of the rectangle can placement operation object number q, root The 4th interval b ' is redefined according to formula (2), the 4th interval b ' is updated.
Step 205:Default size M*M' based on operation object, the K ', width interval parameter, Length spacing parameter, and the p and q, determine p*q operation pair in the operation object rest area The display location of elephant.
Wherein, in the operation object rest area p*q operation object display location, this can be referred to The displaing coordinate of the center of p*q operation object, if with where the width and length of the rectangle Reference axis is set up in position, then the displaing coordinate of the center of the p*q operation object is, the p*q Displaing coordinate of the center of individual operation object on the width of rectangle, and this p*q behaviour Make displaing coordinate of the center of object on the length direction of rectangle.
Specifically, determining that the center of the p*q operation object is aobvious on the width of rectangle Showing the operation of coordinate can be:Acquiescence width M', actual zoom factor K ' based on operation object, First spacing a and the second spacing b, and on the width of the rectangle can placement operation object Number p, is calculated according to formula (3), determines the center of p*q operation object in the rectangle Displaing coordinate X on the width of rectanglei, the 1≤i≤p;
Xi=a+ (i-1) * b+ (i-0.5) * K'*M'(3)
Specifically, determining that the center of the p*q operation object is aobvious on the length direction of rectangle Showing the operation of coordinate can be:Default-length M, actual zoom factor K ' based on operation object, On 3rd spacing a ' and the 4th spacing b ', and the length direction of the rectangle can placement operation object Number q, is calculated according to formula (4), determines the center of p*q operation object in the rectangle Displaing coordinate Y on the length direction of rectanglej, the 1≤j≤q;
Yj=a'+ (j-1) * b'+ (j-0.5) * K'*M (4).
Such as, it is determined that this document folder operation object rest area as shown in Figure 3 a, with the rectangle The lower right corner is that the origin of coordinates sets up coordinate system, using the width of the rectangle as transverse axis, by the rectangle Length direction as the longitudinal axis, wherein, the first spacing a, the second spacing b, the 3rd spacing a ' and Four spacing b ' are as shown in Figure 3 a.
Afterwards, can be with when showing the p*q operation object in the operation object rest area of this document According to the displaing coordinate X of the p*q operation objectiAnd YjIt has been shown that, that is to say, this p*q behaviour The displaing coordinate for making object is (Xi, Yj), wherein, the 1≤i≤p, the 1≤j≤q, from And it is bigger than normal, less than normal or the problems such as beyond file border to solve operation object in file, improve The aesthetic property of file.
Such as, p=2, q=2, so that p*q=4, the displaing coordinate X calculated according to formula (3)iPoint Wei not x1, x2, the displaing coordinate Y calculated according to formula (4)jRespectively y1, y2.Afterwards, such as , can when showing the p*q operation object in the operation object rest area of this document shown in Fig. 3 b With according to the displaing coordinate of 4 operation objects (x1, y1), (x2, y1), (x1, y2), (x2, y2) is shown.
File processing method provided in an embodiment of the present invention, by determining that the operation object of file is put Area is put, the operation object rest area is located at the inside of file institute overlay area, and the operation object is put Area is put for rectangle N*N', the acquiescence width M' of width N', operation object based on rectangle, minimum contracting Put COEFFICIENT K and width interval parameter, determine on the width of rectangle can placement operation object number P, and the width N' based on rectangle, operation object acquiescence width M', width interval parameter and institute P is stated, it is determined that stating the actual zoom factor K ' of operation object, the length N based on rectangle, operation object Default-length M, the K ' and length spacing parameter, determine to place on the length direction of rectangle The number q of operation object, afterwards, default size M*M', the K ' based on operation object, width Spacing parameter, length spacing parameter, and the p and q are spent, p*q in operation object rest area is determined The display location of individual operation object, thus solve operation object in file it is bigger than normal, less than normal or The problems such as beyond file border, improve the aesthetic property of file.
Fig. 4 is a kind of file processing unit provided in an embodiment of the present invention, applied in terminal, is joined See Fig. 4, this document folder processing unit includes:
First determining unit 301, the operation object rest area for determining file, the operation pair As rest area be located at file institute overlay area inside, wherein, the operation object rest area For rectangle N*N';
Second determining unit 302, the acquiescence for the width N' based on the rectangle, operation object is wide M', minimum zoom COEFFICIENT K and width interval parameter are spent, determining can on the width of the rectangle The number p of placement operation object;
3rd determining unit 303, for the width N' based on the rectangle, the operation object it is silent Recognize width M', the width interval parameter, and the p, determine the actual contracting of the operation object Put COEFFICIENT K ';
4th determining unit 304, for the length N based on the rectangle, the operation object it is silent Recognize length M, the K ' and length spacing parameter, determine to place on the length direction of the rectangle The number q of operation object;
5th determining unit 305, it is described for the default size M*M' based on the operation object K ', the width interval parameter, the length spacing parameter, and the p and q, it is determined that described The display location of the p*q operation objects in operation object rest area.
Wherein, operation object rest area is used to place the operation object that file includes, such as, this article Part presss from both sides the icon or image for placing application program, then the operation object can be application program The icon of icon or image, the operation object rest area is that this document is clipped in when being not switched on for placing Preview graph target area.
In addition, the operation object rest area is rectangle N*N', refer to that the operation object rest area can be with It is rectangle or square, it is preferred that when the rectangle is in this document folder region When rectangle is inscribed in maximum, the area of the rectangle is maximum, that is to say, the operation object rest area can be put The region for the operation object put is maximum.
Furthermore, the display location of p*q operation object, can refer to this in the operation object rest area The displaing coordinate of the center of p*q operation object, if with where the width and length of the rectangle Reference axis is set up in position, then the displaing coordinate of the center of the p*q operation object is, the p*q Displaing coordinate of the center of individual operation object on the width of rectangle, and this p*q behaviour Make displaing coordinate of the center of object on the length direction of rectangle.
It should be noted that minimum zoom COEFFICIENT K is the minimum multiple zoomed in and out to operation object, To ensure that operation object is not reduced arbitrarily, so that visual effect is influenceed, wherein, K can be set in advance Put, and 0 < K≤1, K can be the numerical value obtained by test of many times, such as, K can be 0.19 This is not made to have limited Deng, the embodiment of the present invention.
Optionally, the width interval parameter is including the first spacing a and the second spacing b, a The distance between operation object and the widthwise edges close to the widthwise edges of the rectangle, the b For the distance between operation object on two widths.
It should be noted that the first spacing a and the second spacing b can be set in advance, and the present invention is right Magnitude relationship between first spacing a and the second spacing b is not construed as limiting, such as, and the first spacing a can Think that 4.8px, the second spacing b can also be 4.8px, the present invention is to the first spacing a and the second spacing B concrete numerical value is not construed as limiting.
Optionally, second determining unit specifically for:
The default size M' of width N', the operation object based on the rectangle, the minimum contracting COEFFICIENT K, the first spacing a and the second spacing b are put, is calculated according to formula (5) and obtains p ';
P'=(N'-2a+b)/(b+K*M') (5)
Downward rounding operation is carried out to the p ', determining can placement operation on the width of the rectangle The number p of object.
Optionally, the length spacing parameter includes the 3rd spacing a ' and the 4th spacing b ', the described 3rd Spacing a ' be close to the rectangle length edge operation object and the length edge between away from From the 4th spacing b ' is the distance between operation object on two length directions.
It should be noted that the 3rd spacing a ' and the 4th spacing b ' can be set in advance, and the present invention is right Magnitude relationship between 3rd spacing a ' and the 4th spacing b ' is not construed as limiting, such as, the 3rd spacing a ' Can be 10.8px, the 4th spacing b ' can also be 10.8px, and the present invention is to the 3rd spacing a ' and the 4th Spacing b ' concrete numerical value is not construed as limiting.
Optionally, the 4th determining unit specifically for:
The default size M of length N, the operation object based on the rectangle, the actual scaling COEFFICIENT K ', the 3rd spacing a ' and the 4th spacing b ', according to formula (6) calculate obtain q ';
Q'=(N-2a'+b')/(b'+K'*M) (6)
Downward rounding operation is carried out to the q ', determining can placement operation on the length direction of the rectangle The number q of object.
Optionally, referring to Fig. 5, the device also includes:
Updating block 306, for the length N based on the rectangle, the acquiescence chi of the operation object Very little M, the actual zoom factor K ', the 3rd spacing a ', and the rectangle length side Upwards can placement operation object number q, to the described 4th interval b ' be updated.
Optionally, the 5th determining unit specifically for:
Acquiescence width M' based on the operation object, the actual zoom factor K ', described first Spacing a and the second spacing b, and on the width of the rectangle can placement operation object number P, width of the center in the rectangle of the p*q operation object is determined according to formula (7) Displaing coordinate X on directioni, the 1≤i≤p;
Xi=a+ (i-1) * b+ (i-0.5) * K'*M'(7)
Default-length M based on the operation object, the actual zoom factor K ', the described 3rd On spacing a ' and the 4th spacing b ', and the length direction of the rectangle can placement operation object number Q, length of the center in the rectangle of the p*q operation object is determined according to formula (8) Displaing coordinate Y on directionj, the 1≤j≤q;
Yj=a'+ (j-1) * b'+ (j-0.5) * K'*M (8).
Afterwards, can be with when showing the p*q operation object in the operation object rest area of this document According to the displaing coordinate X of the p*q operation objectiAnd YjIt has been shown that, that is to say, this p*q behaviour The displaing coordinate for making object is (Xi, Yj), wherein, the 1≤i≤p, the 1≤j≤q, from And it is bigger than normal, less than normal or the problems such as beyond file border to solve operation object in file, improve The aesthetic property of file.
The file processing unit that embodiments of the invention are provided, by the operation object for determining file Rest area, the operation object rest area is located at the inside of file institute overlay area, and the operation object Rest area is rectangle N*N', the acquiescence width M' of width N', operation object based on rectangle, minimum Zoom factor K and width interval parameter, determine on the width of rectangle can placement operation object Number p, and the acquiescence width M' of the width N' based on rectangle, operation object, width interval parameter and The p, it is determined that the actual zoom factor K ' of operation object is stated, the length N based on rectangle, operation pair Default-length M, the K ' and the length spacing parameter of elephant, determine to put on the length direction of rectangle The number q of operation object is put, afterwards, default size M*M', the K ' based on operation object, Width interval parameter, length spacing parameter, and the p and q, are determined in operation object rest area The display location of p*q operation object, thus solve operation object in file it is bigger than normal, less than normal or The problems such as person exceeds file border, improve the aesthetic property of file.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than It is limited;Although the present invention is described in detail with reference to the foregoing embodiments, this area Those of ordinary skill should be understood:It still can be to the technical scheme described in foregoing embodiments Modify, or equivalent substitution is carried out to which part technical characteristic;And these are changed or replaced Change, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and Scope.

Claims (10)

1. a kind of file processing method, it is characterised in that methods described includes:
The operation object rest area of file is determined, the operation object rest area is located at the file institute The inside of overlay area, wherein, the operation object rest area is rectangle N*N';
The acquiescence width M' of width N', operation object based on the rectangle, minimum zoom COEFFICIENT K and Width interval parameter, determine on the width of the rectangle can placement operation object number p;
The acquiescence width M' of width N', the operation object based on the rectangle, the width interval Parameter, and the p, determine the actual zoom factor K ' of the operation object;
Default-length M, the K ' and the length of length N, the operation object based on the rectangle Spacing parameter, determine on the length direction of the rectangle can placement operation object number q;
Default size M*M', the K ' based on the operation object, the width interval parameter, institute Length spacing parameter, and the p and q are stated, is determined in the operation object rest area described in p*q The display location of operation object.
2. according to the method described in claim 1, it is characterised in that the width interval parameter includes First spacing a and the second spacing b, a be the widthwise edges close to the rectangle operation object with The distance between described widthwise edges, the b is between the operation object on two widths Distance.
3. method according to claim 2, it is characterised in that the width based on the rectangle N', acquiescence width M', minimum zoom COEFFICIENT K and the width interval parameter of operation object are spent, institute is determined State on the width of rectangle can placement operation object number p, including:
The default size M' of width N', the operation object based on the rectangle, the minimum zoom COEFFICIENT K, a and b, calculate according to formula (1) and obtain p ';
P'=(N'-2a+b)/(b+K*M') (1)
Downward rounding operation is carried out to the p ', determining can placement operation pair on the width of the rectangle The number p of elephant.
4. according to the method described in claim 1, it is characterised in that the length spacing parameter includes 3rd spacing a ' and the 4th spacing b ', a ' be close to the rectangle length edge operation object with The distance between described length edge, the b ' is between the operation object on two length directions Distance.
5. method according to claim 4, it is characterised in that the length based on the rectangle N, the default size M of the operation object, the K ' and length spacing parameter are spent, the square is determined On the length direction of shape can placement operation object number q, including:
Default size M, the K ', a ' of length N, the operation object based on the rectangle And b ', calculated according to formula (2) and obtain q ';
Q'=(N-2a'+b')/(b'+K'*M) (2)
Downward rounding operation is carried out to the q ', determining can placement operation pair on the length direction of the rectangle The number q of elephant.
6. method according to claim 5, it is characterised in that the length based on the rectangle N, the default-length M of the operation object, the actual zoom factor K ', length spacing parameter are spent, Determine on the length direction of the rectangle can after the number q of placement operation object, in addition to:
The default size M of length N, the operation object based on the rectangle, the actual scaling system Number K ', the 3rd spacing a ', and the q, are updated to the described 4th interval b '.
7. method according to claim 6, it is characterised in that described to be based on the operation object Default size M*M', the K ', the width interval parameter, the length spacing parameter, and The p and q, determine the display location of the p*q operation objects in the operation object rest area, Including:
Based on the M', the K ', a and b, and the p, determined according to formula (3) Displaing coordinate X of the center of the p*q operation object on the width of the rectanglei, 1 ≤ i≤the p;
Xi=a+ (i-1) * b+ (i-0.5) * K'*M'(3)
Based on the M, the K ', a ' and b ', and the q, determined according to formula (4) Displaing coordinate Y of the center of the p*q operation object on the length direction of the rectanglej, 1 ≤ j≤the q;
Yj=a'+ (j-1) * b'+ (j-0.5) * K'*M (4).
8. a kind of file processing unit, it is characterised in that described device includes:
First determining unit, the operation object rest area for determining file, the operation object is placed Area is located at the inside of file institute overlay area, wherein, the operation object rest area is rectangle N*N';
Second determining unit, for the width N' based on the rectangle, the acquiescence width M' of operation object, Minimum zoom COEFFICIENT K and width interval parameter, determining can placement operation on the width of the rectangle The number p of object;
3rd determining unit, for the width N' based on the rectangle, the acquiescence width of the operation object M', the width interval parameter, and the p, determine the actual zoom factor K ' of the operation object;
4th determining unit, for the length N based on the rectangle, the default-length of the operation object M, the K ' and length spacing parameter, determining on the length direction of the rectangle can placement operation object Number q;
5th determining unit, for default size M*M', the K ', institute based on the operation object Width interval parameter, the length spacing parameter, and the p and q are stated, the operation object is determined The display location of the p*q operation objects in rest area.
9. device according to claim 8, it is characterised in that the width interval parameter includes First spacing a and the second spacing b, a be the widthwise edges close to the rectangle operation object with The distance between described widthwise edges, the b is between the operation object on two widths Distance.
10. device according to claim 9, it is characterised in that the length spacing parameter includes 3rd spacing a ' and the 4th spacing b ', a ' be close to the rectangle length edge operation object with The distance between described length edge, the b ' is between the operation object on two length directions Distance.
CN201610031387.6A 2016-01-18 2016-01-18 Folder processing method and device Active CN106980622B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610031387.6A CN106980622B (en) 2016-01-18 2016-01-18 Folder processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610031387.6A CN106980622B (en) 2016-01-18 2016-01-18 Folder processing method and device

Publications (2)

Publication Number Publication Date
CN106980622A true CN106980622A (en) 2017-07-25
CN106980622B CN106980622B (en) 2020-08-25

Family

ID=59340231

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610031387.6A Active CN106980622B (en) 2016-01-18 2016-01-18 Folder processing method and device

Country Status (1)

Country Link
CN (1) CN106980622B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2346605A1 (en) * 2000-06-23 2001-12-23 International Business Machines Corporation Automatically scaling icons to fit a display area within a data processing system
CN1746843A (en) * 2004-09-08 2006-03-15 英业达股份有限公司 Window and icon set system and method
CN103218195A (en) * 2013-04-10 2013-07-24 广东欧珀移动通信有限公司 Method and device for display adjustment of application program
KR20140019914A (en) * 2012-08-06 2014-02-18 경북대학교 산학협력단 Electronics apparatus and method for controlling display of the same
CN103927143A (en) * 2014-04-04 2014-07-16 福建星网视易信息系统有限公司 Method and device for adaptively adjusting interface layout on basis of screen resolution
CN103941958A (en) * 2013-01-23 2014-07-23 腾讯科技(深圳)有限公司 Desktop management method and terminal device
CN104216699A (en) * 2013-08-07 2014-12-17 侯金涛 Icon structure based on HTML5 and display method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2346605A1 (en) * 2000-06-23 2001-12-23 International Business Machines Corporation Automatically scaling icons to fit a display area within a data processing system
CN1746843A (en) * 2004-09-08 2006-03-15 英业达股份有限公司 Window and icon set system and method
KR20140019914A (en) * 2012-08-06 2014-02-18 경북대학교 산학협력단 Electronics apparatus and method for controlling display of the same
CN103941958A (en) * 2013-01-23 2014-07-23 腾讯科技(深圳)有限公司 Desktop management method and terminal device
CN103218195A (en) * 2013-04-10 2013-07-24 广东欧珀移动通信有限公司 Method and device for display adjustment of application program
CN104216699A (en) * 2013-08-07 2014-12-17 侯金涛 Icon structure based on HTML5 and display method and system
CN103927143A (en) * 2014-04-04 2014-07-16 福建星网视易信息系统有限公司 Method and device for adaptively adjusting interface layout on basis of screen resolution

Also Published As

Publication number Publication date
CN106980622B (en) 2020-08-25

Similar Documents

Publication Publication Date Title
EP2613238A2 (en) Method and apparatus for managing icon in portable terminal
CN105068723B (en) Information processing method and electronic equipment
US20140152597A1 (en) Apparatus and method of managing a plurality of objects displayed on touch screen
US10855911B2 (en) Method for setting image capture conditions and electronic device performing the same
CN105264870B (en) It is inputted using the user of hovering input
CN102402363B (en) Image processing method and system of handheld device
WO2017185459A1 (en) Method and apparatus for moving icons
EP2615536A2 (en) Apparatus and method for zooming touch screen in electronic device
CN109032898A (en) A kind of display methods of icon, device, equipment and storage medium
CN107407945A (en) From the system and method for screen locking capture images
EP2738658A2 (en) Terminal and method for operating the same
CN104423796B (en) User interface based on equipment situation
WO2017032078A1 (en) Interface control method and mobile terminal
KR20140089224A (en) Device and method for executing operation based on touch-input
CN105426878B (en) Face cluster method and device
EP2897354B1 (en) Method for setting image capture conditions and electronic device performing the same
EP2811391A1 (en) Method for transforming an object based on motion, gestures or breath input and electronic device thereof
WO2019129039A1 (en) Application icon management method and related device
WO2023061280A1 (en) Application program display method and apparatus, and electronic device
CN106354404A (en) Page operation method and device
CN110286840A (en) Can touch control device current scale control method, device and relevant device
TWI442262B (en) Electronic apparatus and method for controlling the same
CN104598121A (en) Picture zooming method and device
KR102113509B1 (en) Method for controlling a virtual keypad and an electronic device thereof
US20140232727A1 (en) Method for generating writing data and an electronic device thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.