CN115480765A - Method and device for configuring rolling time axis, electronic equipment and storage medium - Google Patents
Method and device for configuring rolling time axis, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN115480765A CN115480765A CN202210989152.3A CN202210989152A CN115480765A CN 115480765 A CN115480765 A CN 115480765A CN 202210989152 A CN202210989152 A CN 202210989152A CN 115480765 A CN115480765 A CN 115480765A
- Authority
- CN
- China
- Prior art keywords
- time axis
- rolling
- boundary
- initial
- configuration
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction 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/0485—Scrolling or panning
- G06F3/04855—Interaction with scrollbars
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04883—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
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)
- Software Systems (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application relates to the technical field of software, in particular to a configuration method and device of a rolling time axis, electronic equipment and a storage medium, wherein the method comprises the following steps: the method comprises the steps of obtaining the current touch event type and/or the sliding monitoring instruction of a rolling time axis, determining the translation distance, the first boundary time scale and the second boundary time scale of the rolling time axis according to the single-finger touch type, determining the scaling of the rolling time axis according to the multi-finger touch type, and determining the target configuration action of the rolling time axis according to the sliding monitoring instruction; configuring the scroll timeline according to the translation distance, the first boundary time scale and the second boundary time scale, or a zoom scale, or a target configuration action. According to the configuration method of the rolling time axis, based on the user-defined view, the configuration data of the server side are read, the style of the machine side is adjusted in a rendering process by matching with various gestures, meanwhile, the calculation precision in sliding is improved, the performance loss of the machine side is reduced, and the operating environment is smooth and natural.
Description
Technical Field
The present application relates to the field of software technologies, and in particular, to a method and an apparatus for configuring a rolling timeline, an electronic device, and a storage medium.
Background
With the development of technology, the application of computer and software has achieved remarkable results, and the users of the new generation of mobile terminals have made higher demands on the operability of application software and the comfort of software operation. Besides the strong functions of the software, the application software is expected to provide an easy, pleasant and good-feeling operating environment as much as possible, which indicates that the friendly interface design has become an important component of Android application development.
At present in the information-based era, under the rapid development of communication technology, the car machine performance is greatly improved, the interaction with a server is more convenient, and more customized and intelligent services can be provided for users, so that the number of networked cars is suddenly and violently increased.
In the related art, the update iteration of the car machine is slow and lags behind the development of mobile terminals such as mobile phones and tablets, so that the software effect and operability on the car machine cannot be comparable to the use feeling of the mobile terminals which people daily contact, and people neglect the development potential of the car machine for a long time, and improvement is urgently needed.
Disclosure of Invention
The application provides a configuration method and device of a rolling time axis, electronic equipment and a storage medium, and aims to solve the problems that the updating iteration of a vehicle machine is slow, and performances such as software effect and operability cannot meet good operation experience of a user.
An embodiment of a first aspect of the present application provides a configuration method of a rolling timeline, including the following steps: acquiring a current touch event type and/or a sliding monitoring instruction of a rolling time axis, wherein the current touch event type is a single-finger touch type or a multi-finger touch type; determining a translation distance, a first boundary time scale and a second boundary time scale of the rolling time axis according to the single-finger touch type, determining a scaling of the rolling time axis according to the multi-finger touch type, and determining a target configuration action of the rolling time axis according to the sliding monitoring instruction; and configuring the scroll timeline according to the translation distance, the first boundary time scale and the second boundary time scale, or the zoom scale, or the target configuration action.
According to the technical means, the sliding and zooming in and out in various directions are supported through the single-finger touch type or the multi-finger touch type and the sliding monitoring instruction, and the use feeling of the operation environment is improved.
Further, in an embodiment of the present application, before obtaining the current touch event type and/or the swipe listening instruction of the scroll timeline, the method further includes: acquiring initial scale configuration parameters, initial time axis configuration parameters, initial speed configuration parameters, initial boundary configuration parameters and initial time axis event configuration parameters of the rolling time axis; initializing the rolling time axis according to the initial scale configuration parameter, the initial time axis configuration parameter, the initial speed configuration parameter, the initial boundary configuration parameter and the initial time axis event configuration parameter; and the initial speed configuration parameters are determined by the maximum sliding speed and the minimum sliding speed which are calculated by the pixel values of the screen where the scroll time axis is located.
According to the technical means, the precision of time axis sliding is improved by acquiring various configuration parameters.
Further, in an embodiment of the present application, the above method for configuring a rolling time axis further includes: receiving filling data sent by a preset cloud end; corresponding the event in the filling data to a rectangular square on the rolling time axis; and when the rectangular square block is positioned on the central axis of the rolling time axis, filling a preset color in the rectangular square block.
According to the technical means, the rectangular squares on the scroll time axis are filled with edges, so that the visual experience of a user is improved.
Further, in an embodiment of the present application, the determining the translation distance, the first boundary time scale and the second boundary time scale of the scroll timeline according to the single-finger touch type includes: acquiring first coordinate information of a current finger, and according to the coordinate information; and calculating the translation distance, the first boundary time scale and the second boundary time scale of the rolling time axis according to the coordinate information.
According to the technical means, the distance and the time scale of the front and back movement of the gesture are calculated by obtaining the coordinate information of the gesture, and the touch precision is improved.
Further, in an embodiment of the present application, the determining a scaling of the scroll timeline according to the multi-finger touch type includes: acquiring coordinate information of two preset fingers; calculating the difference between the distances between the two preset fingers during and after touch according to the coordinate information of the two preset fingers; and calculating the scaling of the rolling time axis according to the difference of the intervals and the time interval of the first boundary and the second boundary.
According to the technical means, the difference of the distances before and after the touch is calculated by acquiring the coordinate information of the gesture, and the touch precision is improved.
Further, in an embodiment of the present application, the determining a target configuration action of the scrolling timeline according to the sliding listening instruction includes: acquiring a target time point, a rolling state, first reminding information of change of a currently selected time point and second reminding information of the currently selected time point as a time scale end point of the rolling time shaft; and determining the target configuration action according to the target time point, the rolling state, the first reminding information and the second reminding information.
According to the technical means, the sliding is more in accordance with the interactive logic due to the rolling effect, and the experience of the user is improved.
The embodiment of the second aspect of the present application provides a configuration device for scrolling a timeline, including: the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring the current touch event type and/or a sliding monitoring instruction of a rolling time axis, and the current touch event type is a single-finger touch type or a multi-finger touch type; the determining module is used for determining the translation distance, the first boundary time scale and the second boundary time scale of the rolling time axis according to the single-finger touch type, determining the scaling of the rolling time axis according to the multi-finger touch type, and determining the target configuration action of the rolling time axis according to the sliding monitoring instruction; and a configuration module, configured to configure the scroll timeline according to the translation distance, the first boundary time scale, and the second boundary time scale, or the zoom scale, or the target configuration action.
Further, in an embodiment of the application, before the obtaining of the current touch event type and/or the swipe monitoring instruction of the scroll timeline, the obtaining module further includes: the acquiring unit is used for acquiring an initial scale configuration parameter, an initial time axis configuration parameter, an initial speed configuration parameter, an initial boundary configuration parameter and an initial time axis event configuration parameter of the rolling time axis; a configuration unit, configured to initialize the rolling timeline according to the initial scale configuration parameter, the initial timeline configuration parameter, the initial speed configuration parameter, the initial boundary configuration parameter, and the initial timeline event configuration parameter; and the initial speed configuration parameters are determined by the maximum sliding speed and the minimum sliding speed which are calculated by the pixel values of the screen where the scroll time axis is located.
Further, in an embodiment of the present application, the above configuration apparatus for scrolling through a timeline further includes: the receiving device is used for receiving filling data sent by a preset cloud end; corresponding means for corresponding events in said filler data to rectangular blocks on said rolling timeline; and when the rectangular square is positioned on the central axis of the rolling time axis, filling a preset color in the rectangular square.
Further, in an embodiment of the present application, the determining module includes: the first acquisition unit is used for acquiring first coordinate information of the current finger and acquiring the first coordinate information according to the coordinate information; and the first calculation unit is used for calculating the translation distance, the first boundary time scale and the second boundary time scale of the rolling time axis according to the coordinate information.
Further, in an embodiment of the present application, the determining module includes: the second acquisition unit is used for acquiring coordinate information of two preset fingers; the second calculation unit is used for calculating the difference between the distances between the two preset fingers during and after touch according to the coordinate information of the two preset fingers; and the third calculation unit is used for calculating the scaling of the rolling time axis according to the difference of the distances and the time interval between the first boundary and the second boundary.
Further, in an embodiment of the present application, the determining module includes: a third acquiring unit, configured to acquire a target time point of the rolling timeline, a rolling state, first reminding information that a currently selected time point changes, and second reminding information that the currently selected time point is a time scale end point; and the determining unit is used for determining the target configuration action according to the target time point, the rolling state, the first reminding information and the second reminding information.
An embodiment of a third aspect of the present application provides an electronic device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor executing the program to implement the configuration method of the rolling timeline as described in the above embodiments.
A fourth aspect of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor, and is used to implement the configuration method of the rolling timeline according to the foregoing embodiment.
According to the method and the device, the translation distance, the first boundary time scale, the second boundary time scale, the scaling and the target configuration action of the scroll time axis are determined according to the single-finger touch type, the multi-finger touch type and the sliding monitoring instruction respectively by acquiring the current touch event type and/or the sliding monitoring instruction of the scroll time axis, and the scroll time axis is configured based on the data. Therefore, the problems that the updating iteration of the vehicle machine is slow, and the performances such as software effect and operability cannot meet the good operation experience of a user are solved.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The above and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a flowchart of a configuration method of a rolling timeline according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a timeline implementation apparatus according to an embodiment of the present application;
FIG. 3 is a schematic depiction of a timeline scale according to one embodiment of the present application;
FIG. 4 is a diagram illustrating a time axis data stuffing effect according to an embodiment of the present application;
FIG. 5 is a diagram illustrating timing for a timeline implementation according to an embodiment of the present application;
FIG. 6 is a block diagram of an example of a configuration device for scrolling through a timeline according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Description of the reference numerals: 10-configuration means for scrolling the time axis; 100-acquisition module, 200-determination module, 300-configuration module.
Detailed Description
Reference will now be made in detail to the embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
A method, an apparatus, an electronic device, and a storage medium for configuring a rolling timeline according to an embodiment of the present application are described below with reference to the drawings. In the method, the translation distance, the first boundary time scale, the second boundary time scale, the scaling ratio and the target configuration action of the rolling time axis are determined according to the single-finger touch type, the multi-finger touch type and the sliding monitoring instruction respectively by acquiring the current touch event type and/or the sliding monitoring instruction of the rolling time axis, and the rolling time axis is configured based on the data, so that the style of the rolling time axis is adjusted by reading configuration data of a server end in a rendering process by matching with various gestures, the calculation precision in the sliding process is improved, the performance loss of the vehicle machine is reduced, and the operation environment is smooth and natural. Therefore, the problems that the update iteration of the car machine is slow, and the performances such as software effect and operability cannot meet the good operation experience of a user are solved.
Specifically, fig. 1 is a flowchart illustrating a configuration method of a rolling timeline according to an embodiment of the present application.
As shown in fig. 1, the configuration method of the rolling time axis includes the following steps:
in step S101, a current touch event type and/or a slide listening instruction of a scroll timeline are obtained, where the current touch event type is a single-finger touch type or a multi-finger touch type.
Further, in an embodiment of the present application, before obtaining the current touch event type and/or the swipe listening instruction of the scroll timeline, the method further includes: acquiring initial scale configuration parameters, initial time axis configuration parameters, initial speed configuration parameters, initial boundary configuration parameters and initial time axis event configuration parameters of a rolling time axis; and initializing the rolling time shaft according to the initial scale configuration parameter, the initial time shaft configuration parameter, the initial speed configuration parameter, the initial boundary configuration parameter and the initial time shaft event configuration parameter.
Specifically, in order to implement moving and zooming in the interactive interface, a gesture monitoring instruction needs to be added, and parameters are recalled by monitoring the gesture, so that the current touch event type of the scrolling timeline is obtained, wherein the current touch event type is a single-finger touch type or a multi-finger touch type.
Further, before obtaining the current touch event type and/or the slide monitoring instruction operated by the user, it is also necessary to obtain related configuration parameters of the scroll timeline in the interactive interface, such as an initial scale configuration parameter, an initial timeline configuration parameter, an initial speed configuration parameter, an initial boundary configuration parameter, and an initial timeline event configuration parameter. The initial scale configuration parameters comprise default scales, scale mark heights and scale mark colors; initial time axis configuration parameters comprise the total time length of the time axis, the length of unit scales on the time axis and horizontal line coordinates; initial speed configuration parameters including a minimum sliding speed, a maximum sliding speed, a default sliding speed and a threshold speed for starting sliding, wherein the minimum sliding speed, the maximum sliding speed and the default sliding speed are calculated by pixel values of a screen where a rolling time axis is located; the initial boundary configuration parameters comprise a left boundary X-axis coordinate, a right boundary X coordinate, time corresponding to a left boundary and time corresponding to a right boundary; the initial time axis event configuration parameters comprise the height of a rectangle corresponding to each type of event, the selected height of a rectangle corresponding to each type of event, the color of a rectangle corresponding to each type of event and the selected color of a rectangle corresponding to each type of event, and the rolling time axis is initialized after the five configuration parameters are customized.
Specifically, firstly, drawing a custom View of a rolling time axis with scales in an Android system, adding global variable correspondence to each attribute of the custom time axis, setting a default value, and initializing a painting brush; secondly, establishing a MainThreadHandler for callback frequency control in subsequent sliding monitoring; and finally, acquiring the real minimum sliding speed and the real maximum sliding speed which are obtained by calculating the pixel value of the screen where the rolling time axis is positioned, adjusting the corresponding default sliding speed, capturing the abnormity in the process, and if the abnormity occurs, adopting the value of the initial speed configuration parameter.
In step S102, a translation distance, a first boundary time scale and a second boundary time scale of the scroll timeline are determined according to the single-finger touch type, a scaling of the scroll timeline is determined according to the multi-finger touch type, and a target configuration action of the scroll timeline is determined according to the slide monitor instruction.
Specifically, in order to determine the translation distance, the first boundary time scale, the second boundary time scale, the scaling and the target configuration action of the corresponding scroll timeline according to the touch type and the sliding monitoring instruction, first, an object mscralldetector of a getturedetector needs to be created globally, and three callback methods of rewriting a simpleongetturelistener interface are needed: respectively onDown, onScroll and onFlang. Calculating the current sliding time difference disTime by a callback parameter distanceX in the onScroll method, calculating the translation distance of the rolling time shaft, the left side edge distance time scale which is the first boundary time scale and the right side edge distance time scale which is the second boundary time scale by using the disTime, and calling the invalidate method to redraw the sliding animation; judging whether the current speed is greater than a threshold speed for starting sliding or not by calling back the absolute value of a parameter velocityX in an onFlang method, if so, calculating the acceleration, then calculating the distance for subsequent sliding, and finally registering an mSCrolDetector in the rolling time axis.
Further, in an embodiment of the present application, determining the translation distance, the first boundary time scale and the second boundary time scale of the scroll timeline according to the single-finger touch type includes: acquiring first coordinate information of a current finger, and according to the coordinate information; and calculating the translation distance, the first boundary time scale and the second boundary time scale of the rolling time axis according to the coordinate information.
Specifically, in the embodiment of the application, a gesture monitoring interface geturedetector is firstly arranged on a rolling time axis and used for monitoring each operation in the sliding or static process of the rolling time axis; secondly, when the gesture monitoring interface monitors that the rolling time axis slides to a certain position, at the moment, the time axis can be continuously redrawn in the sliding process, patterns such as the time axis and scales on the left side or the right side can be dynamically drawn according to the sliding direction, and data on the other side can be recycled.
Specifically, the ontouch event method is rewritten in the currently-defined rolling time axis, the current touch event type is acquired through the callback parameter event and is a single-finger touch type and is an ACTION _ DOWN operation, the distance of the rolling time axis needing to be translated, the left side distance time scale and the right side distance time scale are calculated through the X coordinate of the current finger, then the invalid method is called to redraw, and the sliding animation is realized through multiple calls.
Further, in one embodiment of the present application, determining a scaling of a scroll timeline according to a multi-finger touch type includes: acquiring coordinate information of two preset fingers; calculating the difference between the distances between the two preset fingers during and after touch according to the coordinate information of the two preset fingers; the scaling of the scrolling time axis is calculated based on the difference in pitch and the time interval between the first boundary and the second boundary.
Specifically, when the current touch event type is a multi-finger touch type obtained by calling back the parameter event, the difference between the distance between two fingers during touch and the distance between two fingers after touch is calculated by taking the coordinate information meters of the two fingers, the scaling ratio of a rolling time axis is calculated according to the time interval between the current first boundary and the current second boundary, the length of a unit scale on the time axis is modified, invalidate is called to redraw, and scaling animation is achieved through multiple times of calling.
Further, in an embodiment of the present application, the determining a target configuration action of scrolling the timeline according to the sliding listening instruction includes: acquiring a target time point of a rolling time shaft, a rolling state, first reminding information of the change of a currently selected time point and second reminding information of the currently selected time point as a time scale end point; and determining a target configuration action according to the target time point, the rolling state, the first reminding information and the second reminding information.
Specifically, when the external portion of the embodiment of the present application needs to use a customized scrolling timeline, a callback for sliding listening needs to be provided to determine a target configuration action of the scrolling timeline, so an onscreenlist interface is created, and the interface defines four sliding methods: respectively onScroll, onScrollStateChanged, onSelectTimeChanged and onScrollToEnd. Wherein, the onstrol is the time point of the time shaft scrolling in real time; onScrollStateChanged is a callback when the scrolling state of the time axis changes, wherein four sliding states are defined, respectively: the sliding is started, during sliding, finished and finished, and the user can call back the method; the onSelectTimeChanged is the first reminding information of the change of the current selection time point; onScrollToEnd is the second reminder information that has slid to the end, i.e. the current selection time point is the end point of the time scale.
It should be noted that, the four sliding methods described above need to be called under a certain condition of the mscralldetector.
Specifically, as shown in fig. 2, in the interaction of the implementation apparatus for scrolling the timeline, data of the server is acquired through the network and stored in the data providing component, the data is filled into the timeline through the adapter, the change of the adapter is notified when the timeline slides or zooms, then the scrolling timeline is redrawn, and the redrawn of the scrolling timeline is controlled by the controller.
Further, in an embodiment of the present application, the above configuration method of the rolling timeline further includes: receiving filling data sent by a preset cloud end; corresponding the event in the filling data to a rectangular square on a rolling time axis; and when the rectangular square is positioned on the central axis of the rolling time axis, filling preset colors in the rectangular square.
Specifically, in the embodiment of the present application, when the scroll time axis slides to a certain position, the color block corresponding to the event at the certain position is enlarged, and at this time, the event corresponding to the current position is processed, and data obtained through the interface is used to fill the corresponding event display area displayed in the time axis.
Specifically, as shown in fig. 3, firstly, setting colors and thicknesses for initialized paintbrushes, drawing horizontal lines, vertical central axes and time scales of a rolling time axis, calculating the distance between each current time scale according to the total duration, and drawing time axis scale lines from left to right, wherein the scale lines are higher when integer time points appear; secondly, drawing data returned by the cloud end to fill a time axis, wherein events in the data correspond to rectangular squares on the time axis, and if the current rectangle is located on the time axis, the rectangular squares are heightened, and meanwhile, colors are highlighted; and finally, drawing a boundary rectangular frame, and drawing according to the current screen width and the configured default height, wherein the final effect is shown in fig. 4.
In step S103, the scroll timeline is configured according to the translation distance, the first boundary time scale and the second boundary time scale, or the zoom scale, or the target configuration action.
Specifically, as shown in fig. 5, the scroll timeline is configured through the translation distance, the first boundary time scale, the second boundary time scale, the scaling and the target configuration action obtained in the above embodiment, so that the timeline can be moved, scaled and monitored in the interactive interface according to the sliding operation by obtaining the sliding operation of the user, and in the moving and scaling processes of the timeline in the interactive interface, the edge distance value generated in the zooming-in or zooming-out process is kept unchanged, and in addition, the scroll effect of using the getcurededetector is added, so that the sliding itself is not affected, the user interaction logic is more fitted, and the visual experience of the user is improved.
According to the configuration method of the rolling time axis, the current touch event type and/or the sliding monitoring instruction of the rolling time axis are/is obtained, the translation distance, the first boundary time scale, the second boundary time scale, the scaling ratio and the target configuration action of the rolling time axis are determined according to the single-finger touch type, the multi-finger touch type and the sliding monitoring instruction respectively, and the rolling time axis is configured based on the data. Therefore, the problems that the update iteration of the car machine is slow, and the performances such as software effect and operability cannot meet the good operation experience of a user are solved.
Next, a configuration apparatus of a rolling timeline proposed according to an embodiment of the present application is described with reference to the drawings.
Fig. 6 is a block diagram of a configuration apparatus for scrolling a timeline according to an embodiment of the present application.
As shown in fig. 6, the arrangement device 10 for scrolling the time axis includes: an acquisition module 100, a determination module 200 and a configuration module 300.
The obtaining module 100 is configured to obtain a current touch event type and/or a sliding listening instruction of a scrolling timeline, where the current touch event type is a single-finger touch type or a multi-finger touch type;
the determining module 200 is configured to determine a translation distance, a first boundary time scale and a second boundary time scale of the scroll timeline according to the single-finger touch type, determine a scaling of the scroll timeline according to the multi-finger touch type, and determine a target configuration action of the scroll timeline according to the sliding monitoring instruction; and
a configuration module 300 configured to configure a scroll timeline according to the translation distance, the first boundary time scale and the second boundary time scale, or the zoom scale, or the target configuration action.
Further, in an embodiment of the present application, before acquiring the current touch event type and/or the swipe listening instruction of the scroll timeline, the acquiring module 100 further includes: an acquisition unit and a configuration unit.
The system comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring an initial scale configuration parameter, an initial time axis configuration parameter, an initial speed configuration parameter, an initial boundary configuration parameter and an initial time axis event configuration parameter of a rolling time axis;
the configuration unit is used for initializing a rolling time shaft according to the initial scale configuration parameter, the initial time shaft configuration parameter, the initial speed configuration parameter, the initial boundary configuration parameter and the initial time shaft event configuration parameter;
the initial speed configuration parameters are determined by the maximum sliding speed and the minimum sliding speed which are calculated by pixel values of a screen where the rolling time axis is located.
Further, in an embodiment of the present application, the above configuration apparatus 10 for scrolling a timeline further includes:
the receiving device is used for receiving filling data sent by a preset cloud end;
corresponding means for corresponding events in the filler data to rectangular blocks on a rolling timeline;
and when the rectangular square is positioned on the central axis of the rolling time axis, filling preset colors in the rectangular square.
Further, in an embodiment of the present application, the determining module 200 includes: the device comprises a first acquisition unit and a first calculation unit.
The first acquisition unit is used for acquiring first coordinate information of the current finger and acquiring the first coordinate information according to the coordinate information;
and the first calculating unit is used for calculating the translation distance, the first boundary time scale and the second boundary time scale of the rolling time axis according to the coordinate information.
Further, in an embodiment of the present application, the determining module 200 includes: the device comprises a second acquisition unit, a second calculation unit and a third calculation unit.
The second acquisition unit is used for acquiring coordinate information of two preset fingers;
the second calculation unit is used for calculating the difference between the distances between the two preset fingers during and after the touch according to the coordinate information of the two preset fingers;
and a third calculation unit for calculating a scaling of the scroll time axis based on the difference between the pitches and the time interval of the first boundary and the second boundary.
Further, in an embodiment of the present application, the determining module 200 includes: a third acquisition unit and a determination unit.
The third acquiring unit is used for acquiring a target time point of a rolling time axis, a rolling state, first reminding information of change of a currently selected time point and second reminding information of the currently selected time point as a time scale end point;
and the determining unit is used for determining the target configuration action according to the target time point, the rolling state, the first reminding information and the second reminding information.
According to the configuration device of the rolling time axis provided by the embodiment of the application, the current touch event type and/or the sliding monitoring instruction of the rolling time axis are/is obtained, the translation distance, the first boundary time scale, the second boundary time scale, the scaling ratio and the target configuration action of the rolling time axis are determined according to the single-finger touch type, the multi-finger touch type and the sliding monitoring instruction respectively, and the rolling time axis is configured based on the data, so that the configuration data of the server is read based on the self-defined view, the style of the rolling time axis is adjusted in the process of rendering by matching with various gestures, meanwhile, the calculation precision in the sliding process is improved, the performance loss of the vehicle machine is reduced, and the operation environment is smooth and natural. Therefore, the problems that the update iteration of the car machine is slow, and the performances such as software effect and operability cannot meet the good operation experience of a user are solved.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device may include:
The processor 702, when executing the program, implements the configuration method of the rolling timeline provided in the above embodiments.
Further, the electronic device further includes:
a communication interface 703 for communication between the memory 701 and the processor 702.
A memory 701 for storing computer programs operable on the processor 702.
The Memory 701 may include a high-speed RAM (Random Access Memory) Memory, and may also include a non-volatile Memory, such as at least one disk Memory.
If the memory 701, the processor 702 and the communication interface 703 are implemented independently, the communication interface 703, the memory 701 and the processor 702 may be connected to each other through a bus and perform communication with each other. The bus may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 7, but that does not indicate only one bus or one type of bus.
Optionally, in a specific implementation, if the memory 701, the processor 702, and the communication interface 703 are integrated on a chip, the memory 701, the processor 702, and the communication interface 703 may complete mutual communication through an internal interface.
The processor 702 may be a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement embodiments of the present Application.
Embodiments of the present application also provide a computer-readable storage medium, on which a computer program is stored, where the program is executed by a processor to implement the above configuration method of the rolling timeline.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or N embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or to implicitly indicate the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "N" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more N executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of implementing the embodiments of the present application.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the N steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a programmable gate array, a field programmable gate array, or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware that is related to instructions of a program, and the program may be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
While embodiments of the present application have been shown and described above, it will be understood that the above embodiments are exemplary and should not be construed as limiting the present application and that changes, modifications, substitutions and alterations in the above embodiments may be made by those of ordinary skill in the art within the scope of the present application.
Claims (10)
1. A method for configuring a rolling timeline, comprising the steps of:
acquiring a current touch event type and/or a sliding monitoring instruction of a rolling time axis, wherein the current touch event type is a single-finger touch type or a multi-finger touch type;
determining a translation distance, a first boundary time scale and a second boundary time scale of the rolling time axis according to the single-finger touch type, determining a scaling of the rolling time axis according to the multi-finger touch type, and determining a target configuration action of the rolling time axis according to the sliding monitoring instruction; and
configuring the scroll timeline according to the translation distance, the first boundary time scale and the second boundary time scale, or the zoom scale, or the target configuration action.
2. The method of claim 1, further comprising, prior to obtaining the current touch event type and/or swipe listening instructions for the scroll timeline:
acquiring initial scale configuration parameters, initial time axis configuration parameters, initial speed configuration parameters, initial boundary configuration parameters and initial time axis event configuration parameters of the rolling time axis;
initializing the rolling time axis according to the initial scale configuration parameter, the initial time axis configuration parameter, the initial speed configuration parameter, the initial boundary configuration parameter and the initial time axis event configuration parameter;
and the initial speed configuration parameters are determined by the maximum sliding speed and the minimum sliding speed which are calculated by the pixel values of the screen where the scroll time axis is located.
3. The method of claim 1, further comprising:
receiving filling data sent by a preset cloud end;
corresponding the event in the filling data to a rectangular square on the rolling time axis;
and when the rectangular square is positioned on the central axis of the rolling time axis, filling a preset color in the rectangular square.
4. The method of claim 1, wherein determining the translation distance, the first boundary time scale, and the second boundary time scale of the scroll timeline according to the single-finger touch type comprises:
acquiring first coordinate information of a current finger, and obtaining the coordinate information;
and calculating the translation distance, the first boundary time scale and the second boundary time scale of the rolling time axis according to the coordinate information.
5. The method of claim 4, wherein determining the scale of the scrolling timeline according to the multi-finger touch type comprises:
acquiring coordinate information of two preset fingers;
calculating the difference between the distances between the two preset fingers during and after touch according to the coordinate information of the two preset fingers;
and calculating the scaling of the rolling time axis according to the difference of the intervals and the time interval of the first boundary and the second boundary.
6. The method according to claim 1, wherein the determining a target configuration action of the scroll timeline according to the sliding listening instruction comprises:
acquiring a target time point, a rolling state, first reminding information of change of a currently selected time point and second reminding information of the currently selected time point as a time scale end point of the rolling time shaft;
and determining the target configuration action according to the target time point, the rolling state, the first reminding information and the second reminding information.
7. A configuration apparatus for scrolling a timeline, comprising:
the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring the current touch event type and/or a sliding monitoring instruction of a rolling time axis, and the current touch event type is a single-finger touch type or a multi-finger touch type;
the determining module is used for determining the translation distance, the first boundary time scale and the second boundary time scale of the rolling time axis according to the single-finger touch type, determining the scaling of the rolling time axis according to the multi-finger touch type and determining the target configuration action of the rolling time axis according to the sliding monitoring instruction; and
a configuration module, configured to configure the scroll timeline according to the translation distance, the first boundary time scale, the second boundary time scale, or the scaling, or the target configuration action.
8. The apparatus of claim 7, wherein prior to obtaining the current touch event type and/or swipe listening instruction of the scroll timeline, the obtaining module further comprises:
the acquiring unit is used for acquiring an initial scale configuration parameter, an initial time axis configuration parameter, an initial speed configuration parameter, an initial boundary configuration parameter and an initial time axis event configuration parameter of the rolling time axis;
a configuration unit, configured to initialize the rolling timeline according to the initial scale configuration parameter, the initial timeline configuration parameter, the initial speed configuration parameter, the initial boundary configuration parameter, and the initial timeline event configuration parameter;
and the initial speed configuration parameters are determined by the maximum sliding speed and the minimum sliding speed which are calculated by the pixel values of the screen where the scroll time axis is located.
9. An electronic device, comprising: memory, processor and computer program stored on said memory and executable on said processor, said processor executing said program to implement the method of configuration of a rolling timeline according to any of the claims 1-6.
10. A computer-readable storage medium, on which a computer program is stored, the program being executed by a processor for implementing the method of configuration of a rolling timeline according to any of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210989152.3A CN115480765A (en) | 2022-08-17 | 2022-08-17 | Method and device for configuring rolling time axis, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210989152.3A CN115480765A (en) | 2022-08-17 | 2022-08-17 | Method and device for configuring rolling time axis, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115480765A true CN115480765A (en) | 2022-12-16 |
Family
ID=84421795
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210989152.3A Pending CN115480765A (en) | 2022-08-17 | 2022-08-17 | Method and device for configuring rolling time axis, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115480765A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118394444A (en) * | 2024-07-01 | 2024-07-26 | 广东保伦电子股份有限公司 | Rolling control method and device for task time axis |
-
2022
- 2022-08-17 CN CN202210989152.3A patent/CN115480765A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118394444A (en) * | 2024-07-01 | 2024-07-26 | 广东保伦电子股份有限公司 | Rolling control method and device for task time axis |
CN118394444B (en) * | 2024-07-01 | 2024-09-27 | 广东保伦电子股份有限公司 | Rolling control method and device for task time axis |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7415676B2 (en) | Visual field changing method | |
CN112199030B (en) | Graph drawing method and device, storage medium and terminal equipment | |
CN110727496B (en) | Layout method and device of graphical user interface, electronic equipment and storage medium | |
CN110427131B (en) | Animation display method and device based on pressing | |
KR101885132B1 (en) | Apparatus and method for input by touch in user equipment | |
CN108905203B (en) | Information processing method, information processing apparatus, storage medium, and electronic apparatus | |
CN112540713B (en) | Video preview progress bar scaling method, system, device and storage medium | |
CN106033334B (en) | Method and device for drawing interface element | |
CN115480765A (en) | Method and device for configuring rolling time axis, electronic equipment and storage medium | |
CN111984151B (en) | Whiteboard canvas size and position roaming control method for improving processing efficiency | |
CN103870117B (en) | A kind of information processing method and electronic equipment | |
CN115129278A (en) | Image display control method, system, readable storage medium and electronic device | |
CN109766530B (en) | Method and device for generating chart frame, storage medium and electronic equipment | |
CN107615229B (en) | User interface device and screen display method of user interface device | |
CN114797109A (en) | Object editing method and device, electronic equipment and storage medium | |
CN111356977A (en) | Method for processing writing strokes and related equipment | |
CN113703653A (en) | Image processing method, device, equipment and computer readable storage medium | |
CN110012089B (en) | Control method and electronic equipment | |
CN113064535A (en) | Vernier display method and device for two-dimensional chart, electronic equipment and storage medium | |
JP2005071147A (en) | Graph display controller and program | |
CN114153363B (en) | Map display control method and device and electronic equipment | |
CN110580274A (en) | GIS data rendering method | |
CN112685279A (en) | Script recording method and device and terminal equipment | |
KR101998470B1 (en) | To enter a command for zooming, reducing, and moving the contents displayed on the display unit | |
CN112394893B (en) | Visual screen matching method, device and system and computer readable 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 |