CN102314700B - A kind of method and system controlling display mode of client user - Google Patents

A kind of method and system controlling display mode of client user Download PDF

Info

Publication number
CN102314700B
CN102314700B CN201010228014.0A CN201010228014A CN102314700B CN 102314700 B CN102314700 B CN 102314700B CN 201010228014 A CN201010228014 A CN 201010228014A CN 102314700 B CN102314700 B CN 102314700B
Authority
CN
China
Prior art keywords
card control
animation
instantiation
pattern
instantiation class
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201010228014.0A
Other languages
Chinese (zh)
Other versions
CN102314700A (en
Inventor
任旻
张强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201010228014.0A priority Critical patent/CN102314700B/en
Publication of CN102314700A publication Critical patent/CN102314700A/en
Application granted granted Critical
Publication of CN102314700B publication Critical patent/CN102314700B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a kind of method controlling display mode of client user, the method includes: the instantiation class object of making of cartoon class, and the instantiation class object created is added an animation queue;By animation queue with the time for sequence, carry out the instantiation class object created and animated type attribute refreshing the tracing point obtaining the operation of card control, control dynamically representing of display mode of client user according to the tracing point obtained。The invention also discloses one one kinds of systems controlling display mode of client user, this system includes control unit, for by animation queue with the time for sequence, carry out refreshing to the instantiation class object created and animated type attribute and obtain the tracing point that card control runs, control dynamically representing of display mode of client user according to the tracing point obtained。Adopt the method and system of the present invention, the ease for use of instant messaging (IM) instrument can be strengthened。

Description

A kind of method and system controlling display mode of client user
Technical field
The present invention relates to control technology, particularly relate to a kind of method and system controlling display mode of client user。
Background technology
Instant messaging (IM) instrument, as the client interacted between Internet user, develops into today, is accepted by most user, and becomes the indispensable technological means interacted between user by the Internet。Owing to the introducing of IM instrument enriches the life of user greatly, in daily communication, all many-sides such as work communication have provided the user facility, not only in the amusement and recreation that user is daily, and be similarly obtained in the work of user and use widely, therefore the aspects such as the ease for use of IM instrument, stability, safety are had higher requirement by user。
Development along with technology, progressively occur in that becoming increasingly popular of the natural user interfaces such as Surface, iPhone (NUI) product at present, Surface is a kind of computer equipment supporting multiple point touching that Microsoft releases, and iPhoneiPhone is a kind of mobile phone supporting multiple point touching that Apple releases。NUI is the improvement to terminal display mode, thus the development of the IM instrument as client is proposed new demand, it is: need to be also carried out the display pattern of client user improving, development with adaptive technique, there is provided multifarious display pattern for user, to strengthen the ease for use of IM instrument。But, for this new demand, not yet there is effective solution at present。
Summary of the invention
In view of this, a kind of method and system controlling display mode of client user of offer are provided, the ease for use of IM instrument can be strengthened。
For reaching above-mentioned purpose, the technical scheme is that and be achieved in that:
A kind of method controlling display mode of client user, the method includes:
The instantiation class object of making of cartoon class, adds an animation queue by the instantiation class object created;
By described animation queue with the time for sequence, carry out the instantiation class object created and animated type attribute refreshing the tracing point obtaining the operation of card control, control dynamically representing of display mode of client user according to the tracing point obtained。
Wherein, the instantiation class object created is when being specially three instantiation class objects, the vertical coordinate direction flying into position (CenterX) and card control in the abscissa direction flying into angle (Angle), card control of described three instantiation class objects control card control respectively fly into position (CenterY);
Before described three instantiation class objects are added described animation queue, the method also includes: to each animated type attribute assignment in described three instantiation class objects;
After assignment, the method also includes: play the described card control pointed to corresponding to described three instantiation class objects in described animation queue。
Wherein, corresponding three the instantiation class objects of each card control;Described animation queue includes three instantiation class objects that all card controls are corresponding;Described broadcasting specifically includes: travels through the corresponding card control pointed to of all instance objects in described animation queue and realizes described broadcasting。
Wherein, before creating instantiation class object, the method also includes: judge whether to adopt the animation of the card control preset to fly into pattern described card control according to the quantity of the current number of pages of container and each page card control;Wherein, described card control is placed in described container。
Wherein, the animation of described card control flies into pattern and includes: the deceleration of card control flies into pattern, the orienting station of card control flies into pattern, the random site of card control flies into pattern, card control flies into combination at least one in not overlap scheme;
The animation of described card control flies into pattern: when the random site of described card control flies into pattern and described card control flies into the combination of not overlap scheme, the method also includes: arrange the arrangement form of card control;Carry out coordinate transform, and the ordinate transform based on described container is become the coordinate system based on described arrangement form;Obtain the end position of described card control, finally will be located in the described card control in described container and one be placed in described arrangement form one by one。
Wherein, the form columns Column=container width/MaxWidth of described arrangement form;The form line number Row=container height/MaxWidth of described arrangement form;Wherein, described MaxWidth is the Breadth Maximum of described card control;
Described card control, before described coordinate transform, adopts the mode of Pagination Display in the above-described container, and the quantity of the card control that each page shows is less than Column × Row。
Wherein, the end position of described card control adopts below equation to calculate acquisition:
CenterX=R × MaxWidth;
CenterY=C × MaxWidth;
Wherein, R is the random integer obtained in 0~Row;C is the random integer obtained in 0~Column。
A kind of system controlling display mode of client user, this system includes: control unit, for the instantiation class object in making of cartoon class, when the instantiation class object created is added an animation queue, by described animation queue with the time for sequence, carry out refreshing to the instantiation class object created and animated type attribute and obtain the tracing point that card control runs, control dynamically representing of display mode of client user according to the tracing point obtained。
Wherein, described control unit, farther include creation module and playing module;Wherein,
Creation module, is used for creating three instantiation class objects;The CenterY of described three instantiation class objects Angle of control card control respectively, the CenterX of card control and card control;
Described playing module, for, after each animated type attribute assignment in described three instantiation class objects, described three instantiation class objects being added animation queue;Play the described card control pointed to corresponding to described three instantiation class objects in described animation queue。
Wherein, described control unit, further comprise judge module, for judging whether to adopt the animation of the card control preset to fly into pattern described card control according to the quantity of the current number of pages of container and each page card control;Wherein, described card control is placed in described container。The instantiation class object of making of cartoon class of the present invention, adds an animation queue by the instantiation class object created;By animation queue with the time for sequence, carry out the instantiation class object created and animated type attribute refreshing the tracing point obtaining the operation of card control, control dynamically representing of display mode of client user according to the tracing point obtained。
Adopt the present invention, it is achieved that the display pattern controlling client user represents by diversified card control form, it is thus possible to provide multifarious display pattern for user, to strengthen the ease for use of IM instrument。And, the present invention is different from the existing card control technology for revealing scheme based on frame, the present invention is based on the card control technology for revealing scheme of time, owing to prior art is based on frame, therefore, the quality of animation in synchronization effect need to depend on the performance of computer system own hardware, such as when its own mechanical performance of computer display card is bad, display has delay, causes the animation in synchronization weak effect of card control;And the present invention is based on the time, therefore, computer system own hardware performance quality can't have influence on card control animation in synchronization effect;The present invention can also force high frame per second, reduces the consumption to performance。
Accompanying drawing explanation
Fig. 1 is the schematic diagram of card control of the present invention;
Fig. 2 is the schematic diagram of card control one example of the present invention;
Fig. 3 is the schematic diagram of card another example of control of the present invention;
Fig. 4 be the optimum embodiment of the inventive method one realize schematic flow sheet。
Detailed description of the invention
The basic thought of the present invention is: the instantiation class object of making of cartoon class, and the instantiation class object created is added an animation queue;By animation queue with the time for sequence, carry out the instantiation class object created and animated type attribute refreshing the tracing point obtaining the operation of card control, control dynamically representing of display mode of client user according to the tracing point obtained。
For making the object, technical solutions and advantages of the present invention clearly understand, by the following examples also with reference to accompanying drawing, the present invention is described in more detail。
The solution of the present invention achieves the display pattern controlling client user and represents by diversified card control form。Owing to utilizing the display pattern that card control form represents client user to be a kind of design intending materialization, therefore, this design by intending materialization obtains diversified display pattern and selects for user, can be greatly promoted the experience sense of user。When controlling, it is possible to adopting different Dynamic Announce patterns to be shown, Dynamic Announce pattern is: the animation of card control flies into pattern。The animation of card control flies into pattern and may include that the deceleration of card control flies into pattern, the orienting station of card control flies into pattern, the random site of card control flies into pattern etc. further。In a word: adopt the present invention, provide multifarious display pattern for user with the design of card control form this plan materialization, enhance the ease for use of IM instrument。
A kind of method controlling display mode of client user, the method specifically includes that
One, the instantiation class object of making of cartoon class, adds an animation queue by the instantiation class object created。
Here, animated type can be DoubleAnimation class。
Two, by animation queue with the time for sequence, carry out the instantiation class object created and animated type attribute refreshing the tracing point obtaining the operation of card control, control dynamically representing of display mode of client user according to the tracing point obtained。Here, described by animation queue with the time for sequence, carry out refreshing to the instantiation class object created and animated type attribute and obtain the tracing point that card control runs, refer to: based on the time, organize each instantiation class object in animation queue, and instantiation class object and animated type attribute modified based on the time renewal time, refresh and obtain the tracing point that card control runs。
Here, the instantiation class object of establishment may be used for realizing the animation of card control and flies into pattern。The instantiation class object created is when being specially three instantiation class objects, the vertical coordinate direction flying into position (CenterX) and card control in the abscissa direction flying into angle (Angle), card control of these three instantiation class object control card control respectively fly into position (CenterY)。After each animated type attribute assignment in three instantiation class objects, three instantiation class objects are added animation queue;The card control pointed to corresponding to three instantiation class objects in playing animation queue。
Here, corresponding three the instantiation class objects of each card control;Animation queue includes three instantiation class objects that all card controls are corresponding;Broadcasting specifically includes: in traversal animation queue, the corresponding card control pointed to of all instance objects realizes playing。
Here, before creating three instantiation class objects, the method also includes: judge whether to adopt the animation of the card control preset to fly into pattern card control according to the quantity of the current number of pages of container and each page card control;Wherein, card control is placed in container。
Here, the animation of card control flies into pattern and includes: the deceleration of card control flies into pattern, the orienting station of card control flies into pattern, the random site of card control flies into pattern, card control flies into combination at least one in not overlap scheme。
The animation of card control flies into pattern: when the random site of card control flies into pattern and card control flies into the combination of not overlap scheme, the method also includes: arrange the arrangement form of card control;Carry out coordinate transform, and the ordinate transform based on container is become the coordinate system based on arrangement form;Obtain the end position of card control, finally will be located in the card control in container and be placed in arrangement form one by one, that is, originally each card control being arranged in container is respectively implanted in arrangement form, adopt this integrated mode, can ensure that in each grid in arrangement form and only include a card control, so that non-overlapping copies between card control。
Here, the form columns Column=container width/MaxWidth of form is arranged;The form line number Row=container height/MaxWidth of arrangement form;Wherein, MaxWidth is the Breadth Maximum of card control;
Card control, before described coordinate transform, adopts the mode of Pagination Display in a reservoir, and the quantity of the card control that each page shows is less than Column × Row。
It need to be noted that: making between card control that non-overlapping copies is except coordinate transform, key also resides in the calculation of the end position of card control。The computing formula that the present invention adopts is:
CenterX=R × MaxWidth;
CenterY=C × MaxWidth;
Wherein, R is the random integer obtained in 0~Row;C is the random individual one by one integer obtained in 0~Column。
Hereinafter the present invention is specifically addressed。
If during 1 application IM instrument, above-mentioned client user is specially IM contact person, for the card control of IM contact person, the present invention utilizes self-defining card control to realize IM contact person to show representing of pattern。Card control can show the user profile such as the head portrait of IM contact person, the pet name of display IM contact person as required。The schematic diagram of card control is as shown in Figure 1, it is possible to including user's head portrait and user profile, the example of card control is as shown in Figures 2 and 3。
The layout of each card control can be customized by template。Utilizing template can also change Background From Layer and texture mask figure layer for card control, the IM contact person to realize different texture shows pattern。
Card control has width (Width), highly (Height), card control fly into angle (Angle), the abscissa direction of card control fly into position (CenterX), the vertical coordinate direction of card control fly into position (CenterY) these attributes。Wherein, when card control is arranged in container, Angle can also be called the anglec of rotation at counterpart card control center, and CenterX can also be called card control center abscissa in a reservoir, and CenterY can also be called card control center vertical coordinate in a reservoir。
2, realize the animation of card control for above-mentioned establishment and fly into three instantiation class objects of pattern, owing to the dynamic-control system of card control to be included movement and the rotation of card control location, accordingly, it would be desirable to revise these attributes of Angle, CenterX and CenterY continuously。These attributes are all Double types, and by creating DoubleAnimation class, the attribute that can control Double type changes。Thus for these attributes, three the instantiation class objects being respectively created for each card control are specially DoubleAnimation class object。Three DoubleAnimation class objects are as follows:
AngleDoubleAnimation: the animation for being responsible for card control Angle attribute controls;
CenterXAngleDoubleAnimation: the animation for being responsible for card control CenterX attribute controls;
CenterYAngleDoubleAnimation: the animation for being responsible for card control CenterY attribute controls。
These three DoubleAnimation class object generates after DoubleAnimation class instantiation。DoubleAnimation class is illustrated, and DoubleAnimation has with properties:
Target: the object of control;
TargetProperty: the Double attribute of control object;
From: initial value;
To: end value;
Duration: animation persistent period;
Deceleration: deceleration。
All of DoubleAnimation object is all by an animation control of queue。Animation queue has a timer, in the timeslice of each timer, all DoubleAnimation objects in traversal queue, the numerical value according to From, To, Duration attribute, the value of the TargetProperty attribute of amendment Target object。
Deceleration attribute is used to create at the animation stopping front reduction gear。Deceleration specifies the percentage ratio of the Duration of shared timeline efflux decelerates to the process of zero from its maximum rate。
3, fly into pattern for the above-mentioned animation arranging card control, when container shows IM contact person time, represent that the card control of IM contact person flies in container from container surrounding。The original position of each card control, start angle, end position, angle at the end and the speed flown into are different, and when card control is close to end position, card control travelling speed and angular velocity of rotation gradually become 0, present the effect of friction eceleration。Set forth individually below:
A) initial position of card control is set: the initial position of card control was at 4 weeks of the outside of container。For every card control:
I. obtaining the random number between 1-4,1,2,3,4 represents the left side of container, upside, right side and downside respectively;
Ii. if left side, then relative and the container upper left corner the coordinate of the initial position of card control is (-100, container height/2);
Iii. if upside, then relative and the container upper left corner the coordinate of the initial position of card control is (container width/2 ,-100);
Iv. if right side, then relative and the container upper left corner the coordinate of the initial position of card control is (container width+100, container height/2);
V. if upside, then relative and the container upper left corner the coordinate of the initial position of card control is (container width/2, container height+100)。
B) arranging the end position of card control, the end position of card control is the random site of internal tank。
C) initial angle of card control is set
The initial angle of card control is the random number between 360-720。
D) angle at the end of card control is set
The angle at the end of card control is the random number between 0-360。So the anglec of rotation of every card control is between 0-720。
E) speed of card control is set
The Duration attribute of AngleDoubleAnimation, CenterXAngleDoubleAnimation and the CenterYAngleDoubleAnimation object of each card control is set to 0.5 second。Due to the displacement of each card control, rotational angle is all different, so the speed of the speed that flies into of each card control and rotation is different。
F) deceleration mode of card control is set
The Decelaration of AngleDoubleAnimation, CenterXAngleDoubleAnimation and the CenterYAngleDoubleAnimation object of each card control is set to 0.9 second。This represented within the time period of 0 to 0.9 × Duration, and card control moves with uniform velocity, and does retarded motion within the time of 0.9 × Duration to Duration。So can show card control after flying under the effect of frictional force, by moving to static plan materialization effect。
4, flying into pattern for the animation of above-mentioned card control is: the random site of card control flies into pattern and card control flies into the scheme of the method during the combination of not overlap scheme, the present invention utilize card control form represent IM contact person, carry out animation when flying into Schema control, except realizing orienting station and fly into pattern, random site flies into pattern, slowing down flies into schema, to realize intending materialization effect, moreover it is possible to realize after card control flies into not overlapping mutually。Random site can be flown into pattern by the present invention and card control flies into not overlap scheme and is combined。Can cause overlapping each other between card control, hiding owing to card control flies into placement at random, be unfavorable for that user checks。Therefore, in order to avoid this situation produces, by coordinate transform and determine the end position that card control flies into, ensure between card control not overlapping, realize especially by below step:
A) Breadth Maximum of calculating card control
Owing to the angle of card control is random, so the Breadth Maximum of card control is the diagonal of card control。The Breadth Maximum MaxWidth=Sqrt (Width^2+Height^2) of card control
B) definition arrangement form
Define an arrangement form:
Form columns Column=container width/MaxWidth;
Form line number Row=container height/MaxWidth;
Definition two-dimensional array LayoutTable [Row] [Column], element type is Boolean。Initialization array makes the value of all elements be False。
C) by the arrangement in arrangement form of card control
When arranging the end position of card control, one integer R of random acquisition in 0 to Row, one integer C of random acquisition in 0 to Column。If the value of LayoutTable [R] [C] is False, then LayoutTable [R] [C]=True。And log sheet control correspondence R, C。
If the value of LayoutTable [R] [C] is True, then regain R, C, until the value of LayoutTable [R] [C] is False。
In order to ensure the display effect of IM contact person, all card controls adopt the mode of Pagination Display in a reservoir, and the card control quantity that each page shows is less than Column × Row。
D) end position of card control is obtained by below equation:
CenterX=R × MaxWidth;
CenterY=C × MaxWidth。
It need to be noted that: the end position obtaining card control further can also be in the following ways:
In order to strengthen the effect that card control flies at random, it is possible to arrange overall offset amount OffsetX and the OffsetY of arrangement form in advance。OffsetX and OffsetY be all the Double type random number between 0-MaxWidth now, the end position of card control is obtained by below equation further:
CenterX=R × MaxWidth+OffsetX;
CenterY=C × MaxWidth+OffsetY。
With a complete embodiment, the present invention is carried out citing below to set forth。
Embodiment of the method:
What be illustrated in figure 4 the optimum embodiment of the present invention one realizes schematic flow sheet, and this optimum embodiment is the random site of card control to fly into pattern and ensures the not overlapping example combined between card control。Flow process shown in Fig. 4 comprises the following steps:
Step 101, the animation arranging all card controls fly into pattern。
Step 102, calculating card control Breadth Maximum MaxWidth。
Step 103, generation two-dimensional array LayoutTable [Row] [Column] data also initialize, overall offset amount OffsetX and the OffsetY of calculated permutations form。
Step 104, initial assignment i=0。
Step 105, judge that i is whether more than the quantity of card control;If it is, proceed to execution step 113;Otherwise, step 106 is performed。
Step 106, judge whether card control i adopts the initial animation preset to fly into pattern;If it is, perform step 107;Otherwise, execution step 112 is proceeded to。
Here, it is judged that according to being that the quantity according to the current number of pages of container and each page card control judges。
Step 107, fly into pattern for the animation realizing card control i, create the instantiation class object realizing three DoubleAnimation classes that animation flies into pattern。
Here, three instantiation class objects include following content:
AngleDoubleAnimation: the animation for being responsible for card control Angle attribute controls;
CenterXAngleDoubleAnimation: the animation for being responsible for card control CenterX attribute controls;
CenterYAngleDoubleAnimation: the animation for being responsible for card control CenterY attribute controls。
Here, following steps 108~step 110 is the process that three class objects carry out assignment, in the process of the present embodiment assignment, it it is the initial position first to card control, initial angle, angle at the end carries out assignment, then again end position is carried out assignment, but the restriction not described by the present embodiment during practical application, in the process of assignment, initial position for card control, initial angle, end position, the assignment of angle at the end can carry out at random, there is not inevitable ordering relation, as long as the assignment operation to three class objects can be realized all within protection scope of the present invention。
Step 108, by assignment to three above class object, the initial position of card control, initial angle and angle at the end are set。
Step 109, in the assignment to three above class object, the Targe attribute arranged in three class objects is: card control i;TargetProperty attribute is respectively as follows: Angle, CenterX and CenterY;Duration attribute is: Duration=0.5s;Decelaration attribute is: Decelaration=0.9s。
Step 110, obtain card control effective R and C, calculate and arrange the end position of card control。
Here, use coordinate transform, the ordinate transform based on container is become the coordinate system based on arrangement form, it is therefore an objective to there will be, in order to avoid card flies at random site, the problem overlapped each other when pattern terminates。This end position calculation includes herein below:
CenterX=R × MaxWidth+OffsetX;
CenterY=C × MaxWidth+OffsetY。
After step 111, assignment terminate, the three of assignment class objects are added animation queue。
Step 112, i=i+1。
Step 113, from animation queue, obtain three class objects of corresponding card control i, according to card control i pointed by three class objects in the result playing animation queue of assignment。
A kind of system controlling display mode of client user, this system includes control unit, control unit is for the instantiation class object in making of cartoon class, when the instantiation class object created is added an animation queue, by animation queue with the time for sequence, carry out refreshing to the instantiation class object created and animated type attribute and obtain the tracing point that card control runs, control dynamically representing of display mode of client user according to the tracing point obtained。
Here, control unit farther includes creation module and playing module;Wherein, creation module is used for creating three instantiation class objects;The CenterY of three instantiation class objects Angle of control card control respectively, the CenterX of card control and card control。Playing module is for, after each animated type attribute assignment in three instantiation class objects, three instantiation class objects being added animation queue;The card control pointed to corresponding to three instantiation class objects in playing animation queue。
Here, control unit further comprises judge module, it is judged that module is for judging whether to adopt the animation of the card control preset to fly into pattern card control according to the quantity of the current number of pages of container and each page card control;Wherein, card control is placed in container。
The above, be only presently preferred embodiments of the present invention, is not intended to limit protection scope of the present invention。

