CN111428455B - Form management method, device, equipment and storage medium - Google Patents

Form management method, device, equipment and storage medium Download PDF

Info

Publication number
CN111428455B
CN111428455B CN202010159441.1A CN202010159441A CN111428455B CN 111428455 B CN111428455 B CN 111428455B CN 202010159441 A CN202010159441 A CN 202010159441A CN 111428455 B CN111428455 B CN 111428455B
Authority
CN
China
Prior art keywords
cell
writing track
writing
picture
adjustment
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
CN202010159441.1A
Other languages
Chinese (zh)
Other versions
CN111428455A (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 Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics 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 Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN202010159441.1A priority Critical patent/CN111428455B/en
Publication of CN111428455A publication Critical patent/CN111428455A/en
Application granted granted Critical
Publication of CN111428455B publication Critical patent/CN111428455B/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/0487Interaction 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/0488Interaction 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/04883Interaction 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The embodiment of the application discloses a form management method, a form management device, form management equipment and a storage medium, and relates to the technical field of interactive intelligent equipment, wherein the form management method comprises the following steps: receiving touch operation for editing a first writing track in a table, wherein each cell containing the writing track in the table corresponds to a picture of bitmap display data for recording all writing tracks in the cell; editing a first writing track according to touch operation and updating a picture of a cell where the first writing track is located; and adjusting the size of the table and the display position of the writing track in the table according to the set layout relation, and refreshing and displaying the display position with the corresponding picture in the adjustment process. The method can solve the technical problem that the number of drawing objects is easy to influence when the table is adaptively adjusted in the prior art to generate the clamping phenomenon, and the number of drawing objects can be reduced by recording the writing tracks in the cells through the bitmap and replacing the writing tracks in the cells with the bitmap when refreshing, so that the clamping phenomenon is effectively avoided.

Description

Form management method, device, equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of interactive intelligent equipment, in particular to a form management method, a form management device, form management equipment and a storage medium.
Background
The form is a visual communication mode and is also a means for organizing and organizing data, and can display information and data intuitively and clearly, so that the form is widely applied to scenes such as information recording and data statistics. With the development of interactive smart technology, a user may launch an electronic whiteboard application in an interactive smart device and draw a spreadsheet in the application to implement a form function in the smart device.
When a user fills in content in an electronic form, the smart device typically counts the bars, i.e., each written trace written by the user is recorded by the smart device as an object. In the prior art, in order to enhance the flexibility of the form, when the filled content in the form exceeds the cell where the filled content is located, the size of the cell can be adaptively expanded so that the cell contains the complete content, and when the filled content in the form is deleted, the size of the cell can be adaptively reduced so as to reduce the blank area in the cell.
The inventors have found that the following drawbacks exist in the prior art in the process of implementing the present invention: when adjusting the cell size, other cells need to be adjusted synchronously in order to keep the form clean. At this time, in order to ensure that each cell is adapted to the corresponding content, each writing trace in the cell needs to be adjusted synchronously. That is, in the adjustment process, each time a cell is refreshed, a corresponding writing track needs to be drawn again. However, the number of drawing objects affects the refresh speed, and when the table content is large, the refresh process may generate a clamping phenomenon, which seriously affects the use experience of the user.
Disclosure of Invention
The application provides a form management method, a form management device, form management equipment and a storage medium, which are used for solving the technical problem that the form is easy to be influenced by the number of drawing objects and is stuck during self-adaptive adjustment in the prior art.
In a first aspect, an embodiment of the present application provides a table management method, including:
receiving touch operation, wherein the touch operation is used for editing a first writing track in a table, each cell containing the writing track in the table corresponds to a picture, and the picture is used for recording bitmap display data of all writing tracks in the corresponding cell;
editing the first writing track according to the touch operation and updating the picture of the cell where the first writing track is located;
and adjusting the size of the table and the display position of the writing track in the table according to the set layout relation, wherein the display position is refreshed and displayed by the corresponding picture in the adjustment process.
Further, the adjusting the size of the table and the display position of the writing track in the table according to the set layout relation, and refreshing and displaying the display position with the corresponding picture in the adjusting process includes:
determining a first cell needing to adjust the frame position in the table and a target adjustment position of the first cell according to the first writing track and the set layout relation;
Searching a target picture corresponding to the first cell in all the pictures;
determining a single adjustment parameter of the corresponding first cell in the refreshing process and a single movement parameter of the corresponding target picture in the refreshing process according to the target adjustment position;
deleting the second writing track in the first cell;
and refreshing and displaying the first cell and the target picture, and adjusting the frame position of the corresponding first cell according to the single adjustment parameter and adjusting the display position of the corresponding target picture according to the single movement parameter when refreshing each time until the frame position of the first cell is the target adjustment position.
Further, the determining the single adjustment parameter of the corresponding first cell in the refreshing process according to the target adjustment position includes:
setting an animation variable, wherein the animation variable is used for limiting the adjustment duration;
and determining a single adjustment parameter of the corresponding first cell in the refreshing process according to the animation variable and the target adjustment position.
Further, the adjusting the size of the table and the display position of the writing track in the table according to the set layout relation, where after the refreshing display is performed on the corresponding picture in the adjusting process, the adjusting method further includes:
Deleting the pictures which are refreshed and displayed in the table;
acquiring the display position of a writing track in the refreshed and displayed picture;
and drawing a corresponding writing track in the table according to the display position.
Further, before the adjusting the size of the table and the display position of the writing track in the table according to the set layout relationship, the method further includes:
judging whether the writing track in the form and the form meet a set layout relation or not;
and if the set layout relation is not met, executing the operation of adjusting the size of the table and the display position of the writing track in the table according to the set layout relation.
Further, the touch operation is used for writing or amplifying the first writing track in a table, and the set layout relationship is: the first writing track is contained in a corresponding cell.
Further, the touch operation is used for erasing or shrinking the first writing track in a table, and the set layout relationship is: the minimum distance in the distances corresponding to the second cells is smaller than or equal to the set distance, the second cells are cells contained in the row and the column to which the first writing track belongs, and the distances corresponding to the second cells are the distances between the writing track in the second cells and the border lines of the second cells.
Further, the size of the picture is equal to the size of the smallest circumscribed rectangle of all writing tracks in the corresponding cell.
In a second aspect, an embodiment of the present application further provides a table management apparatus, including:
the receiving module is used for receiving touch operation, the touch operation is used for editing a first writing track in a table, each cell containing the writing track in the table corresponds to a picture, and the picture is used for recording bitmap display data of all writing tracks in the corresponding cell;
the updating module is used for editing the first writing track according to the touch operation and updating the picture of the cell where the first writing track is located;
the adjustment module is used for adjusting the size of the table and the display position of the writing track in the table according to the set layout relation, and the display position is refreshed and displayed by the corresponding picture in the adjustment process.
In a third aspect, an embodiment of the present application further provides a table management apparatus, including:
one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of table management as described in the first aspect.
In a fourth aspect, embodiments of the present application further provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the form management method according to the first aspect.
According to the table management method, device, equipment and storage medium, the touch operation for editing the first writing track in the table is received, the first writing track is edited according to the touch operation, the pictures of the cells where the first writing track is located are updated, then the size of the table and the display positions of the writing tracks in the table are adjusted according to the set layout relation, and the corresponding pictures are refreshed and displayed in the display position adjustment process, so that the technical problem that the number of drawing objects is easily affected when the table is adaptively adjusted in the prior art, and the technical problem of blocking is solved. By recording the writing tracks in the cells by the bitmap and replacing the writing tracks in the cells by the bitmap in the adjustment process, the number of drawing objects can be reduced during refreshing, and the occurrence of the clamping phenomenon can be further effectively avoided.
Furthermore, in the adjustment process, the frame position of the cell in the canvas and the display position of the picture in the canvas in each refreshing process can be obtained by calculating the single adjustment parameter and the single movement parameter, so that the adjustment process of the table is demonstrated, namely, the adjustment animation is displayed, and the use experience of a user is improved.
Drawings
FIG. 1 is a flow chart of a method for table management according to one embodiment of the present application;
FIG. 2 is a schematic diagram of a first table provided in an embodiment of the present application;
FIG. 3 is a schematic diagram of a second table provided in an embodiment of the present application;
FIG. 4 is a flowchart of a method for table management according to an embodiment of the present application;
FIG. 5 is a third table schematic diagram provided in an embodiment of the present application;
FIG. 6 is a fourth table schematic diagram provided in an embodiment of the present application;
FIG. 7 is a fifth table schematic diagram provided in an embodiment of the present application;
FIG. 8 is a schematic diagram of a table management device according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of a table management device according to an embodiment of the present application.
Detailed Description
The present application is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are for purposes of illustration and not limitation. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present application are shown in the drawings.
It should be noted that in this document, relational terms such as first and second are used solely to distinguish one entity or action or object from another entity or action or object without necessarily requiring or implying any actual such relationship or order between such entities or actions or objects. For example, "first" and "second" of a first cell and a second cell are used to distinguish between two different cells.
The form management method provided in the embodiments of the present application may be executed by a form management device, where the form management device may be implemented by software and/or hardware, and the form management device may be configured by two or more physical entities or may be configured by one physical entity. For example, the form management device may be a smart device such as a computer, a cell phone, a tablet, or a smart interactive tablet.
For ease of understanding, the exemplary description is made in embodiments using the intelligent interactive tablet as a form management device. The intelligent interaction panel can be integrated equipment for controlling the content displayed on the display panel and realizing man-machine interaction operation through a touch technology, and can integrate one or more functions of a projector, an electronic whiteboard, a curtain, sound equipment, a television, a video conference terminal and the like.
Generally, the smart interactive tablet includes at least one display screen. For example, the intelligent interactive tablet is configured with a display screen having a touch function, and the display screen may be a capacitive screen, a resistive screen, or an electromagnetic screen. Further, the user can realize touch operation in a mode of touching the display screen by a finger or a touch pen, the corresponding intelligent interaction panel detects the touch position, and a response scheme is determined according to display content corresponding to the touch position, so that response is performed, and a touch function is realized. For example, the corresponding control with the display content as a certain function is determined according to the touch position, and at this time, the response scheme is to execute the function. It can be understood that in practical application, the user can also realize control operation by means of a keyboard, a mouse, physical keys and the like.
Typically, the intelligent interactive tablet is installed with at least one type of operating system, wherein the operating system includes, but is not limited to, an android system, a Linux system, and a Windows system. In the embodiment, an operating system is taken as an android system as an example. Further, the intelligent interactive tablet may install at least one application based on the operating system. The application program may be an application program of the operating system, or may be an application program downloaded from a third party device or a server, or the form management device may be an application program itself.
In one embodiment, at least an electronic whiteboard application is installed in the intelligent interactive tablet. When the electronic whiteboard application is started, a user can write, draw, insert multimedia, insert files, insert forms, play multimedia and the like in the canvas, and can control the operations, such as cancel operations, delete writing tracks and the like. Wherein the canvas may be understood as an operating area of the user on the electronic whiteboard. It will be appreciated that in addition to the canvas, a control area may be displayed in the operation interface of the electronic whiteboard application, where function keys (e.g., menu, cancel key, eraser, etc.) may be displayed to facilitate the user in performing function switching. It will be appreciated that the size of the canvas may be set according to the actual situation, and may be of a limited size or an infinite size. Furthermore, a coordinate system is established in the canvas, the coordinate system and the pixel coordinate system of the display screen can be the same coordinate system or different coordinate systems, and a mapping relation exists between the two coordinate systems. When the display screen receives touch operation, the parameters of the electrical elements at the corresponding positions change, and at the moment, the intelligent interaction panel determines the coordinates of the touch operation in the pixel coordinate system according to the change condition of the parameters of the electrical elements, namely, determines the touch position of the touch operation. And then, according to the mapping relation and the touch position, the coordinate of the touch operation in the canvas can be determined, and further, the touch operation is responded according to the display content corresponding to the coordinate. For ease of understanding, the embodiment will be described by taking the coordinate system of the canvas as an example, where the origin of the coordinate system is the upper left corner pixel point of the display screen and the upper left corner coordinate point in the canvas. Also, the coordinates mentioned in the following embodiments are described by taking the coordinates in the canvas coordinate system as an example.
In the embodiment, the table management method is described by taking the electronic whiteboard application currently operated by the intelligent interaction tablet as an example, and in practical application, the application currently operated by the intelligent interaction tablet can be other application programs with electronic table functions besides the electronic whiteboard application program.
Fig. 1 is a flowchart of a table management method according to an embodiment of the present application. Referring to fig. 1, the table management method specifically includes:
step 110, receiving a touch operation, where the touch operation is used to edit a first writing track in a table, each cell containing the writing track in the table corresponds to a picture, and the picture is used to record bitmap display data of all writing tracks in the corresponding cell.
Illustratively, at least one table is displayed in the current canvas, in an embodiment, taking a table as an example, an embodiment of a drawing mode of the table is not limited. Specifically, the table includes at least two cells, where an embodiment of an arrangement manner of each cell is not limited, that is, an embodiment of a row number and a column number of the table is not limited, cells in a same row in the table have a same row height, and cells in a same column have a same column width.
Typically, the user may write handwriting in the table in a touch manner, and in an embodiment, the handwriting written by the user is written as a writing track. Wherein, a writing track refers to a continuous track, which is an independent element and can correspond to a Path. Path is an important class in 2D drawing under an android system, and 2D drawing can be realized through the Path. In one embodiment, when a writing track exists in a certain cell in the table, a picture can be obtained based on all writing tracks in the cell, and the picture is used for recording bitmap display data of all writing tracks in the cell. Typically, a picture is a bitmap image, wherein the bitmap image consists of a single dot called a pixel. The bitmap display data can show the position relation between coordinate points in the writing track and the corresponding pixel values, namely, from the perspective of a user, the writing track displayed in the picture is identical to the actual writing track in the table. Alternatively, when generating the picture, the circumscribed rectangle containing all writing tracks in the cell may be obtained according to the coordinates of each writing track in the cell, and then the picture may be obtained and stored based on the pixel points in the circumscribed rectangle. Typically, the circumscribed rectangle containing the entire writing track may be the smallest circumscribed rectangle containing the entire writing track, or may be the largest circumscribed rectangle of the cell border line circumscribing city, or a rectangle of a set size, and the rectangle is larger than the smallest circumscribed rectangle and smaller than the largest circumscribed rectangle. In the embodiment, the circumscribed rectangle is described as the smallest circumscribed rectangle, and at this time, the size of the picture is equal to the size of the smallest circumscribed rectangle corresponding to all writing tracks in the cell. The advantage of setting the minimum circumscribed rectangle is that the data processing amount can be reduced when the picture is refreshed and displayed later.
It can be understood that each cell containing a writing track corresponds to a picture, and when the writing track in the cell changes, the corresponding picture is updated synchronously.
In one embodiment, a user may edit a writing track in a form, wherein editing the writing track includes: writing a writing track, erasing a writing track, enlarging the writing track, reducing the writing track, and the like. In an embodiment, editing the writing track is implemented by means of touch operation. The embodiment of the triggering mode of the touch operation is not limited, for example, under the writing function, when the touch operation is received in the canvas, the operation of writing the writing track is determined; and under the erasing function, when the touch operation is received in the canvas, determining that the operation of erasing the writing track is received. It may be appreciated that the touch operations mentioned in the embodiments are all used for editing writing tracks, and in practical applications, the touch operations may also implement other functions besides editing writing tracks. Further, in the embodiment, the writing track edited by the touch operation is described in the table, and the writing track is recorded as the first writing track. In the embodiment, the touch operation is taken as an example to edit one first writing track, and in practical application, the touch operation may edit at least one first writing track, for example, the touch operation may erase two writing tracks simultaneously.
And 120, editing the first writing track according to the touch operation and updating the picture of the cell where the first writing track is located.
Illustratively, the touch operation is responded, and the editing result of the first writing track is displayed in the table. For example, when the touch operation is writing the first writing track, the first writing track is displayed in the table according to the touch position of the touch operation, where the embodiment of the display parameters (such as track color, track thickness, etc.) of the first writing track is not limited. For another example, when the touch operation is to erase the writing track, the first writing track passed by the touch operation is erased, and it can be understood that when the touch operation passes by a part of the first writing track, only the part of the first writing track passed by the touch operation is erased.
It can be understood that after the first writing track is edited, the writing track in the cell where the first writing track is located is changed, and at this time, the picture corresponding to the cell is updated synchronously. I.e. generating a new picture based on all written tracks within the cell and replacing the stored picture by the new picture.
And 130, adjusting the size of the table and the display position of the writing track in the table according to the set layout relation, wherein the display position is refreshed and displayed by the corresponding picture in the adjustment process.
The specific content of the set layout relationship may be set according to the actual situation. Alternatively, different touch operations may correspond to different setting layout relationships. For example, the touch operation is used for writing or amplifying the first writing track in the table, and the layout relationship is set as follows: the first writing track is contained in the corresponding cell, i.e. the writing track in the cell is not allowed to exceed the cell in which it is located. For another example, the touch operation is used for erasing or shrinking the first writing track in the table, and the layout relationship is set as follows: the minimum distance in the distances corresponding to the second cells is smaller than or equal to the set distance, the second cells are cells contained in the row and the column to which the first writing track belongs, and the distances corresponding to the second cells are the distances between the writing track in the second cells and the border lines of the second cells. Typically, since each row of cells in the table has the same row and each column of cells has the same column width, when the border line of a cell is adjusted, the column in which it is located and the other cells in the row are also adjusted adaptively. In an embodiment, cells in a row and a column to which the first writing trace belongs are denoted as second cells. Further, the distance corresponding to the cell includes the distance between the writing track and the left side frame line, the distance between the writing track and the right side frame line, the distance between the writing track and the upper side frame line, and the distance between the writing track and the lower side frame line. In the embodiment, the calculation of the distance is described by taking the distance between the writing track and the left side frame line as an example, specifically, the minimum circumscribed rectangle corresponding to all writing tracks in the cell is determined, and then the distance between the vertical edge on the left side in the minimum circumscribed rectangle and the vertical line between the writing track and the left side frame line in the cell is calculated and recorded as the distance between the writing track and the left side frame line. After four distances corresponding to each cell are obtained, the distances between the writing track corresponding to each second cell and the upper side frame line and the distances between the writing track corresponding to each second cell and the lower side frame line are respectively obtained for the second cells in the same row, then the minimum distance is selected from the obtained distances between all writing tracks and the upper side frame line and is recorded as the upper minimum distance, and similarly, the minimum distance is selected from the obtained distances between all writing tracks and the lower side frame line and is recorded as the lower minimum distance. Further, the specific value of the set distance may be selected according to practical situations, where the set distance is used to define the minimum distance between the writing track and the border line. Alternatively, the upper minimum distance and the lower minimum distance may correspond to the same set distance, or may correspond to different set distances, in which embodiment, the same set distance is taken as an example. If the upper minimum distance is smaller than or equal to the set distance, the blank area between the writing track in the row and the border line on each cell in the row is reasonable. Similarly, for the second cells in the same column, the distance between the writing track and the left side frame line and the distance between the writing track and the right side frame line corresponding to each second cell are respectively obtained, and the set layout relationship is confirmed according to the above manner, which is not described herein. When the layout relationship is confirmed, the minimum distance between the writing track and the left side frame line is referred to as a left minimum distance, the minimum distance between the writing track and the right side frame line is referred to as a right minimum distance, and the left minimum distance and the right minimum distance may correspond to the same set distance or may correspond to different set distances. And the set distance may be the same as or different from the set distance corresponding to the upper minimum distance and the lower minimum distance.
Alternatively, different touch operations may correspond to the same set layout relationship, for example, the set layout relationship is: the writing tracks are contained in the corresponding cells. Alternatively, the layout relationship may be set as follows: the minimum distance between the writing track of each cell in each row in the table and the horizontal frame line of the corresponding cell is smaller than or equal to the set distance, and the minimum distance between the writing track of each cell in each column in the table and the vertical frame line of the corresponding cell is smaller than or equal to the set distance.
Typically, after editing the first writing track, the size of the table and the display position of the writing track are adjusted so that the table and the writing track inside the table satisfy the set layout relationship. Optionally, before adjusting the size of the table and the display position of the writing track, it may be first determined whether the current table and the writing track in the table satisfy the set layout relationship, and when the set layout relationship is not satisfied, the size of the table and the display position of the writing track may be adjusted.
The adjusting the size of the table may be understood as adjusting the size of the cells in the table, which may be achieved by adjusting the display position of the border line of the cells in the canvas, and in an embodiment, the display position of the border line in the canvas is recorded as the border position. Specifically, when the size of the table is adjusted, only the size of a part of cells in the table may be adjusted, instead of adjusting the size of all cells, so that when the size of the table is adjusted, the cells that need to be adjusted may be determined first. For example, fig. 2 is a schematic diagram of a first table provided in the embodiment of the present application, referring to fig. 2, after writing the first writing track 11, it is determined that the first writing track 11 exceeds the cell 12 where the first writing track 11 is located, and at this time, the cell 12 needs to be expanded rightward to enable the cell 12 to include the first writing track 11. Then in adjusting the size of the table, it is necessary to adjust the 3 cells of the column in which the cells 12 are located and the 3 cells of the column to the right of the cells 12, i.e., adjust all the cells. For another example, fig. 3 is a schematic diagram of a second table provided in the embodiment of the present application, referring to fig. 3, the writing trace in the cell 13 is the writing trace remaining after erasing the first writing trace, and at this time, the distance between the cell 14 in the column where the cell 13 is located and the right side frame line is the smallest and larger than the set distance, and at this time, the cell 13 needs to be reduced to the left, the remaining cells in the column where the cell 13 is located, and 3 cells on the right side of the cell 13 need to be adjusted, i.e. some cells need to be adjusted. Further, after determining the cells to be resized, the frame positions to which the frame lines of the cells are to be resized are determined, and in an embodiment, the frame positions to be resized are designated as target adjustment positions. Wherein the target adjustment position may be determined according to the set layout relationship. For example, when the first writing track exceeds a cell, determining a coordinate range of a minimum circumscribed rectangle of the first writing track in the canvas, determining a target adjustment position of the cell where the first writing track is located when the set layout relation is met according to the coordinate range, and determining target adjustment positions of other cells to be adjusted according to the target adjustment position. Further, after the target adjustment position is obtained, the border line of the cell can be adjusted. In order to display the self-adaptive adjustment process of the table, a single adjustment parameter of the cell during each refresh can be determined according to the target adjustment position, and the frame position of the cell frame line in the canvas during each refresh can be determined through the single adjustment parameter. The embodiment of the determining mode of the single adjustment parameter is not limited. After the single adjustment parameters are determined, the frame positions of the frame lines of the cells can be drawn according to the single adjustment parameters during each refreshing, and then the adjustment process of the table size is displayed.
Further, in the adjustment process of the table size, the display position of the writing track in the table is adjusted at the same time. As can be seen from the foregoing description, when the size of the table is adjusted, only the size of a part of the cells may be adjusted, and when the display position of the writing track is adjusted, only the display position of the writing track in the part of the cells may be adjusted. And when the display position of the writing track is adjusted, the corresponding picture is adopted to replace the writing track for refreshing display. In the adjustment process, the writing track in the cell is deleted first, and the corresponding picture is displayed in the minimum circumscribed rectangle of the writing track. Optionally, determining the target display position of the picture, that is, the display position of the writing track when the set layout relationship is met, where the determination mode of the target display position and the determination mode of the target adjustment position are the same, which is not described herein, and it can be understood that, for the cell with the changed size, the display position of the displayed picture is fixed, so that, during actual processing, the corresponding writing track can be displayed in the cell, and the writing track is not drawn again during refreshing, or, during the first refreshing, the picture is displayed, and during the subsequent process, the picture can not be refreshed. In practical application, whether all the cells need to be adjusted or not, all the cells can be drawn in the adjustment process, and the corresponding writing tracks are replaced by the pictures. Further, since the cells are gradually refreshed and adjusted along with the adjustment process, in order to adapt the picture to the corresponding cells, the picture is also gradually adjusted in the adjustment process, and at this time, a single movement parameter of the picture can be determined according to the target display position, where the display position of the picture in the canvas at each refresh can be determined through the single movement parameter. The single movement parameter is the same as the single adjustment parameter in the determination process. Alternatively, the target display position may not be determined, and the single movement parameter may be determined directly based on the target adjustment position. After the single adjustment parameters are determined, the pictures can be synchronously updated according to the single movement parameters when the cells are refreshed each time, and then the adjustment process of the writing track is displayed.
It can be understood that the above-mentioned form adjustment implementation process is only an adjustment process of seeing the form and the writing track from the user's perspective, and cannot perceive the process of replacing the writing track with the picture.
Optionally, after the adjustment is completed, deleting the picture in the table, and displaying the corresponding writing track.
According to the technical scheme, the touch operation for editing the first writing track in the table is received, the first writing track is edited according to the touch operation, the pictures of the cells where the first writing track is located are updated, then the size of the table and the display position of the writing track in the table are adjusted according to the set layout relation, and the corresponding pictures are used for refreshing and displaying in the display position adjustment process, so that the technical problem that in the prior art, the number of drawing objects is easily affected when the table is adaptively adjusted, and the clamping problem is caused can be solved. By recording the writing tracks in the cells by the bitmap and replacing the writing tracks in the cells by the bitmap in the adjustment process, the number of drawing objects can be reduced during refreshing, and the occurrence of the clamping phenomenon can be further effectively avoided.
Fig. 4 is a flowchart of a table management method according to an embodiment of the present application. The table management method provided in this embodiment is embodied on the basis of the above embodiment. Specifically, referring to fig. 4, the table management method specifically includes:
Step 210, receiving a touch operation, where the touch operation is used to edit a first writing track in a table, each cell containing the writing track in the table corresponds to a picture, and the picture is used to record bitmap display data of all writing tracks in the corresponding cell.
In an embodiment, the size of the picture is equal to the size of the smallest circumscribed rectangle of the entire written trace within the corresponding cell.
And 220, editing the first writing track according to the touch operation and updating the picture of the cell where the first writing track is located.
Step 230, judging whether the writing track in the table and the table meets the set layout relation. If the set layout relationship is not satisfied, step 250 is performed, otherwise, step 240 is performed.
Specifically, after editing the first writing track, there is a case where there is no need to adjust the table, for example, when writing or enlarging the first writing track, the first writing track does not exceed the cell in which it is located, and thus, there is no need to adjust. For another example, when the first writing track is erased or reduced, the minimum distance between the writing track and the frame line of the cell in each cell in the row and column to which the first writing track belongs is smaller than or equal to the set distance, that is, the blank area in the cell is within the allowable range, so that adjustment is not required. Accordingly, in the embodiment, after editing the first writing track, it may be determined whether the current table satisfies the set layout relationship. In one embodiment, the touch operation is used for writing or amplifying the first writing track in a table, and the setting layout relationship is: the first writing track is contained in a corresponding cell. The touch operation is used for erasing or shrinking the first writing track in a table, and the set layout relationship is as follows: the minimum distance in the distances corresponding to the second cells is smaller than or equal to the set distance, the second cells are cells contained in the row and the column to which the first writing track belongs, and the distances corresponding to the second cells are the distances between the writing track in the second cells and the border lines of the second cells.
When the touch operation is determined to write or enlarge the first writing track in the table, determining whether the first writing track exceeds the border line of the cell where the first writing track is located, if so, determining that the set layout relation is not met, otherwise, determining that the set layout relation is met. When determining whether the first writing track exceeds the border line of the cell, the method may be: the coordinate range of the minimum circumscribed rectangle containing the first writing track in the canvas is obtained, the coordinate range is recorded as the first coordinate range in the embodiment, the frame position of the frame line of the cell where the first writing track is located in the canvas is obtained, and the second coordinate range of the surrounding area of the frame line can be defined according to the frame position. And then determining whether the first coordinate range is in the second coordinate range, if so, indicating that the first writing track does not exceed the cell, otherwise, indicating that the first writing track exceeds the cell.
When the border line of a cell is adjusted, the column of the cell and other cells in the row are also adjusted adaptively. When the touch operation is determined to erase or shrink the first writing track in the table, the blank area in the cell where the first writing track is located becomes larger, and at this time, if the distance between the remaining writing track in the cell and the frame line of the cell is too large, when the cell is shrunk, the situation that the writing track exceeds the cell where the writing track is located in the adjustment process of other cells in the row or column where the cell belongs occurs. For example, fig. 5 is a schematic diagram of a third table provided in an embodiment of the present application. Referring to fig. 5, after the first writing trace is erased, a blank area appears in the cell 15, at this time, the distance between the remaining writing trace in the cell 15 and the right border line of the cell 15 is too large, and at this time, the distance between the writing trace in the cell 16 in the column where the cell 15 is located and the right border line of the cell 16 is equal to the set distance, at this time, when the cell 15 is reduced according to the set distance, the cell 16 is reduced synchronously, and then the writing trace in the reduced cell 16 exceeds the cell 16. Therefore, for the touch operation of erasing or shrinking the first writing track, setting the layout relationship needs to define all cells of the row and column to which the cell of the first writing track belongs. In the embodiment, each cell in the row where the cell of the first writing track belongs and each cell in the column where the cell of the first writing track belongs are denoted as the second cell, and it can be understood that the cell where the first writing track belongs also belongs to the second cell. Further, determining the distance between the writing track and the corresponding frame line in each second cell, and then comparing whether each minimum distance is larger than the corresponding set distance, if so, indicating that the blank area of the second cell in the direction is larger, and not meeting the set layout relation, so that the cell can be reduced. Optionally, after the first writing track is erased or reduced, the minimum circumscribed rectangle of the remaining writing tracks in the cells where the first writing track is located and the minimum circumscribed rectangle of the writing tracks in the cells before the first writing track is erased or reduced may be compared first, if the minimum circumscribed rectangle of the remaining writing tracks is only changed in length compared with the minimum circumscribed rectangle before the first writing track is erased or reduced, only the second cells in the belonging columns may be obtained, and only the left minimum distance and the right minimum distance may be compared with the corresponding set distances. If the minimum bounding rectangle of the remaining writing tracks only has a changed width, only the second cell in the row to which it belongs may be acquired, and only the upper minimum distance and the lower minimum distance may be compared with the corresponding set distances. If the length and width of the minimum circumscribed rectangle of the remaining writing track are changed, the second cell in the belonging row and the belonging column can be obtained, and the left minimum distance, the right minimum distance, the upper minimum distance and the lower minimum distance are compared with the corresponding set distances.
Step 240, stopping the operation.
If the current table meets the set layout relation, the subsequent operation can be stopped, and the process is ended. After that, if the touch operation of editing the writing track is received again, step 210 may be executed again.
Step 250, determining a first cell in the table, which needs to be adjusted in the frame position, and a target adjustment position of the first cell according to the first writing track and the set layout relation.
Specifically, in order to maintain consistency of each row and each column in the table, when adjusting the cell where the first writing track is located, it is necessary to adaptively adjust other cells. Therefore, the cell to be adjusted needs to be found first, which is denoted as the first cell in the embodiment.
If the touch operation is writing or amplifying the first writing track, acquiring a first coordinate range of the first writing track and a second coordinate range of the cell where the first writing track is located when searching the first cell, and then, if the maximum value on the X axis in the first coordinate range is greater than the maximum value on the X axis in the second coordinate range, indicating that the first writing track exceeds a border line on the right side of the cell, and expanding the cell rightward. When the cell is expanded rightward, other cells in the column where the cell is located and other cells in all columns located on the right side of the cell need to be adjusted, and at this time, the cell and other cells to be adjusted may be determined as the first cell. Similarly, if the minimum value on the X-axis in the first coordinate range is smaller than the minimum value on the X-axis in the second coordinate range, it is indicated that the first writing track exceeds the border line on the left side of the cell, and at this time, the determining manner of the first cell is the same as the determining manner of the first cell when the first writing track exceeds the border line on the right side of the cell, which is not described herein. If the maximum value of the Y axis in the first coordinate range is greater than the maximum value of the Y axis in the second coordinate range, the first writing track is beyond the border line on the lower side of the cell, and the cell needs to be expanded downwards. When the cell is expanded downward, other cells in the row where the cell is located and other cells in all rows located at the lower side of the cell need to be adjusted, at this time, the cell and other cells to be adjusted may be determined as the first cell. Similarly, if the minimum value on the Y axis in the first coordinate range is smaller than the minimum value on the Y axis in the second coordinate range, it is indicated that the first writing track exceeds the border line on the upper side of the cell, and the cell needs to be expanded upwards. It can be understood that, in practical application, if the plurality of the most values in the first coordinate range exceeds the corresponding plurality of the most values in the second coordinate range, the first cells may be searched based on each of the most values and summarized to obtain the final first cells.
It should be noted that the above determination of the first cell by the coordinate range is only an alternative, and the first cell may be determined in other manners. For example, the top left corner vertex and the bottom right corner vertex of the minimum bounding rectangle of the first writing track are determined, and the top left corner vertex and the bottom right corner vertex of the cell in which the first writing track is located are determined, so that the first cell is determined by comparing the coordinates of the two top left corner vertices and the coordinates of the two bottom right corner vertices.
After the first cell is obtained, the adjusted frame position of the first cell in the canvas can be determined, and in the embodiment, the adjusted frame position is recorded as a target adjustment position. Specifically, in order to satisfy the set layout relationship, that is, in order to include the first writing track in the cell to which the first writing track belongs, the target adjustment position may be obtained from the first writing track. For example, the first writing track exceeds the border line on the right side of the cell, and at this time, the length of the minimum bounding rectangle of the first writing track is determined according to the first coordinate range. For example, fig. 6 is a schematic diagram of a fourth table provided in an embodiment of the present application. Referring to fig. 6, the width of the minimum bounding rectangle 17 of the first writing track may be determined as a from the first coordinate range of the minimum bounding rectangle. At this time, coordinates of each point in the right side frame line of the first cell 18 are obtained, and a is added to the coordinate value on the X axis in each coordinate, so that the coordinates after the right side frame line adjustment can be obtained, and then, the coordinates after the upper side frame line adjustment and the lower side frame line adjustment can be obtained according to the coordinates after the right side frame line adjustment and the current coordinates of the left side frame line, so that the target adjustment position of the first cell 18 is obtained. Similarly, the target adjustment position of the first cell 19 is obtained. For the first cell 20 and the first cell 21, the coordinate value of each point in the frame line on the X axis may be added with a, and the coordinate value on the Y axis is unchanged, so as to obtain the target adjustment positions of the first cell 20 and the first cell 21. It will be appreciated that the expansion of cells in other directions is the same as that described above, and will not be described in detail herein. It should be noted that the minimum bounding rectangle and the distance mark shown in fig. 6 are only for illustration, and are not shown in the table in practical application.
Further, if the touch operation is to erase or shrink the first writing track, when determining whether the table satisfies the set layout relationship, a direction corresponding to the minimum distance greater than the set distance may be determined. If the left minimum distance corresponding to the second cell is greater than the set distance, the left border line in the second cell needs to be shifted to the right, so that all the second cells in the column to which the first writing track belongs and all the cells located on the left side of the column to which the first writing track belongs can be determined as the first cells. If the right minimum distance corresponding to the second cell is greater than the set distance, the right border line in the second cell needs to be shifted to the left, so that all the second cells in the column to which the first writing track belongs and all the cells located on the right side of the column to which the first writing track belongs can be determined as the first cells. If the upper minimum distance corresponding to the second cell is greater than the set distance, the upper border line in the second cell needs to move downwards, so that all the second cells of the row to which the first writing track belongs and all the cells positioned on the upper side of the row to which the first writing track belongs can be determined as the first cells. If the lower minimum distance corresponding to the second cell is greater than the set distance, the lower border line in the second cell needs to be moved upwards, so that all second cells of the row to which the first writing track belongs and all cells positioned at the lower side of the row to which the first writing track belongs can be determined as the first cells.
After the first cell is obtained, the target adjustment position of the first cell can be determined. Specifically, in order to satisfy the set layout relationship, the target adjustment position may be determined based on the minimum distance and the set distance. For example, fig. 7 is a schematic diagram of a fifth table provided in the embodiment of the present application, a writing track reserved by the first cell 22 after the touch operation erases the first writing track in the first cell 22 is shown in fig. 7, and at this time, a minimum circumscribed rectangle of the first cell 22, a minimum circumscribed rectangle of the first cell 23, and a minimum circumscribed rectangle of the first cell 24 are shown in fig. 7, where a distance b between the minimum circumscribed rectangle of the first cell 23 and a right border line of the first cell 23 is a minimum distance and is greater than a set distance, and distances in other directions are unchanged. At this time, a difference between the distance b and the set distance is calculated, and this difference is denoted as c in the embodiment. At this time, c is subtracted from the coordinate values of each point in the right side frame lines of the first cell 22, the first cell 23, and the first cell 24 on the X axis to move the right side frame line leftward by a distance c. And then, according to the coordinates of the adjusted right side frame line and the current coordinates of the left side frame line, obtaining the coordinates of the adjusted upper side frame line corresponding to the first cell and the coordinates of the adjusted lower side frame in the first cell 24, and further obtaining the target adjustment positions of the first cell 22, the first cell 23 and the first cell 24. For the first cells 25, 26, and 27, the coordinate value of each point in the frame line on the X axis may be subtracted by c, and the coordinate value on the Y axis may be unchanged, so as to obtain the target adjustment positions of the first cells 25, 26, and 27. It will be appreciated that the other directions of shrinking the cells are the same as those described above, and will not be described in detail herein. It should be noted that the minimum bounding rectangle and the distance identifier shown in fig. 7 are only for illustration, and are not shown in the table in practical application.
Step 260, searching the target picture corresponding to the first cell in all the pictures.
After the first cell is obtained, a picture corresponding to the first cell can be searched in the stored pictures, and in the embodiment, the searched picture is recorded as a target picture. Each first cell corresponds to a target picture.
Step 270, determining a single adjustment parameter corresponding to the first cell in the refreshing process and a single movement parameter corresponding to the target picture in the refreshing process according to the target adjustment position.
When the first cell is adjusted, the display position of the target picture in the canvas needs to be adjusted at the same time so as to present the effect of synchronously adjusting the writing track along with the cell. Meanwhile, in order to show the adjustment process of the table in the canvas, the first cell and the target picture can be refreshed for multiple times, and the first cell and the target picture are correspondingly adjusted for one time in each refresh, so that the display adjustment process is realized. Accordingly, the frame position to which the first cell should be adjusted and the display position to which the target picture should be adjusted need to be calculated at each refresh, and in the embodiment, the frame position to which the first cell should be adjusted is determined by a single adjustment parameter, and the display position to which the target picture should be adjusted is determined by a single movement parameter.
The single adjustment parameter may be determined by the number of refreshing times and a target adjustment position, and accordingly, setting the single adjustment parameter for determining the corresponding first cell according to the target adjustment position during the refreshing process includes steps 271-272:
step 271, setting an animation variable, the animation variable being used to define the adjustment duration.
Specifically, the animation variable under the android system can be understood as a value animation, which is used for limiting the animation duration, that is, the adjustment duration in the embodiment, the value range of the animation variable is between 0 and 1, and the specific value can be set according to the actual situation.
Step 272, determining a single adjustment parameter corresponding to the first cell in the refreshing process according to the animation variable and the target adjustment position.
And obtaining an intermediate change value fraction according to the animation variable and the refreshing frequency of the display screen, wherein the reciprocal of the intermediate change value is the refreshing frequency. For example, the number of refreshing times is 5, and when the first cell is adjusted to the target adjustment position, the frame position needs to be adjusted 5 times, and the frame position adjusted last time is the target adjustment display. At this time, a single adjustment parameter may be determined based on the number of refreshes and the target adjustment position. Assuming that the refresh frequency is 5, the target adjustment position of the first cell is obtained by adding the coordinate value of each point in the frame line on the X axis to a, and then the single adjustment parameter may be 1/5*a, i.e. adding the current coordinate value of each point in the frame line of the first cell on the X axis to 1/5*a, so as to obtain the frame position of the first cell after the next refresh. Accordingly, the frame position of the first cell in each refreshing process can be obtained. It is further assumed that the coordinate value of each point in the right side frame line of the first cell on the X axis is added to a, and the coordinates after the adjustment of the upper side frame line and the lower side frame line are obtained based on the coordinates after the addition of the right side frame line, thereby obtaining the target adjustment position of the first cell. And when the refreshing frequency is 5, the single adjustment parameter can be 1/5*a, namely adding the coordinate value of each point in the current right side frame line of the first cell on the X axis to 1/5*a, and obtaining the coordinates of the upper side frame line and the lower side frame line after adjustment based on the coordinates of the right side frame line after addition, so as to obtain the frame position of the first cell after the next refreshing.
It can be understood that, for the first cell whose unchanged size is only shifted, the single movement parameter of the corresponding target picture is the same as the single adjustment parameter of the first cell, which is not described herein. For the first cell of the changed size, the display position of the corresponding target picture is fixed, and therefore, the single movement parameter may not be calculated, or the single movement parameter may be recorded as 0.
Optionally, the adjusted display position of the target picture in the canvas may be calculated first, and in the embodiment, the adjusted display position of the target picture is recorded as the target display position. The target display position may be determined according to the target adjustment position corresponding to the first cell. For example, if the target display position is represented by the center coordinate of the target picture, and the target adjustment position of the first cell is obtained by adding the coordinate value of each point in the frame line on the X axis to a, then the midpoint coordinate of the corresponding target picture may be obtained, and the coordinate value of the midpoint coordinate on the X axis may be added to a, thereby obtaining the target display position. For another example, the target adjustment position of the first cell is obtained by changing the length of the border line, and then the current display position of the target picture may be taken as the target display position, for example, when the table in fig. 7 is adjusted, the display position of the writing track in the first cell 22 should be unchanged, and thus the target display position of the target picture should be the current display position of the target picture. And then, obtaining a single movement parameter according to the target display position.
Step 280, deleting the second writing track in the first cell.
In an embodiment, the writing track currently displayed in the first cell is recorded as a second writing track. Because the writing track is replaced by the target picture to be refreshed later, the second writing track can be deleted during the first refreshing, so that the display of the subsequent target picture is not influenced.
And 290, refreshing and displaying the first cell and the target picture, and adjusting the frame position of the corresponding first cell according to the single adjustment parameter and adjusting the display position of the corresponding target picture according to the single movement parameter when refreshing each time until the frame position of the first cell is the target adjustment position.
From the foregoing description, it can be seen that the frame position of the first cell at each refresh time can be determined according to the single adjustment parameter, and the display position of the target picture at each refresh time can be determined according to the single movement parameter, so that the frame line of the first cell is drawn to the corresponding frame position and the target picture is displayed at the corresponding display position during refresh. After the last refreshing is completed, the frame position of the first cell is the target adjustment position, and when the target display position exists, the display position of the target picture is the target display position. It should be noted that, if each cell in the table needs to be redrawn once during refreshing, the refreshing display of the first cell may also be understood as the refreshing display of the table, and in this case, for other cells in the table, only the frame position needs to be kept unchanged.
Optionally, in the refreshing process, since the display positions of some target pictures are fixed, for example, the display positions of the target pictures corresponding to the first cell 23 in fig. 7 are fixed in the refreshing process, the target pictures may be displayed only when the target pictures are refreshed for the first time, and the target pictures are not refreshed in the subsequent refreshing process.
And 2100, deleting the pictures which are refreshed and displayed in the table.
And 2110, acquiring the display position of the writing track in the refreshed and displayed picture.
Specifically, the coordinate position of each second writing track after adjustment can be calculated according to the mode of calculating the target adjustment position, and the coordinate position is used as the display position of the second writing track.
And 2120, drawing a corresponding writing track in the table according to the display position.
Optionally, if a new touch operation is received during the refresh display process, the first cell may be directly displayed at the target adjustment position during the next refresh, and the writing track is correspondingly displayed, and then the above process is re-executed again according to the touch operation, so as to realize adaptive adjustment of the table.
According to the technical scheme, the touch operation for editing the first writing track in the table is received, the first writing track is edited according to the touch operation, the picture of the cell where the first writing track is located is updated, then when the table is determined not to meet the set layout relation, the size of the table and the display position of the writing track in the table are adjusted according to the set layout relation, and the corresponding picture is used for refreshing and displaying in the display position adjustment process, so that the technical problem that in the prior art, the table is easy to be influenced by the number of drawing objects in the self-adaptive adjustment process, and the problem of blocking is solved. By recording the writing tracks in the cells by the bitmap and replacing the writing tracks in the cells by the bitmap in the adjustment process, the number of drawing objects can be reduced during refreshing, and the occurrence of the clamping phenomenon can be further effectively avoided. Meanwhile, the table is adjusted only when the set layout relation is not met, the table is not required to be adjusted after each operation, and the rationality of the table adjustment is ensured. In addition, in the adjustment process, the frame position of the cell in the canvas and the display position of the picture in the canvas in each refreshing process can be obtained by calculating the single adjustment parameter and the single movement parameter, the adjustment process of the table can be demonstrated, namely, the adjustment animation is displayed, and the use experience of a user is improved.
Fig. 8 is a schematic structural diagram of a table management device according to an embodiment of the present application. Referring to fig. 8, the table management apparatus includes: a receiving module 301, an updating module 302 and an adjusting module 303.
The receiving module 301 is configured to receive a touch operation, where the touch operation is used to edit a first writing track in a table, each cell containing the writing track in the table corresponds to a picture, and the picture is used to record bitmap display data of all writing tracks in the corresponding cell; the updating module 302 is configured to edit the first writing track according to the touch operation and update a picture of a cell where the first writing track is located; and the adjusting module 303 is configured to adjust the size of the table and the display position of the writing track in the table according to the set layout relationship, where the display position is refreshed and displayed with a corresponding picture in the adjusting process.
According to the technical scheme, the touch operation for editing the first writing track in the table is received, the first writing track is edited according to the touch operation, the pictures of the cells where the first writing track is located are updated, then the size of the table and the display position of the writing track in the table are adjusted according to the set layout relation, and the corresponding pictures are used for refreshing and displaying in the display position adjustment process, so that the technical problem that in the prior art, the number of drawing objects is easily affected when the table is adaptively adjusted, and the clamping problem is caused can be solved. By recording the writing tracks in the cells by the bitmap and replacing the writing tracks in the cells by the bitmap in the adjustment process, the number of drawing objects can be reduced during refreshing, and the occurrence of the clamping phenomenon can be further effectively avoided.
On the basis of the above embodiment, the adjustment module 303 includes: a cell determining unit, configured to determine a first cell in the table, where a frame position needs to be adjusted, and a target adjustment position of the first cell according to the first writing track and the set layout relationship; the picture determining unit is used for searching the target picture corresponding to the first cell in all the pictures; the parameter determining unit is used for determining a single adjustment parameter of the corresponding first cell in the refreshing process and a single movement parameter of the corresponding target picture in the refreshing process according to the target adjustment position; a track deleting unit, configured to delete a second writing track in the first cell; and the table refreshing unit is used for refreshing and displaying the first cell and the target picture, and adjusting the frame position of the corresponding first cell according to the single adjustment parameter and adjusting the display position of the corresponding target picture according to the single movement parameter when refreshing each time until the frame position of the first cell is the target adjustment position.
On the basis of the above embodiment, the parameter determination unit includes: a variable setting subunit for setting an animation variable for defining an adjustment duration; the adjustment parameter determining subunit is used for determining a single adjustment parameter of the corresponding first cell in the refreshing process according to the animation variable and the target adjustment position; and the movement parameter determining subunit is used for determining a single movement parameter of the corresponding target picture in the refreshing process according to the target adjusting position.
On the basis of the above embodiment, the method further comprises: the picture deleting module is used for adjusting the size of the table and the display position of the writing track in the table according to the set layout relation, and deleting the picture which is refreshed and displayed in the table after the corresponding picture is refreshed and displayed in the adjustment process of the display position; the display position acquisition module is used for acquiring the display position of the writing track in the refreshed and displayed picture; and the track drawing module is used for drawing a corresponding writing track in the table according to the display position.
On the basis of the above embodiment, the method further comprises: the relation judging module is used for judging whether the table and the writing track in the table meet the set layout relation before the size of the table and the display position of the writing track in the table are adjusted according to the set layout relation; and the operation execution module is used for executing the operation of adjusting the size of the table and the display position of the writing track in the table according to the set layout relation if the set layout relation is not met.
On the basis of the foregoing embodiment, the touch operation is used to write or enlarge the first writing track in a table, and the set layout relationship is: the first writing track is contained in a corresponding cell.
On the basis of the above embodiment, the touch operation is used to erase or shrink the first writing track in the table, and the set layout relationship is: the minimum distance in the distances corresponding to the second cells is smaller than or equal to the set distance, the second cells are cells contained in the row and the column to which the first writing track belongs, and the distances corresponding to the second cells are the distances between the writing track in the second cells and the border lines of the second cells.
On the basis of the embodiment, the size of the picture is equal to the size of the smallest circumscribed rectangle of all writing tracks in the corresponding cell.
The table management device provided by the above-mentioned embodiments can be used for executing the table management method provided by the above-mentioned corresponding embodiments, and has corresponding functions and beneficial effects.
It should be noted that, in the above embodiment of the table management apparatus, each unit and module included are only divided according to the functional logic, but not limited to the above division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
Fig. 9 is a schematic structural diagram of a table management device according to an embodiment of the present application. In this embodiment, an intelligent interaction tablet is taken as an example of a table management device for description. As shown in fig. 9, the intelligent interactive tablet 40 includes at least one processor 41, at least one network interface 42, a user interface 43, a memory 44, and at least one communication bus 45.
Wherein a communication bus 45 is used to enable connected communication between these components.
The user interface 43 may include a display screen, a camera, and the optional user interface 43 may also include a standard wired interface, a wireless interface, among others.
The network interface 42 may optionally include a standard wired interface, a wireless interface (e.g., wi-Fi interface), among others.
Wherein processor 41 may comprise one or more processing cores. The processor 41 connects the various portions of the overall intelligent interactive tablet 40 using various interfaces and lines to perform various functions of the intelligent interactive tablet 40 and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the processor 41 and invoking data stored in the memory 44. Alternatively, the processor 41 may be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable logic arrays, PLA). The processor 41 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics ProcessingUnit, GPU), a modem, and the like. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 41 and may be implemented by a single chip.
The Memory 44 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 44 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). Memory 44 may be used to store instructions, programs, code, sets of codes, or instruction sets. The memory 44 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, etc.; the storage data area may store data or the like referred to in the above respective method embodiments. The memory 44 may alternatively be at least one memory device located remotely from the aforementioned processor 41. As shown in FIG. 9, an operating system, a network communication module, a user interface module, and an operating application of the intelligent interactive tablet may be included in memory 44, which is a type of computer storage medium.
In the intelligent interactive tablet 40 shown in fig. 9, the user interface 43 is mainly used for providing an input interface for a user, and acquiring data input by the user; and the processor 41 may be used to invoke the operating application of the intelligent interactive tablet stored in the memory 44 and to specifically perform the relevant operations in the table management method in the above-described embodiments.
In one embodiment, the operating system of the intelligent interactive tablet is an android system.
The intelligent interaction panel can be used for executing any form management method, and has corresponding functions and beneficial effects.
In addition, the embodiment of the present invention further provides a storage medium containing computer executable instructions, where the computer executable instructions when executed by a computer processor are used to perform relevant operations in the table management method provided in any embodiment of the present application, and have corresponding functions and beneficial effects.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product.
Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein. The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (10)

