CN108664194B - Display method and device - Google Patents

Display method and device Download PDF

Info

Publication number
CN108664194B
CN108664194B CN201710197837.3A CN201710197837A CN108664194B CN 108664194 B CN108664194 B CN 108664194B CN 201710197837 A CN201710197837 A CN 201710197837A CN 108664194 B CN108664194 B CN 108664194B
Authority
CN
China
Prior art keywords
scale mark
current
initial
point position
value
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
CN201710197837.3A
Other languages
Chinese (zh)
Other versions
CN108664194A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201710197837.3A priority Critical patent/CN108664194B/en
Publication of CN108664194A publication Critical patent/CN108664194A/en
Application granted granted Critical
Publication of CN108664194B publication Critical patent/CN108664194B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to a display method, comprising the following steps: acquiring an initial starting point position scale mark and an initial end point position scale mark corresponding to a current interface display area, and acquiring an initial stepping value according to a first length value and a first width value of the initial starting point position scale mark in the current interface display area and a second length value and a second width value of the initial end point position scale mark in the current interface display area; and according to the current stepping value, the initial starting point position scale mark and the initial end point position scale mark, determining the current scale mark corresponding to the current interface display area. In addition, a display device is also provided. The display method and the display device can intuitively estimate and read the measurement result in the measurement result interface.

Description

