Embodiment
Below in conjunction with drawings and Examples, the present invention is described in further detail.Be understandable that, specific embodiment described herein is only for explaining the present invention, but not limitation of the invention.It also should be noted that, for convenience of description, in accompanying drawing, only show part related to the present invention but not full content.
The simulator text display method of the embodiment of the present invention, simulator textual display device can run on the operating system platform for personal computer that the exploitation of Windows(Microsoft is installed), the operating system platform for personal computer of Mac(Apple exploitation) etc. the personal computer of operating system, in this personal computer, can comprise central processing unit, storer, switching device, power supply, clock signal maker, picture processor, combination in any in Sound Processor Unit etc., above-mentioned central processing unit, storer, switching device, power supply, clock signal maker, picture processor, combination in any in Sound Processor Unit etc. is for realizing the simulator text display method of embodiments of the invention, function in simulator textual display device.
Fig. 1 and Fig. 2 show the first embodiment of the present invention.
Fig. 1 is the process flow diagram of the simulator text display method that provides of first embodiment of the invention.Referring to Fig. 1, described simulator text display method comprises:
Step S110, receives from mobile terminal the display properties that text to be shown shows mobile terminal screen.
Described mobile terminal comprises the intelligent mobile terminal of the operating system that mobile terminal has been installed.
In the present embodiment, personal computer be connected by wire communication with described mobile terminal or radio communication connect be connected.Example, personal computer is connected and is connected by USB (universal serial bus) (USB) connecting line, bluetooth with described mobile terminal.Or, personal computer with described mobile complete cross section by being connected and being connected by the Wireless Fidelity data of a Wireless Fidelity (WiFi) access point relaying.Personal computer by and described mobile terminal between wire communication be connected or radio communication connects from described mobile terminal and receives the display properties of text to be shown.
Described text to be shown is the text that mobile-terminal simulator need to show.Described text to be shown is not limited to specific language, can be also the text being mixed to form by multilingual text.
Described display properties is the attribute that need to use when showing described text to be shown.Preferably, described display properties comprises set width, font height, word space and the line space of text to be shown.
Step S120, determines that according to the display properties of the text to be shown receiving text to be shown is in the occupied area of simulator screen display size.
Generally, between the size of mobile-terminal simulator screen and the actual size of mobile terminal display screen curtain, become certain ratio.The occupied area size that personal computer shows at simulator display screen according to the ratio-dependent text to be shown between the size of mobile-terminal simulator screen and the actual size of mobile terminal display screen curtain.Like this, when personal computer shows text on mobile-terminal simulator, can make the font size of the text showing on mobile-terminal simulator equal mobile-terminal simulator screen size with the ratio of the font size showing on mobile terminal equates with the ratio of mobile terminal display screen curtain size.
Step S130 shows described text to be shown on described simulator screen according to described occupied area size.
Determine after the occupied area size of text to be shown on simulator screen, the display properties of described text to be shown on simulator screen just determined, on described simulator screen, shown described text to be shown according to described occupied area size.
Fig. 2 is the process flow diagram of the text display that provides of first embodiment of the invention.Referring to Fig. 2, in the present embodiment, show that according to the display properties of the text to be shown receiving text to be shown comprises:
Sub-step S121, obtains the actual size of mobile terminal display screen curtain and text to be shown the first occupied area size at mobile terminal display screen curtain.
The actual size of described mobile terminal display screen curtain comprises the true altitude of described mobile terminal display screen curtain, and the developed width of described mobile terminal display screen curtain.The true altitude of described mobile terminal display screen curtain represents with the pixel count that described mobile terminal display screen curtain comprises in short transverse.Accordingly, the developed width of described mobile terminal display screen curtain represents with the pixel count that described mobile terminal display screen curtain comprises on Width.
Described the first occupied area size is included in the height that on described mobile terminal display screen curtain, each character takies, and the width that each character takies on described mobile terminal display screen curtain.The described height that each character takies on mobile terminal display screen curtain represents with the pixel count that each character takies in the short transverse of described mobile terminal display screen curtain.The corresponding described width that each character takies on mobile terminal display screen curtain represents with the pixel count that each character takies on the Width of described mobile terminal display screen curtain.
Sub-step S122, according to the actual size of mobile terminal display screen curtain, the ratio between the size of compute simulator screen and the actual size of mobile terminal display screen curtain.
When ratio between the size of compute simulator screen and the actual size of mobile terminal display screen curtain, can be by the ratio between the height of simulator screen and the true altitude of mobile terminal display screen curtain as the ratio between the size of simulator screen and the actual size of mobile terminal display screen curtain, also can use ratio between the width of simulator screen and the developed width of mobile terminal display screen curtain as the ratio between the size of simulator screen and the actual size of mobile terminal display screen curtain.
Sub-step S123, according to described ratio and the first occupied area size, determines the second occupied area size of described text to be shown on described simulator screen.
The ratio that described the second occupied area size equals between the size of simulator screen and the actual size of mobile terminal display screen curtain is multiplied by described the first occupied area size.
The present embodiment is by receiving the display properties that text to be shown shows mobile terminal screen from mobile terminal, determine that according to the display properties of the text to be shown receiving text to be shown is in the occupied area of simulator screen display size, and on described simulator screen, show described text to be shown according to described occupied area size, make the text display on mobile-terminal simulator identical with the page layout that the text display on intelligent mobile terminal takies.
Fig. 3 shows the second embodiment of the present invention.
Fig. 3 is the process flow diagram of the simulator text display method that provides of second embodiment of the invention.Described simulator text display method is taking above-described embodiment as basis, further, after showing described text to be shown according to described occupied area size on described simulator screen, also comprise and judge whether the occupied area size of text to be shown on simulator screen changes with respect to the occupied area size on mobile terminal screen, and in the time of the change in size of the occupied area of text to be shown, occupied area size after changing is stored in the display properties file of text to be shown of described simulator record, and receive the display properties that text to be shown shows mobile terminal screen from mobile terminal before, also comprise and judge the display properties file that whether stores text to be shown in described simulator, and store the display properties file of text to be shown in described simulator time, the occupied area size of storing up according to display properties document memory is at described simulator screen display text to be shown.Referring to Fig. 3, the simulator text display method that the present embodiment provides comprises:
Step S310, judges the display properties file that whether stores text to be shown in described simulator.
In the present embodiment, personal computer is recorded in the occupied area size of text in display properties file, to obtain occupied area size while again moving mobile-terminal simulator from display properties file, remove the complex operations that receives the display properties of text to be shown from mobile terminal from.Therefore, in the present embodiment, first whether personal computer need to judge in system for storing the display properties file of occupied area size.
In the present embodiment, described display properties comprises set width, font height, word space and the line space of text to be shown.Described display properties file is associated with specific display interface in application program, that is to say, for each display interface in application program, personal computer need to be stored specific display properties file.
Step S320, if store the display properties file of text to be shown in described simulator, the occupied area size of storing up according to display properties document memory is at described simulator screen display text to be shown.
In the time being useful on the display properties file of storage occupied area size in system, personal computer shows text to be shown according to the occupied area size of display properties document memory storage, and no longer need to receive from mobile terminal the display properties of text to be shown.
Step S330, if be the display properties file that stores text to be shown in simulator, receives from mobile terminal the display properties that text to be shown shows mobile terminal screen.
Step S340, determines that according to the display properties of the text to be shown receiving text to be shown is in the occupied area of simulator screen display size.
Step S350 shows described text to be shown on described simulator screen according to described occupied area size.
Step S360, judges whether the occupied area size of text to be shown on simulator screen changes with respect to the occupied area size on mobile terminal screen.
In application development or test process, personal computer likely changes the occupied area size of described text to be shown.In this case, the display properties file of the expression occupied area size of the original storage of personal computer just no longer can be illustrated in the occupied area size under new scene.Therefore, personal computer, before mobile-terminal simulator is closed, need to check whether the occupied area size of text to be shown was updated.
Example, whether the occupied area size that can identify by variation flag is set in the storage space of mobile-terminal simulator text to be shown is updated.The acquiescence value of described change flag position is 0, and in the time that the occupied area of text to be shown size is updated, mobile-terminal simulator changes to 1 by the value of described change flag position.Whether the occupied area size that like this, personal computer just can be identified by reading described variation flag described text to be shown changes.
Step S360, if the occupied area change in size of text to be shown on simulator screen is stored in the occupied area size after changing in the display properties file of text to be shown of described simulator record.
In the change in size of the occupied area of text to be shown, personal computer deposits the occupied area size after changing in described display properties file in.
The present embodiment by depositing the occupied area size after changing in described display properties file in after the change in size of the occupied area of text to be shown, and store the display properties file of text to be shown in simulator time, the occupied area size of storing up according to display properties document memory is at described simulator screen display text to be shown, simplify the demonstration operation of mobile-terminal simulator, made the text display on mobile-terminal simulator identical with the page layout that the text display on intelligent mobile terminal takies.
Fig. 4 shows the third embodiment of the present invention.
Fig. 4 is the structural drawing of the simulator textual display device that provides of third embodiment of the invention.Referring to Fig. 4, described simulator textual display device comprises: display properties receiver module 410, occupied area determination module 420 and text display module 430.
Described display properties receiver module 410 is for receiving the display properties that text to be shown shows at mobile terminal screen from mobile terminal.
Described occupied area determination module 420 is for determining that according to the display properties of the text to be shown receiving text to be shown is in the occupied area of simulator screen display size.
Described text display module 430 for showing described text to be shown on described simulator screen according to described occupied area size.
Preferably, described occupied area determination module 420 comprises: mobile terminal display parameter acquiring unit 421, displaying ratio computing unit 422 and the second occupied areasize determining unit 423.
Described mobile terminal display parameter acquiring unit 421 is for obtaining the actual size of mobile terminal display screen curtain and text to be shown the first occupied area size at mobile terminal display screen curtain.
Described displaying ratio computing unit 422 is for according to the actual size of mobile terminal display screen curtain, the ratio between the size of compute simulator screen and the actual size of mobile terminal display screen curtain.
Described the second occupied areasize determining unit 423, for according to described ratio and the first occupied area size, is determined the second occupied area size of described text to be shown on described simulator screen.
The present embodiment is by receiving the display properties that text to be shown shows mobile terminal screen from mobile terminal, determine that according to the display properties of the text to be shown receiving text to be shown is in the occupied area of simulator screen display size, and on described simulator screen, show described text to be shown according to described occupied area size, make the text display on mobile-terminal simulator identical with the page layout that the text display on intelligent mobile terminal takies.
Fig. 5 shows the fourth embodiment of the present invention.
Fig. 5 is the structural drawing of the simulator textual display device that provides of fourth embodiment of the invention.Described simulator text display method is taking third embodiment of the invention as basis, further, described simulator textual display device also comprises: property file checking module 510, attribute obtain and display module 520, variable condition judge module 560 and display properties are preserved module 570.
Described property file checking module 510, for receive the display properties that text to be shown shows at mobile terminal screen from mobile terminal before, judges the display properties file that whether stores text to be shown in described simulator.
Described attribute obtain and display module 520 for store the display properties file of text to be shown in simulator time, according to the occupied area size of display properties document memory storage at described simulator screen display text to be shown.
Described variable condition judge module 550, for after showing described text to be shown according to described occupied area size on described simulator screen, judges whether the occupied area size of text to be shown on simulator screen changes with respect to the occupied area size on mobile terminal screen.
Described display properties is preserved module 560 for, the occupied area size of upgrading after changing being stored in the display properties file of text to be shown of described simulator record when the occupied area change in size on simulator screen at text to be shown.
The present embodiment by depositing the occupied area size after changing in described display properties file in after the change in size of the occupied area of text to be shown, and store the display properties file of text to be shown in simulator time, the occupied area size of storing up according to display properties document memory is at described simulator screen display text to be shown, simplify the demonstration operation of mobile-terminal simulator, made the text display on mobile-terminal simulator identical with the page layout that the text display on intelligent mobile terminal takies.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Finally, also it should be noted that, in this article, relation such as the first and second grades belongs to and is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.
Those of ordinary skill in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on the network that multiple calculation elements form, alternatively, they can realize with the executable program code of computer installation, thereby they can be stored in memory storage and be carried out by calculation element, or they are made into respectively to each integrated circuit modules, or the multiple modules in them or step are made into single integrated circuit module realize.Like this, the present invention is not restricted to the combination of any specific hardware and software.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, to those skilled in the art, the present invention can have various changes and variation.All any amendments of doing, be equal to replacement, improvement etc., within protection scope of the present invention all should be included within spirit of the present invention and principle.