Claims (8)

1. the method controlling display mode of client user, it is characterised in that the method includes:
The instantiation class object of making of cartoon class, when the instantiation class object created is specially three instantiation class objects, the vertical coordinate direction flying into position (CenterX) and card control in the abscissa direction flying into angle (Angle), card control of described three instantiation class objects control card control respectively fly into position (CenterY), to each animated type attribute assignment in described three instantiation class objects, the instantiation class object created is added an animation queue;
By described animation queue with the time for sequence, carry out refreshing to the instantiation class object created and animated type attribute and obtain the tracing point that time-based card control runs, realize card control according to the tracing point obtained and intend the design of materialization, play in described animation queue the described card control pointed to corresponding to described three instantiation class objects, present diversified user and show dynamically representing of pattern controlling client。
2. method according to claim 1, it is characterised in that corresponding three the instantiation class objects of each card control;Described animation queue includes three instantiation class objects that all card controls are corresponding;Described broadcasting specifically includes: travels through the corresponding card control pointed to of all instance objects in described animation queue and realizes described broadcasting。
3. method according to claim 1 and 2, it is characterized in that, before creating instantiation class object, the method also includes: judge whether to adopt the animation of the card control preset to fly into pattern described card control according to the quantity of the current number of pages of container and each page card control;Wherein, described card control is placed in described container。
4. method according to claim 3, it is characterized in that, the animation of described card control flies into pattern and includes: the deceleration of card control flies into pattern, the orienting station of card control flies into pattern, the random site of card control flies into pattern, card control flies into combination at least one in not overlap scheme;
The animation of described card control flies into pattern: when the random site of described card control flies into pattern and described card control flies into the combination of not overlap scheme, the method also includes: arrange the arrangement form of card control;Carry out coordinate transform, and the ordinate transform based on described container is become the coordinate system based on described arrangement form;Obtaining the end position of described card control, the described card control that finally will be located in described container is placed in described arrangement form one by one。
5. method according to claim 4, it is characterised in that the form columns Column=container width/MaxWidth of described arrangement form;The form line number Row=container height/MaxWidth of described arrangement form;Wherein, described MaxWidth is the Breadth Maximum of described card control;
Described card control, before described coordinate transform, adopts the mode of Pagination Display in the above-described container, and the quantity of the card control that each page shows is less than Column × Row。
6. method according to claim 5, it is characterised in that the end position of described card control adopts below equation to calculate and obtains:
CenterX=R × MaxWidth;
CenterY=C × MaxWidth;
Wherein, R is the random integer obtained in 0~Row;C is the random integer obtained in 0~Column。
7. the system controlling display mode of client user, it is characterized in that, this system includes: control unit, instantiation class object for making of cartoon class, when the instantiation class object created is specially three instantiation class objects, described three instantiation class objects control card control respectively fly into angle (Angle), the vertical coordinate direction flying into position (CenterX) and card control in the abscissa direction of card control fly into position (CenterY), to each animated type attribute assignment in described three instantiation class objects, when the instantiation class object created is added an animation queue, by described animation queue with the time for sequence, carry out refreshing to the instantiation class object created and animated type attribute and obtain the tracing point that time-based card control runs, realize card control according to the tracing point obtained and intend the design of materialization, play the described card control pointed to corresponding to described three instantiation class objects in described animation queue, present diversified user and show dynamically representing of pattern controlling client。
8. system according to claim 7, it is characterized in that, described control unit, further comprises judge module, for judging whether to adopt the animation of the card control preset to fly into pattern described card control according to the quantity of the current number of pages of container and each page card control;Wherein, described card control is placed in described container。
CN201010228014.0A 2010-07-07 2010-07-07 A kind of method and system controlling display mode of client user Active CN102314700B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010228014.0A CN102314700B (en) 2010-07-07 2010-07-07 A kind of method and system controlling display mode of client user

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010228014.0A CN102314700B (en) 2010-07-07 2010-07-07 A kind of method and system controlling display mode of client user