1. A form management method, comprising:
receiving touch operation, wherein the touch operation is used for editing a first writing track in a table, each cell containing the writing track in the table corresponds to a picture, and the picture is used for recording bitmap display data of all writing tracks in the corresponding cell;
editing the first writing track according to the touch operation and updating the picture of the cell where the first writing track is located;
adjusting the size of the table and the display position of the writing track in the table according to the set layout relation, wherein the display position is refreshed and displayed by a corresponding picture in the adjustment process;
the adjusting the size of the table and the display position of the writing track in the table according to the set layout relation, wherein the refreshing display of the display position with the corresponding picture in the adjusting process comprises the following steps:
determining a first cell needing to adjust the frame position in the table and a target adjustment position of the first cell according to the first writing track and the set layout relation;
searching a target picture corresponding to the first cell in all the pictures;
Determining a single adjustment parameter of the corresponding first cell in the refreshing process and a single movement parameter of the corresponding target picture in the refreshing process according to the target adjustment position;
deleting a second writing track in the first cell, wherein the second writing track is a writing track currently displayed in the first cell;
and refreshing and displaying the first cell and the target picture, and adjusting the frame position of the corresponding first cell according to the single adjustment parameter and adjusting the display position of the corresponding target picture according to the single movement parameter when refreshing each time until the frame position of the first cell is the target adjustment position.
2. The method of claim 1, wherein determining a single adjustment parameter for the corresponding first cell during the refresh according to the target adjustment position comprises:
setting an animation variable, wherein the animation variable is used for limiting the adjustment duration;
and determining a single adjustment parameter of the corresponding first cell in the refreshing process according to the animation variable and the target adjustment position.
3. The method for managing a table according to claim 1, wherein the adjusting the size of the table and the display position of the writing track in the table according to the set layout relationship, after refreshing the display with the corresponding picture in the adjustment process, further comprises:
Deleting the pictures which are refreshed and displayed in the table;
acquiring the display position of a writing track in the refreshed and displayed picture;
and drawing a corresponding writing track in the table according to the display position.
4. The method of claim 1, wherein before adjusting the size of the table and the display position of the writing track in the table according to the set layout relationship, further comprising:
judging whether the writing track in the form and the form meet a set layout relation or not;
and if the set layout relation is not met, executing the operation of adjusting the size of the table and the display position of the writing track in the table according to the set layout relation.
5. The method according to claim 1 or 4, wherein the touch operation is used for writing or amplifying the first writing track in a table, and the set layout relationship is: the first writing track is contained in a corresponding cell.
6. The method according to claim 1 or 4, wherein the touch operation is used to erase or shrink the first writing track in a table, and the set layout relationship is: the minimum distance in the distances corresponding to the second cells is smaller than or equal to the set distance, the second cells are cells contained in the row and the column to which the first writing track belongs, and the distances corresponding to the second cells are the distances between the writing track in the second cells and the border lines of the second cells.
7. The form management method according to claim 1, wherein the size of the picture is equal to the size of a smallest circumscribed rectangle of all writing tracks in the corresponding cell.
8. A form management apparatus, comprising:
the receiving module is used for receiving touch operation, the touch operation is used for editing a first writing track in a table, each cell containing the writing track in the table corresponds to a picture, and the picture is used for recording bitmap display data of all writing tracks in the corresponding cell;
the updating module is used for editing the first writing track according to the touch operation and updating the picture of the cell where the first writing track is located;
the adjustment module is used for adjusting the size of the table and the display position of the writing track in the table according to the set layout relation, and the display position is refreshed and displayed by the corresponding picture in the adjustment process;
wherein, the adjustment module includes:
a cell determining unit, configured to determine a first cell in the table, where a frame position needs to be adjusted, and a target adjustment position of the first cell according to the first writing track and the set layout relationship;
The picture determining unit is used for searching the target picture corresponding to the first cell in all the pictures;
the parameter determining unit is used for determining a single adjustment parameter of the corresponding first cell in the refreshing process and a single movement parameter of the corresponding target picture in the refreshing process according to the target adjustment position;
the track deleting unit is used for deleting a second writing track in the first cell, wherein the second writing track is a writing track currently displayed in the first cell;
and the table refreshing unit is used for refreshing and displaying the first cell and the target picture, and adjusting the frame position of the corresponding first cell according to the single adjustment parameter and adjusting the display position of the corresponding target picture according to the single movement parameter when refreshing each time until the frame position of the first cell is the target adjustment position.
9. A form management apparatus, characterized by comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, causes the one or more processors to implement the table management method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the form management method as claimed in any one of claims 1-7.
CN202010159441.1A 2020-03-09 2020-03-09 Form management method, device, equipment and storage medium Active CN111428455B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010159441.1A CN111428455B (en) 2020-03-09 2020-03-09 Form management method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010159441.1A CN111428455B (en) 2020-03-09 2020-03-09 Form management method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111428455A CN111428455A (en) 2020-07-17
CN111428455B true CN111428455B (en) 2023-06-20

