CN106775219B - Cursor linkage method and device - Google Patents

Cursor linkage method and device Download PDF

Info

Publication number
CN106775219B
CN106775219B CN201611088235.6A CN201611088235A CN106775219B CN 106775219 B CN106775219 B CN 106775219B CN 201611088235 A CN201611088235 A CN 201611088235A CN 106775219 B CN106775219 B CN 106775219B
Authority
CN
China
Prior art keywords
cursor
position information
business
abscissa
physical
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
CN201611088235.6A
Other languages
Chinese (zh)
Other versions
CN106775219A (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.)
Guangzhou Xinboting Network Information Technology Co ltd
Original Assignee
Guangzhou Xinboting Network Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Xinboting Network Information Technology Co ltd filed Critical Guangzhou Xinboting Network Information Technology Co ltd
Priority to CN201611088235.6A priority Critical patent/CN106775219B/en
Publication of CN106775219A publication Critical patent/CN106775219A/en
Application granted granted Critical
Publication of CN106775219B publication Critical patent/CN106775219B/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/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
    • G06F3/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects

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)

Abstract

The embodiment of the invention provides a cursor linkage method and a cursor linkage device, wherein the method comprises the following steps: capturing cursor input operation in a first business window; determining cursor position information corresponding to the cursor input operation; sending the cursor position information to one or more second business windows; and displaying the cursor in a position corresponding to the cursor position information in the second service window. The embodiment of the invention can realize linkage of the first service window and the second service window, so that a user can check data on different windows conveniently, the user can accurately compare data in the same period or data graph forms in the same time period in different periods, and the efficiency of checking and analyzing different windows by the user is improved.

Description