Publications (2)

Publication Number Publication Date
CN102314700A CN102314700A (en) 2012-01-11
CN102314700B true CN102314700B (en) 2016-06-22

Family

ID=45427837

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010228014.0A Active CN102314700B (en) 2010-07-07 2010-07-07 A kind of method and system controlling display mode of client user

Country Status (1)

Country Link
CN (1) CN102314700B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102890602B (en) * 2012-09-17 2015-07-08 福建星网视易信息系统有限公司 Object highlighting method and display device
CN103942050B (en) * 2014-04-15 2019-01-04 Tcl集团股份有限公司 A kind of Android platform application cartoon implementing method and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7173623B2 (en) * 2003-05-09 2007-02-06 Microsoft Corporation System supporting animation of graphical display elements through animation object instances
CN100435209C (en) * 2005-05-12 2008-11-19 逐点半导体(上海)有限公司 Display for dynamic contrast of image processing effect and display method
CN100385463C (en) * 2005-06-02 2008-04-30 腾讯科技(深圳)有限公司 Method of interaction between acting animation and position of background animation
CN101075349A (en) * 2007-06-22 2007-11-21 珠海金山软件股份有限公司 Method for demonstrating cartoon effect in SVG
CN101140516A (en) * 2007-10-22 2008-03-12 金蝶软件(中国)有限公司 Method and system for dynamic laying-out interface element