Family

ID=71547464

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010159441.1A Active CN111428455B (en) 2020-03-09 2020-03-09 Form management method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111428455B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111625171B (en) * 2020-07-28 2020-11-03 深圳市千分一智能技术有限公司 Stroke display method, device and equipment and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109284494A (en) * 2018-09-07 2019-01-29 广州视源电子科技股份有限公司 A kind of method, apparatus, equipment and the storage medium of dynamic adjustment table
CN109364483A (en) * 2018-10-10 2019-02-22 苏州好玩友网络科技有限公司 Large scene map dividing method and the player visual angle scene update method for applying it
CN109446199A (en) * 2018-10-19 2019-03-08 天津字节跳动科技有限公司 Cell data processing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109284494A (en) * 2018-09-07 2019-01-29 广州视源电子科技股份有限公司 A kind of method, apparatus, equipment and the storage medium of dynamic adjustment table
CN109364483A (en) * 2018-10-10 2019-02-22 苏州好玩友网络科技有限公司 Large scene map dividing method and the player visual angle scene update method for applying it
CN109446199A (en) * 2018-10-19 2019-03-08 天津字节跳动科技有限公司 Cell data processing method and device

Also Published As

Publication number Publication date
CN111428455A (en) 2020-07-17

Similar Documents

Publication Publication Date Title
CN110941383B (en) Double-screen display method, device, equipment and storage medium
CN110928459B (en) Writing operation method, device, equipment and storage medium of intelligent interactive tablet
CN110069204B (en) Graph processing method, device and equipment based on writing track and storage medium
CN110427601B (en) Form processing method and device, intelligent interactive panel and storage medium
CN110045909B (en) Ellipse processing method, device and equipment based on writing track and storage medium
CN110928460B (en) Operation method and device of intelligent interactive panel, terminal equipment and storage medium
CN110928475B (en) Page interaction method, device, equipment and storage medium of intelligent interaction panel
CN108874292B (en) Comment display method and device and intelligent interactive panel
CN111580714A (en) Page editing method, device, equipment and storage medium of intelligent interactive tablet
CN111782114B (en) Element display method, device, equipment and medium in manuscript editing application
CN111338538A (en) Page operation method, device, equipment and storage medium of intelligent interactive tablet
CN111428455B (en) Form management method, device, equipment and storage medium
WO2020186837A1 (en) Text animation control method and device, storage medium and processor
CN114115643A (en) Component display method and device, electronic equipment and readable medium
CN107015726A (en) A kind of multidate information methods of exhibiting and device
CN111580713A (en) Display interaction system
JP4886570B2 (en) Information processing apparatus, information processing method, and program
CN109104627B (en) Focus background generation method, storage medium, device and system of android television
CN108491139B (en) Object fixing method and device, terminal equipment and storage medium
CN114972558A (en) Handwriting drawing method, device, medium and interactive panel
CN112394859A (en) Form dynamic adjustment method and terminal equipment
CN115563932B (en) Table paging method, device, equipment and storage medium
CN111352598A (en) Image scrolling display method and device
WO2024065097A1 (en) Blackboard-writing content display method, electronic device, and storage medium
KR102648288B1 (en) Methods and systems for presenting media content with multiple media elements in an editorial environment

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