Cursor linkage method and device
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a cursor linkage method and a cursor linkage device.
Background
In some business fields, in order to standardize business processing when a provider who provides a business object and a receiver who receives the business object process the business object, processing is often specified on a certain platform.
In the platform, since various factors, such as national policies, processing behaviors, and the like, affect the service data of the service object, the platform processes the service data of the service object in real time.
Since the number of the categories of the business objects is large, the number of the business objects under each category is also large, and the business data of the business objects are changed in real time, users often need to pay attention to and monitor the change situation of the categories of the business objects. However, a single display screen has limited content and information that can be presented, and thus multiple display screens are often required for business object viewing and monitoring in some fields.
In the prior art, if a user opens a plurality of windows simultaneously to check data, the user needs to locate the data in one window, then searches for the data corresponding to the located data in another window to locate, and when searching and analyzing the data of different windows, the operation is complex and the efficiency is low.
Disclosure of Invention
The embodiment of the invention provides a cursor linkage method and a cursor linkage device, which are used for solving the problems of complex operation and low efficiency when a user checks and analyzes data of different windows.
The embodiment of the invention discloses a cursor linkage method, which comprises the following steps:
capturing cursor input operation in a first business window;
determining cursor position information corresponding to the cursor input operation;
sending the cursor position information to one or more second business windows;
and displaying the cursor in a position corresponding to the cursor position information in the second service window.
Preferably, the cursor position information is the logic position information of the cursor;
the step of determining cursor position information corresponding to the cursor input operation comprises:
acquiring first physical position information of a cursor corresponding to the cursor input operation;
converting the first physical location information into logical location information of the cursor.
Preferably, the first service window includes a first planar coordinate system, and a vertical coordinate of the first planar coordinate system displays a first characteristic data range and a horizontal coordinate of the first planar coordinate system displays a first time range; the first physical position information comprises a first physical abscissa and a first physical ordinate; the logical position information comprises a logical abscissa and a logical ordinate;
the step of converting the first physical location information into logical location information of the cursor includes:
determining the length of the ordinate and the length of the abscissa of the first planar coordinate system;
acquiring the number of first business objects in the first time range;
calculating a first proportional relationship between the first physical ordinate and the length of the ordinate of the first planar coordinate system, and a second proportional relationship between the first physical abscissa and the length of the abscissa of the first planar coordinate system;
determining a logical ordinate based on the first proportional relationship and the first characteristic data range;
determining a logical abscissa based on the second proportional relationship and the number of the first business objects.
Preferably, the step of determining a logical abscissa based on the second proportional relationship and the number of the first business objects comprises:
determining a matched first business object index based on the second proportional relation and the number of the first business objects;
acquiring a second time range of the first service object corresponding to the matched first service object index;
organizing the matched first business object index and the second time range into a logical abscissa.
Preferably, the step of displaying the cursor in the position corresponding to the cursor position information in the second service window includes:
converting the logical location information into second physical location information based on the second service window;
and activating a cursor in a position corresponding to the second physical position information.
Preferably, the second service window includes a second planar coordinate system, and a vertical coordinate of the second planar coordinate system displays a second characteristic data range and a horizontal coordinate of the second planar coordinate system displays a third time range; the second physical position information comprises a second physical abscissa and a second physical ordinate;
the step of converting the logical location information into second physical location information based on the second service window includes:
determining the length of the ordinate and the length of the abscissa of the second planar coordinate system;
determining a second business object matched with the second time range from all second business objects displayed in the second plane coordinate system;
acquiring the data start time and the data end time of the matched second service object, and organizing the data start time and the data end time into a fourth time range;
calculating a third proportional relationship between the fourth time range and the third time range;
determining a second physical abscissa based on the third proportional relationship and the length of the abscissa of the second planar coordinate system;
calculating a fourth proportional relation between the length of the logic ordinate relative to the starting position of the second characteristic data range and the length corresponding to the second characteristic data range;
and determining a second physical ordinate based on the fourth proportional relation and the length of the ordinate of the second planar coordinate system.
Preferably, the method further comprises:
and highlighting the second business object matched with the second time range in the second business window.
Preferably, the method further comprises:
displaying corresponding first business data at the position of the cursor in the first business window;
and displaying corresponding second service data at the position of the cursor in the second service window.
Preferably, the cursor input operation comprises a mouse input operation and/or a keyboard input operation; and if the cursor input operation is a keyboard input operation, the cursor corresponding to the cursor input operation is the cursor after the current cursor moves to the position corresponding to the keyboard input operation.
The embodiment of the invention also discloses a cursor linkage device, which comprises:
the cursor input capturing module is used for capturing cursor input operation in the first business window;
the cursor position information determining module is used for determining cursor position information corresponding to the cursor input operation;
the cursor position information sending module is used for sending the cursor position information to one or more second business windows;
and the cursor display module is used for displaying the cursor in a position corresponding to the cursor position information in the second service window.
In the embodiment of the invention, after the cursor input operation is captured in the first service window, the cursor position information corresponding to the cursor input operation is determined, and the cursor position information is sent to one or more second service windows, so that the cursor is activated in the position corresponding to the cursor position information in the second service windows, and therefore, the linkage of the first service window and the second service windows is realized, a user can conveniently view data on different windows, the user can conveniently and accurately compare data in the same period or data graphic forms in the same time period in different periods, and the efficiency of the user in viewing and analyzing different windows is improved.
Drawings
FIG. 1 is a flow chart of the steps of a cursor linkage method embodiment of the present invention;
fig. 2 is a block diagram of a cursor linkage device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a cursor linkage method according to the present invention is shown, which may specifically include the following steps:
step 101, capturing cursor input operation in a first business window;
in a specific implementation, the first business window may be used to display business data of one or more business objects, and may have different business objects in different business fields. In the embodiment of the present invention, the business object may be a line graph representing characteristic data in a certain field.
For example, in the communication field, the characteristic data may be communication data; in the news media field, the data representing the characteristics thereof may be news data; in the search field, the data representing the characteristics thereof may be web pages; in the financial field, the data characterizing it may be stock data, etc. Essentially, the data of the above-mentioned respective fields may include the following types: text data, image data, audio data, video data, and the like.
In order to make those skilled in the art better understand the embodiment of the present invention, in the embodiment of the present invention, a k-line graph and a time-sharing graph of stock data are described as an example of a business object.
The K line graph is also called a candle graph, a Japanese line, a shade line, a stick line, a red black line and the like, and is drawn by the opening price, the highest price, the lowest price and the closing price of each analysis period in a common method. Through the K-line graph, people can completely record the urban condition performance every day or in a certain period, after stock prices pass through a period of time, a special area or form is formed on the graph, different forms show different meanings, and some regular things can be found out from the change of the forms. The drawing method of the K-line graph in the stock market and the futures market comprises four data, namely the opening price, the highest price, the lowest price and the closing price, and all the K-lines are developed around the four data to reflect the situation and the price information of the market. If the daily K-line graph is placed on a piece of paper, a daily K-line graph can be obtained, and a week K-line graph and a month K-line graph can be drawn. If the investor needs to make short-line investment, the price analysis can be made by using a short-time graph, such as a trend graph of 5 minutes, 30 minutes, 60 minutes and the like.
The time-sharing graph is a dynamic real-time (instant) time-sharing trend graph of a large disk and each stock, and the time-sharing graph is composed of a mean price line and a closing price mean line, wherein a yellow line represents the mean price line, and a white line represents the track of price movement.
The business data may be data related to business objects, for example, for stock data, the business data may include date (fld _ date), stock code (fld _ securitiyid), trade time of day (fld _ kdaytime), opening price (fld _ open), highest price (fld _ high), latest price (fld _ low), closing price (fld _ close), yesterday receiving price (fld _ close), rising-stopping price (fld _ up) (not shown in the figure), falling-stopping price (fld _ down) (not shown in the figure), volume of interest (fld _ volume), volume of interest (fld _ amount), and the like.
In the embodiment of the present invention, a user may open two or more service windows for performing linked processing of data, and the two or more service windows may be located in different display devices, or the two or more service windows may be located in different windows of the same display.
The two or more business windows may include a first business window and a second business window, and the first business window or the second business window may be one or more.
The first business window can be a window for activating a cursor by a user, namely a window for executing cursor input operation by the user, and the second business window can be a window for not executing cursor input operation by the user, and the window automatically activates the cursor by the linkage method of the embodiment of the invention.
In order to distinguish from the second business window, in the embodiment of the present invention, the business object displayed on the first business window is referred to as a first business object, and the business object displayed on the second business window is referred to as a second business object.
After the opening operation of the first business window and the second business window by the user is detected, the first business window and the second business window can be opened, and information such as a K-line graph or a time-sharing graph is displayed in the first business window and/or the second business window.
In one embodiment, the cursor input operation may include a mouse input operation, for example, a mouse click operation by a user at a position in the first business window.
In another embodiment, the cursor input operation may further include a keyboard input operation, and the keyboard may be a physical keyboard or a virtual keyboard, which is not limited herein. For example, the keyboard input operation may be an operation in which the user inputs through keys such as a keyboard "→", "←", "home", "end", and the like.
In a specific implementation, the cursor input operation may be captured as follows:
the mouse, keyboard, etc. will generate some binary data (which can be called as message) and an interrupt signal during operation, and then these data and the CPU interrupt signal automatically generated by the operating system will be received by the CPU. After receiving the messages, the CPU performs an interrupt (the interrupt refers to that when the user moves the mouse and operates the keyboard, the CPU temporarily stores data of other running programs in the background, and then can receive and process the messages sent by the mouse and the keyboard), and then judges what operation the messages represent, for example, if the user presses a "←" key of the keyboard, the operation can be divided into two parts, the first one is that the user presses the keyboard (in the C language, the operation is expressed as sending a WM-KEYDOWN message); second, the user has pressed the "←" key of the keyboard ("←" ASCLL encoding of this character). The CPU thus knows what object the user is operating on and how to operate on this object.
It should be noted that the embodiment of the present invention is not limited to the above-mentioned manner of capturing the input operation of the cursor, and those skilled in the art may adopt other manners to determine the input operation of the cursor, and the embodiment of the present invention is not limited to this.
102, determining cursor position information corresponding to the cursor input operation;
in a specific implementation, after a cursor input operation is captured, a position where a cursor corresponding to the cursor input operation is located may be determined.
For the case of mouse input, the position of the cursor corresponding to the cursor input operation is the position clicked by the mouse.
For the case of keyboard input, the position of the cursor corresponding to the cursor input operation is the position after the current cursor moves to the position corresponding to the keyboard input operation, for example, if the keyboard input is "←", the cursor corresponding to the cursor input operation is the cursor after the current cursor moves one position to the left. If the keyboard input is 'end', the cursor corresponding to the cursor input operation is the cursor after the current cursor moves to the last bit of the current row.
After the position of the cursor corresponding to the cursor input operation is determined, cursor position information corresponding to the position can be further determined.
In a preferred embodiment of the present invention, the cursor position information may be logical position information of a cursor. The logical position information is relative to the physical position information, and the logical position information may be data displayed on the abscissa and the ordinate of the displayed k-line graph.
In a preferred embodiment of the present invention, step 102 may comprise the following sub-steps:
a substep S11, acquiring first physical position information of a cursor corresponding to the cursor input operation;
in practice, the first physical position information may be screen coordinates, i.e. the position of the cursor relative to the screen, and may be represented by (x, y) which represents the x-pixel distance and the y-pixel distance from the upper left corner.
In a specific implementation, the first physical location information may be obtained from a mouse moving event of Windows, or the first physical location information of the cursor may be obtained through a GetCursorPos function of an interface function of Windows.
Of course, the embodiment of the present invention is not limited to the above-mentioned manner for determining the first physical position information of the cursor, and those skilled in the art may use other manners to determine the physical position of the cursor, and the embodiment of the present invention is not limited thereto.
After determining the first physical location, the first physical location may be displayed in a preset location in the first business window.
In a preferred embodiment of the present invention, after determining the first physical location information of the cursor, the present invention may further include the following steps:
and displaying corresponding first business data at the position of the cursor in the first business window.
Specifically, after the first physical position information of the cursor is determined, the position of the cursor may be located according to the first physical position information, and the corresponding cursor is activated in the position.
As a preferred example of the embodiment of the present invention, the cursor may include a cross cursor.
As an example, if the first business object is a K-line graph of a certain stock, the first business data may include information such as time, value, opening price, closing price, highest price, lowest price, volume of trades, amplitude, handoff rate, and stock of circulation.
After determining the first business data of the first business object, the first business data may be displayed in the first business window.
In a specific implementation, the first business data may be displayed in the form of a small window in the first business window.
Sub-step S12, converting the first physical position information into logical position information of the cursor.
In a particular implementation, the first business window may include a first planar coordinate system, and the first business object may be displayed in the first planar coordinate system.
Further, the ordinate of the first planar coordinate system may show the first characteristic data range, and the abscissa may show the first time range. The first characteristic data may be historical data of characteristic data indicated by the first business object, for example, for stock data, the historical data may be historical transaction prices. The first time range may be the time range indicated by the first business object.
For example, if the first business object is a daily graph of a stock, the abscissa of the first planar coordinate system where the first business object is located displays a first time range of the start time and the end time of the daily graph, for example, the start time is 9:30, and the end time is 15: 00; the ordinate of the first planar coordinate system may be the historical trading price range of the stock corresponding to the daily graph, such as 3100.7-3131.7.
In the embodiment of the present invention, after the first physical position information of the cursor after the user operation is determined, the first physical position information may be further converted into the logical position information according to the first characteristic data range displayed in the ordinate and the first time range displayed in the abscissa of the first planar coordinate system.
The first physical location information may include a first physical abscissa and a first physical ordinate, and the logical location information may include a logical abscissa and a logical ordinate.
In a preferred embodiment of the present invention, the sub-step S12 further includes the following sub-steps:
a substep S121 of determining a length of a vertical coordinate and a length of a horizontal coordinate of the first planar coordinate system;
in a specific implementation, when the first planar coordinate system is displayed in the first business window, the length of the ordinate and the length of the abscissa of the first planar coordinate system may be determined according to the screen size of the first business window.
Specifically, the length of the ordinate of the first planar coordinate system may be measured according to the length of the first service window; and measuring the length of the abscissa of the first plane coordinate system according to the width of the first service window, namely calculating the length of the x axis and the length of the y axis.
The length of the ordinate and the length of the abscissa of the first planar coordinate system can be the length of the pixel point.
For example, the screen size is 1280 × 1024, the length of the ordinate and the length of the abscissa of the first planar coordinate system may be 1000 and 1000, respectively.
Substep S122, obtaining the number of the first business objects in the first time range;
in a specific implementation, all the first business objects displayed in the first planar coordinate system are first business objects within a first time range, and the number of the first business objects can be obtained.
Substep S123, calculating a first proportional relationship between the first physical ordinate and the length of the ordinate of the first planar coordinate system, and a second proportional relationship between the first physical abscissa and the length of the abscissa of the first planar coordinate system;
in a specific implementation, the first physical abscissa and the first physical ordinate have a proportional relationship with the length of the abscissa and the length of the ordinate, respectively, of the first planar coordinate system, and the proportional relationship may also be applicable to the logical abscissa and the logical ordinate.
Specifically, a ratio between the first physical ordinate and the length of the ordinate of the first planar coordinate system may be calculated as the first proportional relationship, and a ratio between the first physical abscissa and the length of the abscissa of the first planar coordinate system may be calculated as the second proportional relationship.
For example, the first physical position information is (620, 480), the length of the ordinate and the length of the abscissa of the first planar coordinate system may be 1000 and 1000, respectively, and the first proportional relationship is 480/1000-0.48 and the second proportional relationship is 620/1000-0.62.
Substep S124, determining a logical ordinate based on the first proportional relationship and the first characteristic data range;
in the embodiment of the present invention, since the physical location information and the logical location information are for the same coordinate point in the same planar coordinate system, and the proportional relationship between the logical ordinate and the first feature data range conforms to the first proportional relationship, the logical ordinate may be determined according to the first proportional relationship and the first feature data range.
In a specific implementation, the length of the first feature data range may be calculated first, then the length of the logical ordinate from the start data of the first feature data range may be determined according to the product of the first proportional relationship and the length of the first feature data range, and the logical ordinate may be determined according to the length of the logical ordinate from the start data of the first feature data range.
For example, referring to the above example, if the first proportional relationship is 0.48, the second proportional relationship is 0.62, the first characteristic data range is the historical trading price range, and if 3100.7-3131.7 is assumed, the length of the first characteristic data range is 31 (the difference between 3131.7 and 3100.7), and the length of the start data of the logical ordinate from the first characteristic data range is: 31 × 0.48 — 14.88, resulting in a logical ordinate of 3100.7+14.88 — 3115.58.
And a substep S125 of determining a logical abscissa based on the second proportional relationship and the number of the first business objects.
Similar to the relationship of the logical ordinate, if the proportional relationship between the logical abscissa and the number of the first business objects conforms to the second proportional relationship, the logical abscissa can be determined according to the second proportional relationship and the number of the first business objects.
In a preferred embodiment of the present invention, the logical abscissa may be represented by the first business object index and a second time range of the first business object corresponding to the first business object index, and then the sub-step S125 further includes the following sub-steps:
substep S1251, determining a matched first business object index based on the second proportional relationship and the number of the first business objects;
the first business object index is the data index, that is, the cursor is located in the k-line, which is the whole k-line graph, and the serial number of the k-line row where the cursor is located increases with 0.
In the embodiment of the present invention, since the physical location information and the logical location information are directed to the same coordinate point in the same planar coordinate system, and the proportional relationship between the first service object index and the number of the first service objects conforms to the second proportional relationship, the first service object index may be determined according to the second proportional relationship and the number of the first service objects.
For example, referring to the above example, if the second proportional relationship is 0.6 and the number of the first service objects is 10, the first service object index is: 10 × 0.6 ═ 6, that is, the cursor is located in the 6 th line K.
Step S1252, obtaining a second time range of the first service object corresponding to the matched first service object index;
after the first service object index is obtained, the start time and the end time of the first service object corresponding to the first service object index can be obtained, and the start time and the end time of the first service object corresponding to the first service object index form a second time range.
For example, if the starting time of the 6 th K line is 10:00 and the ending time is 14:00, the second time range is [10:00, 14:00 ].
Substep S1253, organizing said matched first business object index and said second time range into a logical abscissa.
After determining the first business object index and its corresponding second time range, the two may be organized into a logical abscissa, which may be expressed as (first business object index, second time range), as an example.
For example, in the above example, if the second time range of the 6 th K line is [10:00, 14:00], the logical abscissa is (6, [10:00, 14:00]), and if the logical ordinate is 3115.58, the corresponding logical position information is ((6, [10:00, 14:00]), 3115.58).
In a specific implementation, after the logical location information is determined, the logical location information may be displayed in a preset location in the first service window.
Step 103, sending the cursor position information to one or more second business windows;
in a specific implementation, after obtaining the logical position information of the cursor, the first service window may send the logical position information to other currently opened windows by calling a synchronization function provided by other non-cursor activated windows, where the other windows are one or more second service windows currently opened.
And 104, displaying the cursor in a position corresponding to the cursor position information in the second service window.
Specifically, after the one or more second service windows receive the logical position information, for each second service window, a corresponding cursor may be activated in a position corresponding to the logical position information, and the cursor is displayed.
In a preferred embodiment of the present invention, step 104 may comprise the following sub-steps:
a substep S21 of converting the logical location information into second physical location information based on the second traffic window;
after the second service window receives the logical location information, the logical location information may be converted into second physical location information corresponding to the second service window.
In a particular implementation, the second business window can include a second planar coordinate system, and the second business object can be displayed in the second planar coordinate system.
Further, the ordinate of the second planar coordinate system may display a second characteristic data range, and the abscissa may display a third time range. The second characteristic data may be historical data of characteristic data indicated by the second business object, for example, for stock data, the historical data may be historical transaction prices. The third time range may be the time range indicated by the second business object.
For example, if the second business object is a 30-minute line graph of a stock, the abscissa of the second planar coordinate system where the second business object is located displays a second time range which can be the start time and the end time of the 30-minute line graph, such as 13:00 for the start time and 13:30 for the end time; the ordinate of the second planar coordinate system may be the historical trading price range of the stock corresponding to the daily map, such as 3100.7-3131.7.
In the embodiment of the present invention, after the second service window receives the logical position information, the logical position information may be further converted into second physical position information according to a second characteristic data range displayed by the ordinate of the second planar coordinate system and a third time range displayed by the abscissa.
The second physical position information may include a second physical abscissa and a second physical ordinate.
In a preferred embodiment of the present invention, the sub-step S21 further includes the following sub-steps:
substep S211, determining a length of a vertical coordinate and a length of a horizontal coordinate of the second planar coordinate system;
in a specific implementation, when the second planar coordinate system is displayed in the second service window, the length of the ordinate and the length of the abscissa of the second planar coordinate system may be determined according to the screen size of the second service window.
Specifically, the length of the ordinate of the second planar coordinate system may be measured according to the length of the second service window; and measuring the length of the abscissa of the second planar coordinate system according to the width of the second service window, namely calculating the length of the x axis and the length of the y axis in the second planar coordinate system.
The length of the ordinate and the length of the abscissa of the second planar coordinate system can be the length of the pixel point.
For example, the screen size of the second business window is 1280 × 1024, and the length of the ordinate and the length of the abscissa of the second planar coordinate system may be 1000 and 1000, respectively.
Substep S212, determining a second business object matching the second time range from all the second business objects displayed in the second planar coordinate system;
after determining the second time range from the logical position information, the second time range may be compared with a third time range, and if the second time range is greater than the third time range, one or more second business objects matching the second time range in the second planar coordinate system may be selected; if the second time range is smaller than the third time range, one second business object matched with the second time range in the second plane coordinate system can be used.
For example, if the first business window is a lunar line display window, the cross cursor is on a certain lunar line, and the second business window is a sun line display window, then a lunar line may correspond to a plurality of sun lines. If the first business window is a date line display window, the cross cursor is on a certain date line, and the second business window is a month line display window, then one date line corresponds to a certain part of the month line in the second business window.
In a preferred embodiment of the present invention, in order to more accurately indicate the form of the second service object matching the second time range, the embodiment of the present invention may further include the following steps:
and highlighting the second business object matched with the second time range in the second business window.
Specifically, if the second time range is greater than the third time range and the number of the second service objects matched with the second time range is multiple, the multiple matched second service objects may be highlighted; if the second time range is less than the third time range, a portion of the matched second business object corresponding to the second time range may be highlighted.
As one example, the highlight may be a highlighted background display.
Substep S213, acquiring the data start time and the data end time of the matched second service object, and organizing the data start time and the data end time into a fourth time range;
after determining a second business object that matches the second time range, the data start time and the data end time of the matching second business object may be organized into a fourth time range.
Specifically, if the number of the second business objects matching the second time range is multiple, the start times of the multiple second business objects are obtained respectively, and the earliest start time among the start times of the multiple second business objects is taken as the start time of the fourth time range; and respectively obtaining the end times of the plurality of second business objects, and taking the latest end time in the end times of the plurality of second business objects as the end time of the fourth time range.
For example, if the number of the second service objects is two, and the corresponding start time and end time are (10:10, 10:20) and (10:10, 10:30), respectively, the corresponding fourth time range is (10:10, 10: 30).
And if the number of the second business objects matched with the second time range is one, acquiring the starting time and the ending time of the second business objects to organize the second time range into a fourth time range.
A substep S214 of calculating a third proportional relationship between the fourth time range and the third time range;
after the fourth time range is determined, a ratio of the fourth time range to the third time range may be calculated to obtain a third proportional relationship.
For example, if the start time of the 30-minute graph is 13:00, the end time is 13:30, the corresponding time period is 30 minutes, and the time period corresponding to the fourth time range is 20 minutes, the third proportional relationship is 20/30-0.67.
Substep S215, determining a second physical abscissa based on the third proportional relationship and the length of the abscissa of the second planar coordinate system;
in the embodiment of the present invention, since the physical location information and the logical location information are directed to the same coordinate point in the same planar coordinate system, the proportional relationship between the second physical abscissa and the length of the abscissa of the second planar coordinate system also conforms to the third proportional relationship, and the second physical abscissa can be determined according to the third proportional relationship and the length of the abscissa of the second planar coordinate system.
For example, referring to the above example, if the third proportional relationship is 0.67 and the length of the abscissa of the second planar coordinate system is 1000 pixels, the corresponding second physical abscissa is the position of 670 pixels.
Substep S216, calculating a fourth proportional relationship between the length of the logical ordinate relative to the start position of the second characteristic data range and the length corresponding to the second characteristic data range;
specifically, after the logical ordinate is determined, the length of the logical ordinate with respect to the start position of the second feature data range may be calculated, and the length corresponding to the second feature data range may be calculated, and then the fourth proportional relationship between the two may be calculated.
For example, if the logical ordinate is 3115.7 and the second feature data range is 3100.7-3130.7, the length of the logical ordinate with respect to the start position of the second feature data range is 3115.7-3100.7-15 pixels, the length of the second feature data range is 3130.7-3100.7-30, and the fourth proportional relationship is 15/30-0.5.
And a substep S217, determining a second physical ordinate based on the fourth proportional relationship and the length of the ordinate of the second planar coordinate system.
For example, if the length of the ordinate of the second planar coordinate system is 1000 pixels and the fourth proportional relationship is 0.5, the second physical ordinate is 1000 × 0.5 — 500 pixels.
And a substep S22, activating a cursor in a position corresponding to the second physical position information.
After the second physical position information is determined, a corresponding position may be determined according to the second physical position information, and a cursor may be activated at the corresponding position to display the cursor at the position corresponding to the second physical position information.
In a preferred embodiment of the present invention, after determining the second physical position information of the cursor, the embodiment of the present invention may further include the following steps:
and displaying corresponding second service data at the position of the cursor in the second service window.
Specifically, after the second physical position information of the cursor is determined, the position of the cursor may be located according to the second physical position information, and the corresponding cursor is activated in the position.
As a preferred example of the embodiment of the present invention, the cursor may include a cross cursor.
As an example, if the second business object is a K-line graph of a certain stock, the first business data may include information such as time, value, opening price, closing price, highest price, lowest price, volume of trades, amplitude, handoff rate, and stock of circulation.
After determining the second service data of the second service object, the second service data may be displayed in the second service window.
In a specific implementation, the second service data may be displayed in the form of a small window in the second service window.
In the embodiment of the invention, after the cursor input operation is captured in the first service window, the cursor position information corresponding to the cursor input operation is determined, and the cursor position information is sent to one or more second service windows, so that the cursor is activated in the position corresponding to the cursor position information in the second service windows, and therefore, the linkage of the first service window and the second service windows is realized, a user can conveniently view data on different windows, the user can conveniently and accurately compare data in the same period or data graphic forms in the same time period in different periods, and the efficiency of the user in viewing and analyzing different windows is improved.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 2, a block diagram of a cursor linkage device according to an embodiment of the present invention is shown, which may specifically include the following modules:
a cursor input capturing module 201, configured to capture a cursor input operation in a first business window;
a cursor position information determining module 202, configured to determine cursor position information corresponding to the cursor input operation;
a cursor position information sending module 203, configured to send the cursor position information to one or more second service windows;
a cursor display module 204, configured to display the cursor in a position corresponding to the cursor position information in the second service window.
In a preferred embodiment of the present invention, the cursor position information is logic position information of the cursor;
the cursor position information determining module 202 includes:
the first physical position acquisition submodule is used for acquiring first physical position information of a cursor corresponding to the cursor input operation;
and the first position conversion submodule is used for converting the first physical position information into the logic position information of the cursor.
In a preferred embodiment of the present invention, the first service window includes a first planar coordinate system, and a vertical coordinate of the first planar coordinate system displays a first characteristic data range and a horizontal coordinate of the first planar coordinate system displays a first time range; the first physical position information comprises a first physical abscissa and a first physical ordinate; the logical position information comprises a logical abscissa and a logical ordinate;
the first position conversion sub-module includes:
a first coordinate length determination unit for determining a length of a vertical coordinate and a length of a horizontal coordinate of the first planar coordinate system;
a first service quantity obtaining unit, configured to obtain the quantity of the first service objects in the first time range;
a proportional relation calculating unit for calculating a first proportional relation between the first physical ordinate and a length of the ordinate of the first planar coordinate system, and a second proportional relation between the first physical abscissa and a length of the abscissa of the first planar coordinate system;
a logical ordinate determining unit configured to determine a logical ordinate based on the first proportional relationship and the first feature data range;
a logical abscissa determining unit, configured to determine a logical abscissa based on the second proportional relationship and the number of the first business objects.
In a preferred embodiment of the present invention, the logical abscissa determining unit is further configured to:
determining a matched first business object index based on the second proportional relation and the number of the first business objects;
acquiring a second time range of the first service object corresponding to the matched first service object index;
organizing the matched first business object index and the second time range into a logical abscissa.
In a preferred embodiment of the present invention, the cursor display module 204 includes:
a second position conversion sub-module, configured to convert the logical position information into second physical position information based on the second service window;
and the cursor activating submodule is used for activating the cursor in the position corresponding to the second physical position information.
In a preferred embodiment of the present invention, the second service window includes a second planar coordinate system, and a vertical coordinate of the second planar coordinate system displays a second characteristic data range and a horizontal coordinate of the second planar coordinate system displays a third time range; the second physical position information comprises a second physical abscissa and a second physical ordinate;
the second position conversion sub-module includes:
a second coordinate length determination unit for determining a length of a vertical coordinate and a length of a horizontal coordinate of the second planar coordinate system;
a second object determination unit, configured to determine a second business object matching the second time range from all second business objects displayed in the second planar coordinate system;
the time range organization unit is used for acquiring the data start time and the data end time of the matched second business object and organizing the data start time and the data end time into a fourth time range;
the first calculating unit is used for calculating a third proportional relation between the fourth time range and the third time range;
a second physical abscissa determining unit, configured to determine a second physical abscissa based on the third proportional relationship and a length of an abscissa of the second planar coordinate system;
the second calculation unit is used for calculating a fourth proportional relation between the length of the logical ordinate relative to the starting position of the second characteristic data range and the length corresponding to the second characteristic data range;
and the second physical vertical coordinate determining unit is used for determining a second physical vertical coordinate based on the fourth proportional relation and the length of the vertical coordinate of the second plane coordinate system.
In a preferred embodiment of the embodiments of the present invention, the system further includes:
and the business object highlighting module is used for highlighting the second business object matched with the second time range in the second business window.
In a preferred embodiment of the embodiments of the present invention, the system further includes:
the first service data display module is used for displaying corresponding first service data at the position of the cursor in the first service window;
and the second service data display module is used for displaying corresponding second service data at the position of the cursor in the second service window.
In a preferred embodiment of the present invention, the cursor input operation includes a mouse input operation and/or a keyboard input operation; and if the cursor input operation is a keyboard input operation, the cursor corresponding to the cursor input operation is the cursor after the current cursor moves to the position corresponding to the keyboard input operation.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (7)