Also Published As

Publication number Publication date
CN102314700A (en) 2012-01-11

Similar Documents

Publication Publication Date Title
CN101692196B (en) Window arranging method and system
CN109865286A (en) Information processing method, device and storage medium in game
CN102331877B (en) Method and device for displaying information on touch screen
CN102314700B (en) A kind of method and system controlling display mode of client user
CN107672335A (en) Laser labeling method, laser marking machine and storage medium
JP6258023B2 (en) Enhanced dynamic haptic effect
CN108296644A (en) Laser labeling method, laser marking machine and storage medium
CN106178504A (en) Virtual objects motion control method and device
JP2022518465A (en) Movement control method of virtual target and its device, terminal and computer program
CN107728905A (en) A kind of barrage display methods, device and storage medium
CN102436381A (en) Method and device for generating interface layout
CN107678652A (en) To the method for controlling operation thereof and device of target object
CN103853445B (en) Method and equipment for controlling icons
CN111514587A (en) Information processing method, device, equipment and storage medium
CN108628455A (en) A kind of virtual husky picture method for drafting based on touch-screen gesture identification
CN101639927A (en) Method and system for adjusting virtual display device in virtual world
CN101650822B (en) Method and system for generating mutual information
CN104137026A (en) Interactive drawing recognition
CN104346046B (en) Three-dimensional artificial page turning method and system
US20110202860A1 (en) Method for displaying displacement of object on display of electronic device
CN106411712A (en) Electronic gift display method and device
CN108170498A (en) Content of pages methods of exhibiting and device
CN102270086B (en) Method and the instant communication client of contact person is represented in immediate communication tool
CN102193499B (en) efficiency control method aiming at group drawing
CN109002293A (en) A kind of UI element methods of exhibiting, device, electronic equipment and storage medium

Legal Events

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