Display method and device
Technical Field
The present invention relates to the field of display, and in particular, to a display method and apparatus.
Background
In the process of using a display device such as a PC and a mobile terminal, an icon may be moved and zoomed on a touch screen by a gesture or a mouse. Because the pixel size and the pixel density of display devices such as each PC and mobile terminal are different, on the PC and the mobile terminal, if the APP displaying the measurement scales visually displays the specific corresponding measurement scales on different PCs and mobile terminals, the scale interface corresponding to the APP needs to be zoomed on the touch screen through gestures, and the zooming process easily causes the measurement scales to display a page with a digital mark which is not visual enough, so that the result of the specific measurement scales cannot be visually estimated and read to obtain the corresponding result value.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a display method and apparatus capable of intuitively estimating and reading a metric result on a metric scale display page.
A method of displaying, the method comprising:
acquiring an initial starting point position scale mark and an initial terminal point position scale mark corresponding to a current interface display area;
calculating to obtain an initial stepping value according to a first length value and a first width value of the initial starting point position scale mark in the current interface display area and a second length value and a second width value of the initial end point position scale mark in the current interface display area;
obtaining a current stepping value according to the initial stepping value, wherein non-zero numbers in the current stepping value have one bit, and the current stepping value is larger than the initial stepping value and smaller than a difference value between the initial starting point position scale mark and the initial end point position scale mark;
and determining the current scale mark corresponding to the current interface display area according to the current stepping value, the initial starting point position scale mark and the initial end point position scale mark.
In one embodiment, the step of obtaining an initial start point scale mark and an initial end point scale mark corresponding to the current interface display area includes:
and obtaining the zooming operation in the initial interface display area, and calculating the initial starting point position scale mark and the initial end point position scale mark corresponding to the current interface display area according to the zooming operation.
In one embodiment, the current step value comprises the set {1 x 10 }N,2*10N,3*10N,4*10N,5*10NN e Z, obtaining a current step value according to the initial step value, where a non-zero number in the current step value has only one bit, and where the step of the current step value being greater than the initial step value includes:
from said initial step value, in said set {1 x 10 }N,2*10N,3*10N,4*10N,5*10NAnd finding an element which has the minimum absolute value of the difference value with the initial stepping value and is larger than the initial stepping value in N epsilon Z as the current stepping value.
In one embodiment, the step of determining, according to the current step value, the initial start point position scale mark, and the initial end point position scale mark, a current scale mark corresponding to the current interface display area includes:
determining a current starting point position scale mark and a current end point position scale mark corresponding to the current interface display area according to the initial starting point position scale mark and the initial end point position scale mark;
and obtaining a current scale mark corresponding to the current interface display area according to the current stepping value, the current starting point position scale mark and the current end point position scale mark.
In one embodiment, the step of determining, according to the initial start point position scale mark and the initial end point position scale mark, a current start point position scale mark and a current end point position scale mark corresponding to the current interface display area includes:
dividing the initial starting point position scale mark and the initial end point position scale mark by the current stepping value respectively to obtain a corresponding first quotient value and a corresponding second quotient value;
and multiplying the first quotient value and the second quotient value by the current stepping value respectively to obtain a current start point position scale mark and a current end point position scale mark corresponding to the current interface display area.
A display device, the device comprising:
the initial scale mark acquisition module is used for acquiring an initial starting point position scale mark and an initial terminal point position scale mark corresponding to the current interface display area;
an initial stepping value calculating module, configured to calculate an initial stepping value according to a first length value and a first width value of the initial starting point position scale mark in the current interface display area, and a second length value and a second width value of the initial ending point position scale mark in the current interface display area;
a current stepping value obtaining module, configured to obtain a current stepping value according to the initial stepping value, where there is only one non-zero number in the current stepping value, and the current stepping value is greater than the initial stepping value and smaller than a difference between the initial start point position scale identifier and the initial end point position scale identifier;
and the current scale mark acquisition module is used for determining the current scale mark corresponding to the current interface display area according to the current stepping value, the initial starting point position scale mark and the initial end point position scale mark.
In one embodiment, the initial scale mark obtaining module is further configured to obtain an input operation in an initial interface display area, and calculate an initial start point position scale mark and an initial end point position scale mark corresponding to the current interface display area according to the input operation.
In one embodiment, the current step value comprises the set {1 x 10 }N,2*10N,3*10N,4*10N,5*10NN e Z, said current step value obtaining module is further configured to obtain said initial step value from said set {1 x 10 ∈ according to said initial step valueN,2*10N,3*10N,4*10N,5*10NAnd finding an element which has the minimum absolute value of the difference value with the initial stepping value and is larger than the initial stepping value in N epsilon Z as the current stepping value.
In one embodiment, the current scale mark acquiring module includes:
a current starting point and current end point position scale mark obtaining unit, configured to determine, according to the initial starting point position scale mark and the initial end point position scale mark, a current starting point position scale mark and a current end point position scale mark corresponding to the current interface display area;
and the current scale mark acquisition unit is used for determining the current scale mark corresponding to the current interface display area according to the current stepping value, the current starting point position scale mark and the current end point position scale mark.
In one embodiment, the current start point and current end point position scale mark obtaining unit is further configured to divide the initial start point position scale mark and the initial end point position scale mark by the current step value to obtain a corresponding first quotient value and a second quotient value, and multiply the first quotient value and the second quotient value by the current step value to obtain a current start point position scale mark and a current end point position scale mark corresponding to the current interface display area.
According to the display method and the display device, an initial stepping value is obtained by obtaining an initial starting point position scale mark and an initial end point position scale mark corresponding to a current interface display area, and calculating according to a first length value and a first width value of the initial starting point position scale mark in the current interface display area, and a second length value and a second width value of the initial end point position scale mark in the current interface display area; obtaining a current stepping value according to the initial stepping value, wherein the non-zero number in the current stepping value has one bit, the current step value is larger than the initial step value and smaller than the difference value between the scale mark of the initial starting point position and the scale mark of the initial end point position, determining the current scale mark corresponding to the current interface display area according to the current stepping value, the initial starting point position scale mark and the initial end point position scale mark, setting the interval between any two position scale marks in the display measurement scale page as an obvious and readable number, further obtaining the current scale mark according to the current stepping value, and displaying visual and readable numerical values in displays of various sizes, the method and the device enable the displayed measurement scale pages in different PCs and mobile terminals to intuitively estimate and read corresponding measurement results when moving and zooming.
Drawings
FIG. 1 is a diagram of an exemplary display method;
FIG. 2 is a flow diagram of a display method in one embodiment;
FIG. 3 is a flow diagram of obtaining a current scale mark in one embodiment;
FIG. 4 is a diagram of an interface in an initial interface display area for metrology results in one embodiment;
FIG. 5 is a schematic diagram illustrating an interface of a zoomed out display area of a current interface of a metrology result in one embodiment;
FIG. 6 is a schematic diagram illustrating an interface of a current interface display area of a scaled-up metrology result in one embodiment;
FIG. 7 is a block diagram of a display device according to an embodiment;
fig. 8 is a block diagram of a current scale mark acquiring module in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Fig. 1 is a diagram of an application environment of a display method in an embodiment, a terminal 100 includes a processor 110, a display 120 and a memory 130, the memory 130 and the display 120 are respectively connected to the processor 110, and the terminal 100 includes, but is not limited to, a mobile phone, a tablet, a smart wearable device, and the like.
In one embodiment, a display method is provided, as shown in fig. 2, comprising the steps of:
step S210, obtaining an initial start point position scale mark and an initial end point position scale mark corresponding to the current interface display area.
Specifically, a corresponding Application program APP (Application program) of the measurement instrument is installed on the terminal, and when a measurement result is displayed, an area displayed on a display of the terminal is usually only a part of the whole area, and the displayed data is less than full-range data.
Generally, the terminal display area generally includes at least one of a transverse coordinate axis, a longitudinal coordinate axis and an oblique coordinate axis, when the terminal receives an input operation corresponding to a user, the measurement coordinate axis immediately obtains a new start mark and an end mark, the current interface display area immediately determines to obtain the current interface display area, and an initial start point position scale mark and an initial end point position scale mark corresponding to the current interface display area, wherein the initial start point position scale mark refers to a position scale mark corresponding to the initial start point, the initial end point position scale mark refers to a position scale mark corresponding to the initial end point, and the position scale mark may be a number, or a mark of other symbols or characters, and the like.
Step S220, calculating to obtain an initial step value according to a first length value and a first width value of the initial start point position scale mark in the current interface display area, and a second length value and a second width value of the initial end point position scale mark in the current interface display area.
Specifically, after the initial starting point position scale mark and the initial end point position scale mark are determined, a step value needs to be determined, it is ensured that the mark and the digital equal position scale mark do not cover basic requirements, and the initial step value can be obtained by measuring the length or the width of the mark and the digital equal position scale mark, that is, according to the first length value and the first width value of the initial starting point position scale mark in the current interface display area and the second length value and the second width value of the initial end point position scale mark in the current interface display area.
Of course, on the basis of measuring the length or width of the position scale mark such as the mark and the number, the initial step value can be further obtained according to the line spacing or the column spacing of the position scale mark in the current interface display area.
Step S230, obtaining a current step value according to the initial step value, where there is only one non-zero number in the current step value, and the current step value is greater than the initial step value and less than the difference between the initial start point position scale mark and the initial end point position scale mark.
Specifically, after the initial step value is determined, an initial scale mark corresponding to the current interface display area may be further determined according to the initial start point position scale mark and the initial end point position scale mark, where the initial scale mark includes multiple position scale marks between the initial start point position scale mark and the initial end point position scale mark.
If the initial step value and the initial scale mark include numbers such as decimal numbers which are not intuitive enough, the initial step value can be further increased to obtain the current step value, so that the nonzero number in the current step value has only one bit, that is, the nonzero number in the current step value is any one of the set {1, 2, 3, 4, 5, 6, 7, 8, 9}, and in addition, the current step value is smaller than the difference value between the initial start point position scale mark and the initial end point position scale mark.
Step S240, determining a current scale mark corresponding to the current interface display area according to the current step value, the initial start point position scale mark, and the initial end point position scale mark.
Specifically, after the current step value is obtained, the current step value may be gradually increased on the basis of the initial start point position scale mark, so as to finally obtain each position scale mark between the initial start point position scale mark and the initial end point position scale mark, and finally determine the current scale mark corresponding to the current interface display area.
According to the display method, an initial stepping value is obtained by obtaining an initial starting point position scale mark and an initial end point position scale mark corresponding to a current interface display area, and calculating according to a first length value and a first width value of the initial starting point position scale mark in the current interface display area, and a second length value and a second width value of the initial end point position scale mark in the current interface display area; obtaining a current stepping value according to the initial stepping value, wherein the non-zero number in the current stepping value has one bit, the current step value is larger than the initial step value and smaller than the difference value between the scale mark of the initial starting point position and the scale mark of the initial end point position, determining the current scale mark corresponding to the current interface display area according to the current stepping value, the initial starting point position scale mark and the initial end point position scale mark, setting the interval between any two position scale marks in the display measurement scale page as an obvious and readable number, further obtaining the current scale mark according to the current stepping value, and displaying visual and readable numerical values in displays of various sizes, the method and the device enable the displayed measurement scale pages in different PCs and mobile terminals to intuitively estimate and read corresponding measurement results when moving and zooming.
In one embodiment, step S210 includes: and obtaining the zooming or moving operation in the initial interface display area, and calculating the initial starting point position scale mark and the initial end point position scale mark corresponding to the current interface display area according to the zooming or moving operation.
Specifically, in the actual engineering measurement Application, a corresponding Application program APP (Application) of the measurement instrument is installed on the terminal, and when an initial interface area in the terminal displays a measurement result, reduction, amplification or movement operation needs to be performed.
The zooming-out, zooming-in or moving operation can be performed through gestures or can be realized through mouse rolling.
The strategy for determining the scale mark of the initial starting point position and the scale mark of the initial end point position in the measurement coordinate axis according to the reduction or amplification operation can be determined according to a specific operation application scene, and can adopt a linear calculation strategy or an acceleration change calculation strategy.
In one embodiment, the current step value comprises the set {1 x 10 }N,2*10N,3*10N,4*10N,5*10NN ∈ Z }, step S130 includes: from the initial step value, in the set {1 x 10 }N,2*10N,3*10N,4*10N,5*10NAnd N epsilon Z, finding an element which has the minimum absolute value of the difference value with the initial stepping value and is larger than the initial stepping value as the current stepping value.
Specifically, if a numerical identifier such as 0.6/70/0.08/900 appears in the current step value in the current interface display area of the terminal, the method is not intuitive and is inconvenient for directly estimating or reading a corresponding measurement result, and the current step value is further processedIt is defined that the non-zero number in the current step value includes only one of {1, 2, 3, 4, 5}, i.e. the current step value includes the set {1 x 10 }N,2*10N,3*10N,4*10N,5*10NAnd N ∈ Z }.
Further, the initial step value can be used to calculate the initial step value in the set {1 x 10 }N,2*10N,3*10N,4*10N,5*10NAnd N belongs to Z, an element which has the minimum absolute value of the difference value with the initial stepping value and is larger than the initial stepping value is found out and is used as the current stepping value, so that the nonzero number in the current stepping value adopts one of natural numbers {1, 2, 3, 4 and 5} which are most familiar to a user, and the measurement coordinate axis can be more visual and easier to read when displaying the measurement result.
In one embodiment, as shown in fig. 3, step S240 includes:
step S242, determining a current start point position scale mark and a current end point position scale mark corresponding to the current interface display area according to the current step value, the initial start point position scale mark, and the initial end point position scale mark.
Specifically, the obtained initial start point position scale mark and the initial end point position scale mark may include numbers such as decimal numbers which are not intuitive and easy to read, and affect the speed and accuracy of estimating and reading the magnitude result in the current interface display area, at this time, the initial start point position scale mark and the initial end point position scale mark may be adjusted with reference to the current step value, and the intuitive and easy-to-read scale mark, such as an integer scale value, is selected in the current interface display area as the current start point position scale mark and the current end point scale mark.
Step S244, obtaining a current scale mark corresponding to the current interface display area according to the current step value, the current start point position scale mark, and the current end point position scale mark.
Specifically, after the current step value is obtained, the current step value may be gradually increased based on the current start point position scale mark, so as to finally obtain each position scale mark between the current start point position scale mark and the current end point position scale mark, and finally determine the current scale mark corresponding to the current interface display area.
In one embodiment, step S242 further comprises: and respectively dividing the initial starting point position scale mark and the initial end point position scale mark by the current stepping value to obtain a corresponding first quotient value and a corresponding second quotient value, and respectively multiplying the first quotient value and the second quotient value by the current stepping value to obtain a current starting point position scale mark and a current end point position scale mark corresponding to the current interface display area.
Specifically, under the condition that the initial starting point position scale mark and the initial end point position scale mark may include decimal and the like and are not visually displayed, the initial starting point position scale mark and the initial end point position scale mark are adjusted with reference to a current step value, the initial starting point position scale mark and the initial end point position scale mark are respectively divided by the current step value to obtain a corresponding first quotient and a corresponding second quotient, and the first quotient and the second quotient are respectively multiplied by the current step value to obtain the current starting point position scale mark and the current end point position scale mark corresponding to the current interface display area.
In one embodiment, the initial start point position scale mark comprises-140.1, the initial end point position scale mark comprises 102.6, the step value is 20, the integral of-140.1 and 102.6 is divided by the current step value 20 to obtain the corresponding first quotient value-7 and second quotient value 5, then the integral is multiplied by the current step value 20 to obtain-140 and 100, respectively, and then the labeling is further performed to obtain the corresponding current start point position scale mark and current end point position scale mark. In an embodiment, by using the above display method, a rectangular box with scale lines is displayed on a terminal display, each scale line in a vertical direction is displayed, a physical effective range of the vertical scale is-200 and 200, the rectangular box supports a gesture zooming mode and a mouse up-and-down scrolling zooming mode, or a moving mode, where fig. 4 is an initial interface display area, fig. 5 is a reduced current scale mark, and fig. 6 is an enlarged current scale mark, it is obvious that, in the reduced fig. 5 and the enlarged fig. 6, the scale mark corresponding to the current interface display area conforms to the usage and reading habits, and can be quickly estimated and read according to the position of a specific measurement result, the above display method is implemented by using Java language, and the program is as follows:
Figure BDA0001257841900000091
Figure BDA0001257841900000101
as shown in fig. 7, a display device includes:
an initial scale mark obtaining module 310, configured to obtain an initial start point position scale mark and an initial end point position scale mark corresponding to a current interface display area;
an initial step value calculating module 320, configured to calculate an initial step value according to a first length value and a first width value of the initial start point position scale mark in the current interface display area, and a second length value and a second width value of the initial end point position scale mark in the current interface display area;
a current step value obtaining module 330, configured to obtain a current step value according to the initial step value, where there is only one non-zero number in the current step value, and the current step value is greater than the initial step value and smaller than a difference between the initial start point position scale identifier and the initial end point position scale identifier;
and a current scale mark obtaining module 340, configured to determine, according to the current step value, the initial start point scale mark, and the initial end point scale mark, a current scale mark corresponding to the current interface display area.
In an embodiment, the initial scale mark obtaining module 310 is further configured to obtain a zooming or moving operation in the initial interface display area, and calculate an initial start point position scale mark and an initial end point position scale mark corresponding to the current interface display area according to the zooming or moving operation.
In one embodiment, the current step value comprises the set {1 x 10 }N,2*10N,3*10N,4*10N,5*10NN e Z, the current step value obtaining module 330 is further configured to obtain the initial step value from the set {1 x 10 ∈ according to the initial step valueN,2*10N,3*10N,4*10N,5*10NAnd N epsilon Z, finding an element which has the minimum absolute value of the difference value with the initial stepping value and is larger than the initial stepping value as the current stepping value.
In one embodiment, as shown in fig. 8, the current scale mark acquiring module 340 includes:
a current starting point and current end point position scale mark obtaining unit 342, configured to determine, according to the initial starting point position scale mark and the initial end point position scale mark, a current starting point position scale mark and a current end point position scale mark corresponding to the current interface display area;
a current scale mark obtaining unit 344, configured to determine, according to the current step value, the current start point position scale mark, and the current end point position scale mark, a current scale mark corresponding to the current interface display area.
In an embodiment, the current start point and current end point position scale mark obtaining unit 342 is further configured to divide the initial start point position scale mark and the initial end point position scale mark by the current step value to obtain a corresponding first quotient value and a second quotient value, and multiply the first quotient value and the second quotient value by the current step value to obtain a current start point position scale mark and a current end point position scale mark corresponding to the current interface display area.
It will be understood by those skilled in the art that all or part of the processes in the methods of the embodiments described above may be implemented by hardware related to instructions of a computer program, which may be stored in a computer readable storage medium, for example, in the storage medium of a computer system, and executed by at least one processor in the computer system, so as to implement the processes of the embodiments including the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (6)

1. A method of displaying, the method comprising:
acquiring an initial starting point position scale mark and an initial terminal point position scale mark corresponding to a current interface display area;
calculating to obtain an initial stepping value according to a first length value and a first width value of the initial starting point position scale mark in the current interface display area and a second length value and a second width value of the initial ending point position scale mark in the current interface display area;
obtaining a current stepping value according to the initial stepping value, wherein the current stepping value comprises a set {1 x 10N,2*10N,3*10N,4*10N,5*10NN is equal to Z; from said initial step value, in said set {1 x 10 }N,2*10N,3*10N,4*10N,5*10NFinding an element with the minimum absolute value of the difference value with the initial stepping value and larger than the initial stepping value in N epsilon Z, and taking the element as the current stepping valueA value; the non-zero number in the current stepping value has only one bit, and the current stepping value is larger than the initial stepping value and smaller than the difference value between the initial starting point position scale mark and the initial end point position scale mark;
determining the current scale mark corresponding to the current interface display area according to the current stepping value, the initial starting point position scale mark and the initial end point position scale mark comprises:
dividing the initial starting point position scale mark and the initial end point position scale mark by the current stepping value respectively to obtain a corresponding first quotient value and a corresponding second quotient value;
and multiplying the first quotient value and the second quotient value by the current stepping value respectively to obtain a current start point position scale mark and a current end point position scale mark corresponding to the current interface display area.
2. The method according to claim 1, wherein the step of obtaining an initial start point scale mark and an initial end point scale mark corresponding to the current interface display area comprises:
and obtaining zooming or moving operation in an initial interface display area, and calculating an initial starting point position scale mark and an initial end point position scale mark corresponding to the current interface display area according to the zooming or moving operation.
3. The method according to claim 1, wherein the step of determining the current scale mark corresponding to the current interface display area according to the current step value, the initial start point position scale mark and the initial end point position scale mark comprises:
determining a current starting point position scale mark and a current end point position scale mark corresponding to the current interface display area according to the initial starting point position scale mark and the initial end point position scale mark;
and obtaining a current scale mark corresponding to the current interface display area according to the current stepping value, the current starting point position scale mark and the current end point position scale mark.
4. A display device, characterized in that the device comprises:
the initial scale mark acquisition module is used for acquiring an initial starting point position scale mark and an initial terminal point position scale mark corresponding to the current interface display area;
an initial stepping value calculating module, configured to calculate an initial stepping value according to a first length value and a first width value of the initial starting point position scale mark in the current interface display area, and a second length value and a second width value of the initial ending point position scale mark in the current interface display area;
a current stepping value obtaining module, configured to obtain a current stepping value according to the initial stepping value, where the current stepping value includes a set {1 × 10 }N,2*10N,3*10N,4*10N,5*10NN is equal to Z; the current stepping value obtaining module is used for obtaining the initial stepping value in the set {1 x 10N,2*10N,3*10N,4*10N,5*10NFinding an element which has the minimum absolute value of the difference value with the initial stepping value and is larger than the initial stepping value in N epsilon Z, and taking the element as the current stepping value; the non-zero number in the current stepping value has only one bit, and the current stepping value is larger than the initial stepping value and smaller than the difference value between the initial starting point position scale mark and the initial end point position scale mark;
a current scale mark obtaining module, configured to determine, according to the current step value, the initial start point position scale mark, and the initial end point position scale mark, that a current scale mark corresponding to the current interface display area includes:
and respectively dividing the initial starting point position scale mark and the initial end point position scale mark by the current stepping value to obtain a corresponding first quotient value and a corresponding second quotient value, and respectively multiplying the first quotient value and the second quotient value by the current stepping value to obtain a current starting point position scale mark and a current end point position scale mark corresponding to the current interface display area.
5. The apparatus according to claim 4, wherein the initial scale mark obtaining module is further configured to obtain a zoom or move operation in an initial interface display area, and according to the zoom or move operation, calculate an initial start point position scale mark and an initial end point position scale mark corresponding to the current interface display area.
6. The apparatus of claim 4, wherein the current scale mark obtaining module comprises:
a current starting point and current end point position scale mark obtaining unit, configured to determine, according to the initial starting point position scale mark and the initial end point position scale mark, a current starting point position scale mark and a current end point position scale mark corresponding to the current interface display area;
and the current scale mark acquisition unit is used for determining the current scale mark corresponding to the current interface display area according to the current stepping value, the current starting point position scale mark and the current end point position scale mark.
CN201710197837.3A 2017-03-29 2017-03-29 Display method and device Active CN108664194B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710197837.3A CN108664194B (en) 2017-03-29 2017-03-29 Display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710197837.3A CN108664194B (en) 2017-03-29 2017-03-29 Display method and device

Publications (2)

Publication Number Publication Date
CN108664194A CN108664194A (en) 2018-10-16
CN108664194B true CN108664194B (en) 2021-08-06

Family

ID=63786168

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710197837.3A Active CN108664194B (en) 2017-03-29 2017-03-29 Display method and device

Country Status (1)

Country Link
CN (1) CN108664194B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111240563B (en) * 2019-12-25 2022-02-18 腾讯科技(深圳)有限公司 Information display method, device, equipment and storage medium
CN114816606B (en) * 2021-01-28 2024-04-02 抖音视界有限公司 Self-adaptive adjustment method and device of window graduated scale, electronic equipment and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968808A (en) * 2012-11-21 2013-03-13 华为技术有限公司 Method and device for displaying
CN104106040A (en) * 2012-02-16 2014-10-15 微软公司 Visual representation of chart scaling
CN104181365A (en) * 2013-05-24 2014-12-03 苏州普源精电科技有限公司 Measurement device with zoom display function
CN104636025A (en) * 2013-11-13 2015-05-20 上海联影医疗科技有限公司 Parameter inputting method and system
CN104898947A (en) * 2015-05-26 2015-09-09 中国民航大学 Method for implementing scaling and translation of GDI electronic vector map based on mouse position
CN105573702A (en) * 2015-12-16 2016-05-11 广州视睿电子科技有限公司 Remote headnote moving and scaling synchronization method and system
CN105912318A (en) * 2016-04-01 2016-08-31 北京京东尚科信息技术有限公司 Self-adaptive display method of terminal screen, terminal, server and system

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005182463A (en) * 2003-12-19 2005-07-07 Toshiba Corp Information processor and display control method
US8074185B2 (en) * 2007-05-16 2011-12-06 Sherwood Electronics Laboratories, Inc. System and method for displaying and manipulating hierarchically linked data in a genealogy database using a graphical interface
CN102446053A (en) * 2010-10-12 2012-05-09 深圳市合信自动化技术有限公司 Method and device for adjusting numeric values of touch screen
CN103914218B (en) * 2012-12-29 2018-05-04 深圳联影医疗科技有限公司 The graphic user interface parameter adjusting method controllable with respect to input precision and device
CN103995654B (en) * 2013-02-19 2017-11-24 华为技术有限公司 The method and apparatus for adjusting chart granularity
CN103927143B (en) * 2014-04-04 2017-04-19 福建星网视易信息系统有限公司 Method and device for adaptively adjusting interface layout on basis of screen resolution
CN105389072A (en) * 2014-09-09 2016-03-09 富泰华工业(深圳)有限公司 Automatic zoom-in/zoom-out system and method for user interface
CN105511712B (en) * 2014-09-24 2019-08-02 阿里巴巴集团控股有限公司 A kind of image presentation method and device
CN106293427B (en) * 2015-05-14 2019-05-17 富泰华工业(深圳)有限公司 User interface method of adjustment and electronic device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104106040A (en) * 2012-02-16 2014-10-15 微软公司 Visual representation of chart scaling
CN102968808A (en) * 2012-11-21 2013-03-13 华为技术有限公司 Method and device for displaying
CN104181365A (en) * 2013-05-24 2014-12-03 苏州普源精电科技有限公司 Measurement device with zoom display function
CN104636025A (en) * 2013-11-13 2015-05-20 上海联影医疗科技有限公司 Parameter inputting method and system
CN104898947A (en) * 2015-05-26 2015-09-09 中国民航大学 Method for implementing scaling and translation of GDI electronic vector map based on mouse position
CN105573702A (en) * 2015-12-16 2016-05-11 广州视睿电子科技有限公司 Remote headnote moving and scaling synchronization method and system
CN105912318A (en) * 2016-04-01 2016-08-31 北京京东尚科信息技术有限公司 Self-adaptive display method of terminal screen, terminal, server and system

Also Published As

Publication number Publication date
CN108664194A (en) 2018-10-16

Similar Documents

Publication Publication Date Title
US7705861B2 (en) Snap to element analytical tool
EP1942403A2 (en) Data scrolling apparatus and method for mobile terminal
WO2017042863A1 (en) Terminal device, information processing method, and information processing program
TWI483200B (en) Apparatus and method for processing handwriting input
US8081157B2 (en) Apparatus and method of scrolling screen in portable device and recording medium storing program for performing the method
CN104020944A (en) Data input method based on sliding block
WO2012145378A2 (en) Jump to top / jump to bottom scroll widgets
US20110102466A1 (en) System and method for zooming images
CN108664194B (en) Display method and device
JP6359396B2 (en) Advertisement display device, advertisement display method, and advertisement display program
JP5686735B2 (en) Display device, control method, and program
CN103279286A (en) Electronic device and method for adjusting display scale of pictures
WO2022156651A1 (en) Step length acquisition method and electronic device
US8902259B1 (en) Finger-friendly content selection interface
CN110865785A (en) Method and device for acquiring pixel size and electronic equipment
CN111143731A (en) Display method and device for webpage interface zooming and terminal equipment
CN110333816B (en) Carousel processing method and device
CN109683798B (en) Text determination method, terminal and computer readable storage medium
US10379659B2 (en) Method and apparatus for generating a personalized input panel
US20130271493A1 (en) Intelligent axis labels
KR101820657B1 (en) System and Method for Auto-Scrolling Webtoon Screen Image
JP6344024B2 (en) Read determination device, read determination method, and read determination program
CN114398571A (en) Image annotation method, image annotation system, electronic device and storage medium
CN111356977A (en) Method for processing writing strokes and related equipment
CN113268307A (en) Page component display method, device, equipment and storage medium

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