1. A cursor linkage method, the method comprising:
capturing cursor input operation in a first business window; the first business window comprises a first plane coordinate system, the ordinate of the first plane coordinate system displays a first characteristic data range, and the abscissa displays a first time range;
determining cursor position information corresponding to the cursor input operation; the cursor position information is the logic position information of the cursor;
sending the cursor position information to one or more second business windows;
displaying the cursor in a position corresponding to the cursor position information in the second service window;
the step of determining cursor position information corresponding to the cursor input operation comprises:
acquiring first physical position information of a cursor corresponding to the cursor input operation; the first physical position information comprises a first physical abscissa and a first physical ordinate;
converting the first physical position information into logical position information of the cursor; the logical position information comprises a logical abscissa and a logical ordinate;
the step of converting the first physical location information into logical location information of the cursor includes:
determining the length of the ordinate and the length of the abscissa of the first planar coordinate system;
acquiring the number of first business objects in the first time range;
calculating a first proportional relationship between the first physical ordinate and the length of the ordinate of the first planar coordinate system, and a second proportional relationship between the first physical abscissa and the length of the abscissa of the first planar coordinate system;
determining a logical ordinate based on the first proportional relationship and the first characteristic data range;
determining a logical abscissa based on the second proportional relationship and the number of the first business objects;
the step of determining a logical abscissa based on the second proportional relationship and the number of the first business objects comprises:
determining a matched first business object index based on the second proportional relation and the number of the first business objects;
acquiring a second time range of the first service object corresponding to the matched first service object index;
organizing the matched first business object index and the second time range into a logical abscissa.
2. The method according to claim 1, wherein the step of displaying the cursor in the position corresponding to the cursor position information in the second business window comprises:
converting the logical location information into second physical location information based on the second service window;
and activating a cursor in a position corresponding to the second physical position information.
3. The method of claim 2, wherein the second business window comprises a second planar coordinate system, wherein an ordinate of the second planar coordinate system displays a second characteristic data range and an abscissa of the second planar coordinate system displays a third time range; the second physical position information comprises a second physical abscissa and a second physical ordinate;
the step of converting the logical location information into second physical location information based on the second service window includes:
determining the length of the ordinate and the length of the abscissa of the second planar coordinate system;
determining a second business object matched with the second time range from all second business objects displayed in the second plane coordinate system;
acquiring the data start time and the data end time of the matched second service object, and organizing the data start time and the data end time into a fourth time range;
calculating a third proportional relationship between the fourth time range and the third time range;
determining a second physical abscissa based on the third proportional relationship and the length of the abscissa of the second planar coordinate system;
calculating a fourth proportional relation between the length of the logic ordinate relative to the starting position of the second characteristic data range and the length corresponding to the second characteristic data range;
and determining a second physical ordinate based on the fourth proportional relation and the length of the ordinate of the second planar coordinate system.
4. The method of claim 3, further comprising:
and highlighting the second business object matched with the second time range in the second business window.
5. The method of claim 1, further comprising:
displaying corresponding first business data at the position of the cursor in the first business window;
and displaying corresponding second service data at the position of the cursor in the second service window.
6. The method of claim 1, wherein the cursor input operation comprises a mouse input operation and/or a keyboard input operation; and if the cursor input operation is a keyboard input operation, the cursor corresponding to the cursor input operation is the cursor after the current cursor moves to the position corresponding to the keyboard input operation.
7. A cursor linkage device, the device comprising:
the cursor input capturing module is used for capturing cursor input operation in the first business window; the first business window comprises a first plane coordinate system, the ordinate of the first plane coordinate system displays a first characteristic data range, and the abscissa displays a first time range;
the cursor position information determining module is used for determining cursor position information corresponding to the cursor input operation; the cursor position information is the logic position information of the cursor;
the cursor position information sending module is used for sending the cursor position information to one or more second business windows;
the cursor display module is used for displaying the cursor in a position corresponding to the cursor position information in the second service window;
the cursor position information determination module includes:
the first physical position acquisition submodule is used for acquiring first physical position information of a cursor corresponding to the cursor input operation; the first physical position information comprises a first physical abscissa and a first physical ordinate;
the first position conversion submodule is used for converting the first physical position information into the logic position information of the cursor; the logical position information comprises a logical abscissa and a logical ordinate;
the first position conversion sub-module includes:
a first coordinate length determination unit for determining a length of a vertical coordinate and a length of a horizontal coordinate of the first planar coordinate system;
a first service quantity obtaining unit, configured to obtain the quantity of the first service objects in the first time range;
a proportional relation calculating unit for calculating a first proportional relation between the first physical ordinate and a length of the ordinate of the first planar coordinate system, and a second proportional relation between the first physical abscissa and a length of the abscissa of the first planar coordinate system;
a logical ordinate determining unit configured to determine a logical ordinate based on the first proportional relationship and the first feature data range;
a logical abscissa determining unit, configured to determine a logical abscissa based on the second proportional relationship and the number of the first business objects;
the logical abscissa determination unit is further configured to:
determining a matched first business object index based on the second proportional relation and the number of the first business objects;
acquiring a second time range of the first service object corresponding to the matched first service object index;
organizing the matched first business object index and the second time range into a logical abscissa.
CN201611088235.6A 2016-11-30 2016-11-30 Cursor linkage method and device Active CN106775219B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611088235.6A CN106775219B (en) 2016-11-30 2016-11-30 Cursor linkage method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611088235.6A CN106775219B (en) 2016-11-30 2016-11-30 Cursor linkage method and device

Publications (2)

Publication Number Publication Date
CN106775219A CN106775219A (en) 2017-05-31
CN106775219B true CN106775219B (en) 2020-06-05

Family

ID=58915267

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611088235.6A Active CN106775219B (en) 2016-11-30 2016-11-30 Cursor linkage method and device

Country Status (1)

Country Link
CN (1) CN106775219B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107358528A (en) * 2017-06-20 2017-11-17 灯塔财经信息有限公司 The exchange method and system of security curve are checked based on the operation of direction sensing equipment
CN107908454A (en) * 2017-11-17 2018-04-13 武汉楚鼎信息技术有限公司 A kind of interlock method and device of the multiwindow packet based on more bookmarks
CN112462999B (en) * 2020-10-30 2022-05-24 北京数秦科技有限公司 Display method, display device and storage medium
CN115185414B (en) * 2022-07-26 2024-04-19 Vidaa国际控股(荷兰)公司 Display device and cursor control method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1091537A (en) * 1992-11-09 1994-08-31 布莱恩·杨大学 Show in the time of to related data sources and carry out synchronous method and system
CN101178631A (en) * 2006-11-06 2008-05-14 三星电子株式会社 Computer system and method thereof
CN101587396A (en) * 2008-05-21 2009-11-25 深圳富泰宏精密工业有限公司 Touch-control input and output synchronous system and touch-control input and output synchronous method
CN104375666A (en) * 2014-12-11 2015-02-25 上海触乐信息科技有限公司 Cross-equipment input method, processing device, input equipment and intelligent display equipment
CN104679723A (en) * 2013-11-29 2015-06-03 北京壹人壹本信息科技有限公司 Text contrast display method, system and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100162151A1 (en) * 2008-12-19 2010-06-24 Microsoft Corporation Techniques for organizing information on a computing device using movable objects

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1091537A (en) * 1992-11-09 1994-08-31 布莱恩·杨大学 Show in the time of to related data sources and carry out synchronous method and system
CN101178631A (en) * 2006-11-06 2008-05-14 三星电子株式会社 Computer system and method thereof
CN101587396A (en) * 2008-05-21 2009-11-25 深圳富泰宏精密工业有限公司 Touch-control input and output synchronous system and touch-control input and output synchronous method
CN104679723A (en) * 2013-11-29 2015-06-03 北京壹人壹本信息科技有限公司 Text contrast display method, system and device
CN104375666A (en) * 2014-12-11 2015-02-25 上海触乐信息科技有限公司 Cross-equipment input method, processing device, input equipment and intelligent display equipment

Also Published As

Publication number Publication date
CN106775219A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
US9396058B2 (en) Enhanced error detection with behavior profiles
CN107690657B (en) Trade company is found according to image
CN106775219B (en) Cursor linkage method and device
US11507489B2 (en) Interactive model performance monitoring
US11989743B2 (en) System and method for processing public sentiment, computer storage medium and electronic device
CN111405475B (en) Multidimensional sensing data collision fusion analysis method and device
US11921795B2 (en) Data normalization and extraction system
CN106940697B (en) Time sequence data visualization method and equipment
KR101971087B1 (en) Displaying method for market sentiment index information and online stock dealing service system
US20190332859A1 (en) Method for identifying main picture in web page
US11775144B2 (en) Place-based semantic similarity platform
CN111026981B (en) Visual display method, device and equipment for hot topics
CN114841815A (en) Transaction analysis method and device, electronic equipment and computer-readable storage medium
CN115186063A (en) Service data processing method, device, equipment and storage medium
CN115048487A (en) Artificial intelligence-based public opinion analysis method, device, computer equipment and medium
CN117633351A (en) Real-time recall method, device, equipment and storage medium in recommendation process
CN110674943A (en) Financial knowledge network management method, system, medium and equipment
Ma et al. Generating Summarized Preview for Education Resource based on Exploring and Comparing GUIs.
CN115760149A (en) Passenger group identification method and device based on multivariate data tagging and electronic equipment
Van Deventer Mediating effect of mobile banking trust on information and system quality
KR20230016268A (en) Method and device for providing service for statistical analysis of real estate based on big data
CN116934341A (en) Transaction risk assessment method, device, electronic equipment and medium
CN116361030A (en) Asset measurement method, data processing method, system and device
CN114627544A (en) Method and device for monitoring internet user experience
CN117056628A (en) Data display method, device, equipment and storage medium thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Xu Xiaoming

Inventor after: Liang Zhiwei

Inventor before: Xu Xiaoming