CN111428455A - Table management method, device, equipment and storage medium - Google Patents

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

Info

Publication number
CN111428455A
CN111428455A CN202010159441.1A CN202010159441A CN111428455A CN 111428455 A CN111428455 A CN 111428455A CN 202010159441 A CN202010159441 A CN 202010159441A CN 111428455 A CN111428455 A CN 111428455A
Authority
CN
China
Prior art keywords
cell
writing track
writing
picture
display position
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.)
Granted
Application number
CN202010159441.1A
Other languages
Chinese (zh)
Other versions
CN111428455B (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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses a form management method, a device, equipment and a storage medium, which relate to the technical field of interactive intelligent equipment and comprise 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 for recording bitmap display data of 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 a 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 adjusting process. By adopting the method, the technical problem that the number of the drawn objects is easily influenced and the stuck phenomenon is generated during the self-adaptive adjustment of the table in the prior art can be solved, the writing track in the unit cell is recorded through the bitmap, and the writing track in the unit cell is replaced by the bitmap during the refreshing, so that the number of the drawn objects can be reduced, and the stuck phenomenon can be effectively avoided.

Description

Table 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, is also a means for organizing and sorting data, can show information and data more intuitively and clearly, and is widely applied to scenes such as information recording, data statistics and the like. With the development of interactive intelligent technology, a user can start an electronic whiteboard application program in an interactive intelligent device and draw an electronic form in the application program so as to realize a form function in the intelligent device.
When a user fills in a spreadsheet, the smart device usually counts bars, i.e. each writing trace written by the user is recorded as an object by the smart device. In the prior art, in order to enhance the flexibility of the table, when the filled content in the table exceeds the cell, the size of the cell can be adaptively expanded so as to enable the cell to contain the complete content, and when the filled content in the table is deleted, the size of the cell can be adaptively reduced so as to reduce the blank area in the cell.
In the process of implementing the invention, the inventor finds that the prior art has the following defects: when adjusting the size of a cell, it is necessary to adjust other cells in synchronization in order to keep the table in order. At this time, in order to ensure that each cell is suitable for the corresponding content, each writing track in the cell needs to be adjusted synchronously. That is, in the adjustment process, each time the cell is refreshed, the corresponding writing track needs to be redrawn. However, the number of drawing objects affects the refresh rate, and when the content of the table is large, a pause phenomenon occurs in the refresh process, which seriously affects the user experience.
Disclosure of Invention
The application provides a table management method, a table management device and a table management storage medium, which are used for solving the technical problem that in the prior art, tables are susceptible to the influence of the number of drawn objects during adaptive adjustment and are blocked.
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 the 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 a writing track in the table according to a set layout relation, wherein the display position is refreshed and displayed by a corresponding picture in the adjusting 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 relationship, where the refreshing and displaying the display position with the corresponding picture in the adjusting process includes:
Determining a first cell of the table, the position of which needs to be adjusted, 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 pictures;
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;
Deleting the second writing track in the first cell;
And refreshing and displaying the first unit cell and the target picture, and adjusting the frame position corresponding to the first unit cell according to the single adjustment parameter and adjusting the display position corresponding to the target picture according to the single movement parameter during each refreshing until the frame position of the first unit cell is the target adjustment position.
Further, the determining the single adjustment parameter corresponding to the first cell in the refresh 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 corresponding to the 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 relationship, where the display position is refreshed and displayed by a corresponding picture in the adjusting process, further includes:
Deleting the refreshed displayed pictures in the table;
Acquiring the display position of a writing track in the refreshed picture;
And drawing a corresponding writing track in the table according to the display position.
Further, before 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 table and the writing track in the table 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 setting layout relationship is as follows: the first writing tracks are contained in corresponding cells.
Further, the touch operation is used to erase or reduce the first writing track in a table, and the setting layout relationship is: the minimum distance in the distances corresponding to the second cells is smaller than or equal to a set distance, the second cells are the cells contained in the row and the column to which the cell where the first writing track belongs, and the distance corresponding to the second cells is the distance between the writing track in the second cells and the border line of the second cells.
Furthermore, the size of the picture is equal to the size of the minimum 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 device comprises a receiving module, a processing module and a processing module, wherein 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 pictures are used for recording bitmap display data of all the writing tracks in the corresponding cells;
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;
And the adjusting 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 a corresponding picture in the adjusting process.
In a third aspect, an embodiment of the present application further provides a form management apparatus, including:
One or more processors;
A memory for storing one or more programs;
When the one or more programs are executed by the one or more processors, cause the one or more processors to implement the table management method according to the first aspect.
In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the form management method according to the first aspect.
According to the table management method, the table management device, the table management equipment and the 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 picture of the cell where the first writing track is located is 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 picture is used for refreshing and displaying in the adjusting process of the display position, so that the technical problems that the table is easily affected by the number of drawing objects and is blocked during adaptive adjustment in the prior art can be solved. Writing tracks in the cells are recorded through the bitmaps, and in the adjusting process, the writing tracks in the cells are replaced by the bitmaps, so that the number of drawn objects can be reduced in the refreshing process, and the phenomenon of blockage can be effectively avoided.
Furthermore, in the adjusting process, the frame position of the unit grid in the canvas and the display position of the picture in the canvas in the refreshing process at each time can be obtained by calculating the single adjusting parameter and the single moving parameter, so that the adjusting process of the table is demonstrated, namely, the adjusting animation is displayed, and the use experience of a user is improved.
Drawings
FIG. 1 is a flow chart of a form management method according to an 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 form management method according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a third table provided in the embodiments of the present application;
FIG. 6 is a schematic diagram of a fourth table provided in the embodiments of the present application;
FIG. 7 is a schematic diagram of a fifth table provided in an embodiment of the present application;
Fig. 8 is a schematic structural diagram of a table management apparatus according to an embodiment of the present application;
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 will be described in further detail with reference to the following 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 the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures.
It is to 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, the "first" and "second" of the first cell and the second cell are used to distinguish two different cells.
The form management method provided in the embodiment of the present application may be executed by a form management device, the form management device may be implemented in a software and/or hardware manner, and the form management device may be formed by two or more physical entities or may be formed by one physical entity. For example, the form management device may be a smart device such as a computer, a mobile phone, a tablet, or a smart interactive tablet.
For convenience of understanding, the intelligent interaction tablet is exemplarily described as the form management device in the embodiment. The intelligent interactive panel can be an integrated device which controls the content displayed on the display panel and realizes man-machine interaction operation through a touch technology, and can integrate one or more functions of a projector, an electronic whiteboard, a curtain, a sound box, a television, a video conference terminal and the like.
Generally, a smart interactive tablet includes at least one display screen. For example, the smart 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. Furthermore, the user can realize touch operation by touching the display screen with a finger or a stylus, and correspondingly, the intelligent interactive panel detects the touch position, determines a response scheme according to the display content corresponding to the touch position, and then responds to realize the touch function. For example, the corresponding display content is determined to be a control of a certain function according to the touch position, and at this time, the response scheme is to execute the function. It can be understood that, in practical applications, the user may also implement control operations by means of a keyboard, a mouse, physical keys, and the like.
the smart interactive tablet is typically installed with at least one type of operating system, wherein the operating system includes, but is not limited to, an android system, an L inux system, and a Windows system.
In one embodiment, at least an electronic whiteboard application is installed in the smart interactive tablet. When the electronic whiteboard application program is started, a user can write, draw, insert multimedia, insert a file, insert a table, play multimedia and the like in the canvas, and can control the operations, such as cancelling the operation, deleting the writing track and the like. The canvas can be understood as an operation area of a user on the electronic whiteboard. It is understood that besides the canvas, a control area may be displayed in the operation interface of the electronic whiteboard application, and function keys (such as a menu, a cancel key, an eraser, etc.) may be displayed in the control area to facilitate the function switching of the user. It can be understood that the size of the canvas can be set according to practical situations, and the canvas can be in a limited size or an unlimited 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 relationship exists between the two coordinate systems. When the display screen receives touch operation, the parameters of the electrical component at the corresponding position 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 component, namely determines the touch position of the touch operation. And then, determining the coordinates of the touch operation in the canvas according to the mapping relation and the touch position, and responding to the touch operation according to the display content corresponding to the coordinates. For convenience of understanding, in the embodiment, a coordinate system of the canvas and a coordinate system of the pixel are described as an example, and at this time, an origin of the coordinate system is a pixel point at the upper left corner of the display screen and a coordinate point at the upper left corner of the canvas. Also, the coordinates mentioned in the following embodiments are described by taking the coordinates under the canvas coordinate system as an example.
In the embodiment, the form management method is described by taking an example that the intelligent interactive tablet currently runs the electronic whiteboard application program, and in practical application, the application program currently running by the intelligent interactive tablet may also be an application program having a spreadsheet function in addition to the electronic whiteboard application program.
Fig. 1 is a flowchart of a form 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 one picture, and the picture is used to record bitmap display data of all writing tracks in the corresponding cell.
For example, at least one table is displayed in the current canvas, in the embodiment, one table is taken as an example, and the embodiment of the drawing mode of the table is not limited. Specifically, the table includes at least two cells, where the embodiment of the arrangement mode of each cell is not limited, that is, the embodiment of the number of rows and columns of the table is not limited, and the cells in the same row in the table have the same row height, and the cells in the same column have the same column width.
Typically, a user may write handwriting in the form in a touch manner, and in the embodiment, the handwriting written by the user is recorded 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 may represent the positional relationship between coordinate points in the writing trace and corresponding pixel values, that is, from the user perspective, the writing trace displayed in the picture is identical to the actual writing trace in the form. Optionally, when the picture is generated, an external 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 is obtained and stored based on the pixel points in the external rectangle. Typically, the circumscribed rectangle containing all writing tracks may be a minimum circumscribed rectangle containing all writing tracks, or a maximum circumscribed rectangle surrounded by the cell frame line, or a rectangle with a set size, and the rectangle is larger than the minimum circumscribed rectangle and smaller than the maximum circumscribed rectangle. In the embodiment, the external rectangle is described as the minimum external rectangle, and at this time, the size of the picture is equal to the size of the minimum external 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 subsequently.
It can be understood that each cell containing the writing track corresponds to one 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 trajectory in a table, wherein editing the writing trajectory comprises: writing a writing trace, erasing a writing trace, enlarging a writing trace, reducing a writing trace, and the like. In the embodiment, the writing track is edited by means of touch operation. The embodiment of the triggering mode of the touch operation is not limited, for example, in the writing function, when the touch operation is received in the canvas, the operation of writing the writing track is determined to be received; 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 can be understood that the touch operations mentioned in the embodiments are all used for editing the writing track, and in practical applications, the touch operations may also implement other functions besides editing the writing track. Further, in the embodiment, the writing track edited by the touch operation is located in the table for description, and the writing track is recorded as the first writing track. It should be noted that, in the embodiment, the description is given by taking the example of editing one first writing track by touch operation, in practical applications, the touch operation may edit at least one first writing track, for example, the touch operation may erase two writing tracks at the same time.
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 editing result of the first writing track is displayed in a table in response to the touch operation. For example, when the touch operation is writing a 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 parameter (e.g., 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.
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 changes, and at this time, the picture corresponding to the cell is synchronously updated. Namely, a new picture is generated based on all writing tracks in the cells, and the stored picture is replaced by the new picture.
And step 130, adjusting the size of the table and the display position of the writing track in the table according to the set layout relationship, wherein the display position is refreshed and displayed by a corresponding picture in the adjusting process.
The specific content of the setting layout relationship can be set according to the actual situation. Optionally, different touch operations may correspond to different set layout relationships. For example, the touch operation is used to write or amplify 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, namely the writing track in the cell is not allowed to exceed the cell in which the writing track is located. For another example, the touch operation is used to erase or shrink 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 a set distance, the second cells are the cells contained in the row and the column to which the cell where the first writing track belongs, and the distance corresponding to the second cells is the distance between the writing track in the second cells and the border line of the second cells. Typically, since each row of cells in the table has the same row height and each column of cells has the same column width, when the border line of a cell is adjusted, the other cells in the column and the row are also adjusted. In the embodiment, the cells in the row and the column of the cell in which the first writing track is located are marked as the 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. The calculation method of each distance is the same, in the embodiment, the calculation of the distance between the writing track and the left side frame line is taken as an example for description, specifically, the minimum circumscribed rectangle corresponding to all writing tracks in the cell is determined, and then, the perpendicular distance between the vertical side on the left side in the minimum circumscribed rectangle 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 obtaining the four distances corresponding to each cell, for the second cells in the same row, the distance between the writing trajectory corresponding to each second cell and the upper side frame line and the distance between the writing trajectory and the lower side frame line are respectively obtained, then, the minimum distance is selected from the obtained distances between all the writing trajectories and the upper side frame line and recorded as the upper minimum distance, and similarly, the minimum distance is selected from the obtained distances between all the writing trajectories and the lower side frame line and recorded as the lower minimum distance. Further, the specific value of the set distance can be selected according to actual conditions, and the set distance is used for limiting the minimum distance between the writing track and the frame line. Optionally, the upper minimum distance and the lower minimum distance may correspond to the same set distance, or may correspond to different set distances, and in the embodiment, the same set distance is taken as an example. If the minimum distance is less than or equal to the set distance, the blank area between the writing track in the line and the border line on each cell in the line is reasonable. Similarly, for the second cells in the same row, the distance between the writing track corresponding to each second cell and the left side frame line and the distance between the writing track and the right side frame line are respectively obtained, and the set layout relationship is confirmed according to the above manner, which is not described herein again. When the set layout relationship is confirmed, the minimum distance between the writing trajectory and the left side frame line is defined as a left minimum distance, the minimum distance between the writing trajectory and the right side frame line is defined as a right minimum distance, and the left minimum distance and the right minimum distance may correspond to the same set distance or 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.
Optionally, different touch operations may correspond to the same set layout relationship, for example, the set layout relationship is: the writing trace is contained in the corresponding cell. Alternatively, the setting of the layout relationship may be: the minimum distance between the writing track of each cell in each row in the table and the horizontal border line in the corresponding cell is less 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 border line in the corresponding cell is less than or equal to the set distance.
Typically, after the first writing track is edited, 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 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 are adjusted.
In the embodiment, the display position of the border line in the canvas is recorded as the position of the border. Specifically, when the size of the table is adjusted, only the size of a part of the cells in the table may be adjusted, instead of adjusting the size of all the cells, and therefore, 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 first table diagram provided in the embodiment of the present application, and referring to fig. 2, after the first writing track 11 is written, it is determined that the first writing track 11 exceeds the cell 12 where the first writing track 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 when the size of the table is adjusted, it is necessary to adjust 3 cells in the column where the cell 12 is located and 3 cells in the column on the right side of the cell 12, that is, all the cells. For another example, referring to fig. 3, the writing track in the cell 13 is a writing track remaining after erasing the first writing track, at this time, the distance between the cell 14 in the row of the cell 13 and the right side frame line is the minimum and is greater than the set distance, at this time, it is necessary to reduce the cell 13, the remaining cell in the row of the cell 13, and 3 cells on the right side of the cell 13, that is, the adjustment part sub-cells, to the left. Further, after the cells needing to be adjusted in size are determined, the position of the border to which the border line of each cell needs to be adjusted is determined. Wherein, the target adjusting position can be determined according to the set layout relation. For example, when the first writing track exceeds the cells, the coordinate range of the minimum bounding rectangle of the first writing track in the canvas is determined, then the target adjustment position of the cell where the first writing track is located when the set layout relation is met is determined according to the coordinate range, and then the target adjustment positions of other cells needing to be adjusted are determined according to the target adjustment position. Furthermore, after the target adjusting position is obtained, the frame line of the cell can be adjusted. In order to display the self-adaptive adjustment process of the table, the single adjustment parameter of the cell in each refreshing process can be determined according to the target adjustment position, and the frame position of the cell frame line in the canvas in each refreshing process can be determined through the single adjustment parameter. The embodiment of the determination method of the single adjustment parameter is not limited. After the single adjustment parameter is determined, the frame position of the cell frame line can be drawn according to the single adjustment parameter during each refreshing, and the adjustment process of the table size is further displayed.
Further, during the adjustment of the table size, the display position of the writing track in the table is adjusted simultaneously. As is apparent from the foregoing description, only the size of a part of the cells may be adjusted when the size of the table is adjusted, and then only the display position of the writing trace in the part of the cells may be adjusted when the display position of the writing trace is adjusted. And when the display position of the writing track is adjusted, refreshing and displaying by adopting the corresponding picture to replace the writing track. Namely, in the adjusting process, the writing track in the cell is deleted firstly, and the corresponding picture is displayed in the minimum external rectangle of the writing track. Optionally, a target display position of the picture, that is, a display position of the writing track when the preset layout relationship is satisfied, is determined, and a determination manner of the target display position is the same as that of the target adjustment position, which is not described herein any more, it can be understood that, for a cell with a changed size, a display position of the picture displayed is fixed, and therefore, during actual processing, the corresponding writing track may be displayed in the cell, and the writing track is not redrawn during refreshing, or, the picture is displayed during first refreshing, and during subsequent processes, the picture may not be refreshed and displayed. It should be noted that, in practical applications, no matter whether all cells need to be adjusted, all cells can be drawn in the adjustment process, and the corresponding writing tracks are replaced by pictures. Furthermore, the cells are gradually refreshed and adjusted along with the adjustment process, so that the picture is gradually adjusted in the adjustment process in order to adapt to the corresponding cells, and at the moment, the single movement parameter of the picture can be determined according to the target display position, wherein the display position of the picture in the canvas during each refreshing can be determined through the single movement parameter. The single movement parameter is determined in the same way as the single adjustment parameter. Optionally, the target display position may also be undetermined, and the single movement parameter may be determined directly based on the target adjustment position. After the single adjustment parameter is determined, the picture can be synchronously updated according to the single movement parameter when the cell is refreshed each time, and then the adjustment process of the writing track is displayed.
It can be understood that the implementation process of the form adjustment is only an adjustment process of seeing the form and the writing track from the user perspective, and a process of replacing the writing track by the picture cannot be perceived.
Optionally, after the adjustment is completed, the picture in the form is deleted, and the corresponding writing track is displayed.
The technical scheme that 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 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 adjusting process can be solved, and the technical problems that the number of drawn objects is easily influenced and the jam is generated during the self-adaptive adjustment of the table in the prior art can be solved. Writing tracks in the cells are recorded through the bitmaps, and in the adjusting process, the writing tracks in the cells are replaced by the bitmaps, so that the number of drawn objects can be reduced in the refreshing process, and the phenomenon of blockage can be 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-described embodiments. 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 one 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 bounding rectangle corresponding to all writing tracks in the cell.
And step 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.
And step 230, judging whether the writing tracks in the form and the form meet a set layout relationship. If the set layout relationship is not satisfied, go to step 250, otherwise go to step 240.
Specifically, after the first writing track is edited, there is a case where the table does not need to be adjusted, for example, when the first writing track is written or enlarged, the first writing track does not exceed the cell where the first writing track is located, and therefore, adjustment is not needed. For another example, when the first writing track is erased or reduced, the minimum distance between the writing track in each cell in the row and column to which the cell belongs and the cell border line is less than or equal to the set distance, that is, the blank area in the cell is within the allowable range, so that no adjustment is needed. Accordingly, in the embodiment, after the first writing track is edited, it may be determined whether the current table satisfies the set layout relationship. In one embodiment, the touch operation is used to write or amplify the first writing track in a table, and the setting of the layout relationship is: the first writing tracks are contained in corresponding cells. The touch operation is used for erasing or reducing the first writing track in a table, and the set layout relation is as follows: the minimum distance in the distances corresponding to the second cells is smaller than or equal to a set distance, the second cells are the cells contained in the row and the column to which the cell where the first writing track belongs, and the distance corresponding to the second cells is the distance between the writing track in the second cells and the border line of the second cells.
When the touch operation is determined to be writing or amplifying the first writing track in the table, determining whether the first writing track exceeds the frame 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 frame line of the cell, the following may be performed: the method comprises the steps of obtaining a coordinate range of a minimum circumscribed rectangle containing a first writing track in a canvas, recording the coordinate range as the first coordinate range in the embodiment, obtaining a frame position of a frame line of a cell where the first writing track is located in the canvas, and determining a second coordinate range of a frame line city-surrounding area 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 where the first writing track is located, otherwise, indicating that the first writing track exceeds the cell where the first writing track is located.
When the border line of a cell is adjusted, other cells in the row and the column of the cell are also adjusted. When it is determined that the touch operation is to erase or reduce the first writing track in the table, the hollow area of the cell where the first writing track is located is increased, and at this time, if the distance between the remaining writing tracks in the cell and the cell border line is too large, when the cell is reduced, 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 to which the cell belongs may occur. For example, fig. 5 is a schematic diagram of a third table provided in the embodiment of the present application. Referring to fig. 5, a blank area appears in the cell 15 after the first writing track is erased, at this time, the distance between the remaining writing track in the cell 15 and the right border of the cell 15 is too large, the distance between the writing track in the cell 16 in the column of the cell 15 and the right border 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 synchronously reduced, and then the writing track in the reduced cell 16 exceeds the cell 16. Therefore, for the touch operation of erasing or reducing the first writing track, setting the layout relationship requires defining all the cells of the row and the column of the cell in which the first writing track is located. In the embodiment, each cell in the row and each cell in the column to which the cell in which the first writing track belongs are denoted as a second cell, and it can be understood that the cell in which the first writing track belongs also belongs to the second cell. Further, the distance between the writing track in each second cell and the corresponding frame line is determined, then, whether each minimum distance is greater than the corresponding set distance is compared, if the minimum distance is greater than the set distance, the blank area of the second cell in the direction is larger, the set layout relation is not met, and the cells can be reduced. Optionally, after erasing or reducing the first writing track, the minimum circumscribed rectangle of the remaining writing track in the cell where the first writing track is located may be compared with the minimum circumscribed rectangle of the writing track in the cell before erasing or reducing, and if the minimum circumscribed rectangle of the remaining writing track is only the length changed compared with the minimum circumscribed rectangle before erasing or reducing, only the second cell in the column to which the minimum left distance and the minimum right distance are obtained, and only the minimum left distance and the minimum right distance are compared with the corresponding set distances. If the minimum bounding rectangle of the remaining writing tracks is only changed in width, only the second cell in the line to which the minimum bounding rectangle belongs may be obtained, and only the upper minimum distance and the lower minimum distance may be compared with the corresponding set distances. If the length and the width of the minimum circumscribed rectangle of the remaining writing tracks are changed, the second cells 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.
And step 240, stopping operation.
If the current form meets the set layout relationship, the subsequent operation can be stopped, and the process is ended. Thereafter, if the touch operation for editing the writing track is received again, step 210 may be executed again.
And step 250, determining a first cell of which the position of the frame needs to be adjusted in the table 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 between each row and each column in the table, when the cell where the first writing track is located is adjusted, other cells need to be adaptively adjusted. Therefore, the cell to be adjusted needs to be searched first, and the cell is marked as the first cell in the embodiment.
If the touch operation is writing or amplifying the first writing track, a first coordinate range of the first writing track and a second coordinate range of the cell where the first writing track is located are obtained when the first cell is searched, and then if the maximum value on the X axis in the first coordinate range is larger than the maximum value on the X axis in the second coordinate range, the fact that the first writing track exceeds the border line on the right side of the cell is indicated, and the cell needs to be expanded rightwards. When the cell is expanded to the right, 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 needing 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 indicates that the first writing track exceeds the frame line on the left side of the cell, and at this time, the determination method of the first cell is the same as the determination method of the first cell when the first writing track exceeds the frame line on the right side of the cell, which is not described herein again. 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, it indicates that the first writing track exceeds the border line on the lower side of the cell, and the cell needs to be expanded downward. 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, and at this time, the cell and other cells needing 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 indicates that the first writing track exceeds the border line on the upper side of the cell, and the cell needs to be expanded upward. It can be understood that, in practical applications, if the multiple maxima and minima in the first coordinate range exceed the corresponding multiple maxima and minima in the second coordinate range, the first cell may be searched based on each of the maxima and summarized to obtain the final first cell.
It should be noted that, the above-mentioned determining the first cell by the coordinate range is only an optional way, and other ways may also be adopted to determine the first cell. 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, the top left corner vertex and the bottom right corner vertex of the cell where the first writing track is located are determined, and 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 border position of the first cell in the canvas may be determined, and in the embodiment, the adjusted border 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 trajectory in the belonging cell, the target adjustment position may be obtained according to the first writing trajectory. For example, the first writing track exceeds the frame 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 fourth table diagram provided in the embodiment of the present application. Referring to fig. 6, the width of the minimum bounding rectangle may be determined as a according to the first coordinate range of the minimum bounding rectangle 17 of the first writing track. At this time, the 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 adjusted coordinates of the right side frame line can be obtained, and then, the adjusted coordinates of the upper side frame line and the lower side frame line can be obtained according to the adjusted coordinates of the right side frame line 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 may be unchanged, so as to obtain the target adjustment positions of the first cell 20 and the first cell 21. It can be understood that the cell expansion in other directions is the same as the above, and is not described herein. It should be noted that the minimum bounding rectangle and the distance indicator shown in fig. 6 are only used for explanation, and are not shown in the table in practical application.
Further, if the touch operation is to erase or reduce the first writing track, when determining whether the table satisfies the set layout relationship, the direction corresponding to the minimum distance greater than the set distance may be determined first. If the left minimum distance corresponding to the second cell is greater than the set distance, it indicates that the left side frame line in the second cell needs to move to the right, and therefore, 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, it indicates that the right side frame line in the second cell needs to be moved to the left, and therefore, 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, it indicates that the upper side frame line in the second cell needs to be moved downward, and therefore, all the second cells in the row to which the first writing track belongs and all the cells located at 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, it indicates that the lower side frame line in the second cell needs to move upward, so all the second cells in the row to which the first writing track belongs and all the cells located below 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, where a writing track retained in the first cell 22 after erasing the first writing track in the first cell 22 by the touch operation is as shown in fig. 7, at this time, the minimum circumscribed rectangle of the first cell 22, the minimum circumscribed rectangle of the first cell 23, and the minimum circumscribed rectangle of the first cell 24 are as shown in the figure, where a distance b between the minimum circumscribed rectangle of the first cell 23 and the right side frame line of the first cell 23 is a minimum distance and is greater than a set distance, and distances in other directions are not changed. At this time, the difference between the distance b and the set distance is calculated, and the difference is denoted as c in the embodiment. At this time, c is subtracted from the coordinate values of the points on the X axis in the right side frame line of the first cell 22, the first cell 23, and the first cell 24 to shift the right side frame line by a distance of c to the left. Then, the adjusted coordinates of the upper side frame line corresponding to the first cell and the adjusted coordinates of the lower side frame in the first cell 24 are obtained according to the adjusted coordinates of the right side frame line and the current coordinates of the left side frame line, and the target adjustment positions of the first cell 22, the first cell 23, and the first cell 24 are obtained. For the first cell 25, the first cell 26, and the first cell 27, the coordinate values on the X axis of each point in the frame line may be subtracted by c, and the coordinate values on the Y axis may be unchanged, so as to obtain the target adjustment positions of the first cell 25, the first cell 26, and the first cell 27. It can be understood that the cell shrinking in other directions is the same as the above-mentioned manner, and is not described herein again. It should be noted that the minimum bounding rectangle and the distance indicator shown in fig. 7 are only used for explanation, and are not shown in the table in practical application.
And step 260, searching a target picture corresponding to the first unit cell in all 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.
And 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 that the effect that the writing track is adjusted synchronously along with the cells is presented. 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 at one time in each refreshing process, so that the display adjustment process is realized. 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 times of refreshing and the target adjustment position, and accordingly, the setting of the single adjustment parameter determined according to the target adjustment position and corresponding to the first cell in the refreshing process includes steps 271 to 272:
Step 271, setting an animation variable, wherein the animation variable is used for limiting the adjustment duration.
Specifically, the animation variable under the android system can be understood as a value animation value, which is used to limit the animation duration, that is, the adjustment duration in this 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.
And 272, 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 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, if the refresh time is 5, the frame position needs to be adjusted 5 times when the first cell is adjusted to the target adjustment position, and the frame position adjusted last time is the target adjustment display. At this time, the single adjustment parameter can be determined according to the refresh times and the target adjustment position. If the number of times of refreshing is 5 and the target adjustment position of the first cell is obtained by adding the coordinate values of the points in the border line on the X axis to a, the single adjustment parameter may be 1/5 a, that is, the current coordinate values of the points in the border line of the first cell on the X axis are added to 1/5 a, so as to obtain the frame position of the first cell after the next refreshing. Therefore, the frame position of the first unit cell in each refreshing process can be obtained. Further, it is assumed that a is added to the coordinate value of each point on the X axis in the right side frame line of the first cell, and the adjusted coordinates of the upper side frame line and the lower side frame line are obtained based on the coordinate obtained by adding the right side frame line, thereby obtaining the target adjustment position of the first cell. Then, when the refresh time is 5, the single adjustment parameter may be 1/5 a, that is, the coordinate values of each point in the current right side frame line of the first cell on the X axis are added to 1/5 a, and the adjusted coordinates of the upper side frame line and the lower side frame line are obtained based on the added coordinates of the right side frame line, so as to obtain the frame position of the first cell after the next refresh.
It can be understood that, for the first cell whose unchanged size is only translation, the determination method of the single movement parameter of the corresponding target picture is the same as the determination method of the single adjustment parameter of the first cell, which is not described herein again. For the first cell with 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 set to 0.
Optionally, the adjusted display position of the target picture in the canvas may also 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 can be determined according to the target adjustment position corresponding to the first cell. For example, the target display position is represented by the center coordinate of the target picture, and if 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, the midpoint coordinate of the corresponding target picture may be obtained, and the coordinate value of the midpoint coordinate on the X axis is added to a, so as to obtain the target display position. As another example, if the target adjustment position of the first cell is obtained by changing the length of the frame line, then the current display position of the target picture can be used as the target display position, and taking fig. 7 as an example, when the table in fig. 7 is adjusted, the display position of the writing track in the first cell 22 should not be changed, and therefore, 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.
And step 280, deleting the second writing track in the first cell.
In the embodiment, the writing track currently displayed in the first cell is recorded as the second writing track. The writing track is replaced by the target picture for refreshing, so that the second writing track can be deleted when refreshing for the first time, and 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 corresponding to the first cell according to the single adjustment parameter and the display position corresponding to the target picture according to the single movement parameter during each refreshing until the frame position of the first cell is the target adjustment position.
As can be seen from the foregoing description, the frame position of the first cell at each time of refreshing can be determined according to the single adjustment parameter, and the display position of the target picture at each time of refreshing can be determined according to the single movement parameter, so that, at the time of refreshing, 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. And after the last refreshing is finished, the frame position of the first unit cell is the target adjusting 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 the refresh, performing refresh display on the first cell may also be understood as performing refresh display on the table, and at this time, for other cells in the table, it is only necessary to keep the position of the border unchanged.
Optionally, in the refresh process, the display positions of some target pictures are fixed, for example, the display position of the target picture corresponding to the first cell 23 in fig. 7 is fixed in the refresh process, so that the target picture may be displayed only in the first refresh, and the target picture is not refreshed in the subsequent refresh process.
And step 2100, deleting the picture which is displayed in the form in a refreshing mode.
And step 2110, acquiring the display position of the writing track in the refreshed picture.
Specifically, the adjusted coordinate position of each second writing trajectory may be calculated in a manner of calculating the target adjustment position, and may be used as the display position of the second writing trajectory.
And step 2120, drawing a corresponding writing track in the table according to the display position.
Optionally, if a new touch operation is received in the refresh display process, the first cell may be directly displayed at the target adjustment position in the next refresh, and the writing trajectory is correspondingly displayed, and then the above process is re-executed again according to the touch operation, so as to implement adaptive adjustment of the table.
The technical scheme includes that the touch operation used 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 relationship, the size of the table and the display position of the writing track in the table are adjusted according to the set layout relationship, and refreshing display is performed by using the corresponding picture in the display position adjusting process, so that the technical problems that in the prior art, the table is susceptible to the number of drawing objects during adaptive adjustment and is blocked can be solved. Writing tracks in the cells are recorded through the bitmaps, and in the adjusting process, the writing tracks in the cells are replaced by the bitmaps, so that the number of drawn objects can be reduced in the refreshing process, and the phenomenon of blockage can be effectively avoided. Meanwhile, the table is adjusted only when the set layout relation is not met, the table does not need to be adjusted after each operation, and the reasonability of the table is guaranteed. In addition, in the adjusting process, the frame position of the cell in the canvas and the display position of the picture in the canvas in the refreshing process at each time can be obtained by calculating the single adjusting parameter and the single moving parameter, the adjusting process of the form can be demonstrated, namely, the adjusting animation is displayed, and the use experience of a user is improved.
Fig. 8 is a schematic structural diagram of a table management apparatus 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 in the table that includes the writing track corresponds to one picture, and the picture is used to record bitmap display data of all writing tracks in the corresponding cell; an updating module 302, configured to edit the first writing track according to the touch operation and update a picture of a cell in which the first writing track is located; and an adjusting module 303, configured to adjust the size of the table and a display position of a writing track in the table according to a set layout relationship, where the display position is refreshed and displayed by a corresponding picture in an adjusting process.
The technical scheme that 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 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 adjusting process can be solved, and the technical problems that the number of drawn objects is easily influenced and the jam is generated during the self-adaptive adjustment of the table in the prior art can be solved. Writing tracks in the cells are recorded through the bitmaps, and in the adjusting process, the writing tracks in the cells are replaced by the bitmaps, so that the number of drawn objects can be reduced in the refreshing process, and the phenomenon of blockage can be effectively avoided.
On the basis of the above embodiment, the adjusting module 303 includes: the cell determining unit is used for determining a first cell of which the position of the frame needs to be adjusted and a target adjusting position of the first cell in the table according to the first writing track and the set layout relation; the picture determining unit is used for searching a target picture corresponding to the first cell in all pictures; the parameter determining unit is used for 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; the track deleting unit is used for deleting the 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 corresponding to the first cell according to the single adjustment parameter and the display position corresponding to the target picture according to the single movement parameter during each refreshing 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, configured to set an animation variable, where the animation variable is used to limit an adjustment duration; the adjustment parameter determining subunit is used for 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 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 includes: the picture deleting module is used for adjusting the size of the table and the display position of a writing track in the table according to a set layout relation, and deleting the picture which is displayed in the table in a refreshing manner after the display position is displayed in a refreshing manner by using the corresponding picture in the adjusting process; the display position acquisition module is used for acquiring the display position of the writing track in the refreshed 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 includes: the relation judging module is used for judging whether the table and the writing tracks in the table meet the set layout relation before the size of the table and the display position of the writing tracks 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 above embodiment, the touch operation is used to write or amplify the first writing track in a table, and the setting layout relationship is: the first writing tracks are contained in corresponding cells.
On the basis of the above embodiment, the touch operation is used to erase or reduce the first writing track in a table, and the setting layout relationship is: the minimum distance in the distances corresponding to the second cells is smaller than or equal to a set distance, the second cells are the cells contained in the row and the column to which the cell where the first writing track belongs, and the distance corresponding to the second cells is the distance between the writing track in the second cells and the border line of the second cells.
On the basis of the embodiment, the size of the picture is equal to the size of the minimum circumscribed rectangle of all writing tracks in the corresponding cell.
The table management device provided by the above can be used for executing the table management method provided by the corresponding embodiment, and has corresponding functions and beneficial effects.
It should be noted that, in the embodiment of the table management apparatus, the included units and modules are only divided according to the functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting 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 interactive tablet is taken as an example of a form management device for description. As shown in fig. 9, the smart interaction 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 the connection communication between these components.
The user interface 43 may include a display screen and a camera, and the optional user interface 43 may also include a standard wired interface and a wireless interface.
The network interface 42 may optionally include a standard wired interface, a wireless interface (e.g., a Wi-Fi interface), among others.
the processor 41 may be implemented in at least one hardware form selected from Digital Signal Processing (DSP), Field Programmable Gate Array (FPGA), Programmable logic Array (plla), processor 41 may be integrated with a Central Processing Unit (CPU), Graphics Processing Unit (GPU), modem, etc., wherein the CPU primarily processes operating systems, user interfaces, application programs, etc., the processor 41 may be implemented in a single wireless Processing chip, the GPU may be implemented in a wireless communication system, the wireless communication system may be implemented in a wireless modem, and the wireless communication system may be implemented in a wireless communication system.
The Memory 44 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 44 includes a non-transitory computer-readable medium. The memory 44 may be used to store instructions, programs, code sets or instruction sets. The memory 44 may include a program storage area and a data storage area, wherein the program storage 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, and the like; the storage data area may store data and 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, the memory 44, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and an operating application program of the smart interactive tablet.
In the smart interactive tablet 40 shown in fig. 9, the user interface 43 is mainly used for providing an input interface for a user to obtain data input by the user; and the processor 41 may be configured to call the operating application of the intelligent interactive tablet stored in the memory 44, and specifically perform the relevant operations in the form management method in the above embodiment.
In one embodiment, the operating system of the smart interactive tablet is an android system.
The intelligent interactive tablet 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, which when executed by a computer processor, are configured to perform operations related to the table management method provided in any embodiment of the present application, and have corresponding functions and advantages.
As will be appreciated by one skilled in the art, 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 flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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 a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The 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 computer storage media 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 that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
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 an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. 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, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (11)

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 the 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 a writing track in the table according to a set layout relation, wherein the display position is refreshed and displayed by a corresponding picture in the adjusting process.
2. The form management method according to claim 1, wherein the adjusting the size of the form and the display position of the writing track in the form according to the set layout relationship, the refreshing and displaying the display position with the corresponding picture in the adjusting process comprises:
Determining a first cell of the table, the position of which needs to be adjusted, 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 pictures;
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;
Deleting the second writing track in the first cell;
And refreshing and displaying the first unit cell and the target picture, and adjusting the frame position corresponding to the first unit cell according to the single adjustment parameter and adjusting the display position corresponding to the target picture according to the single movement parameter during each refreshing until the frame position of the first unit cell is the target adjustment position.
3. The form management method of claim 2, wherein determining the single adjustment parameter for the corresponding first cell during the refresh process according to the target adjustment location comprises:
Setting an animation variable, wherein the animation variable is used for limiting the adjustment duration;
And determining a single adjustment parameter corresponding to the first cell in the refreshing process according to the animation variable and the target adjustment position.
4. The form management method according to claim 1, wherein the adjusting of the size of the form and the display position of the writing track in the form according to the set layout relationship further comprises, after the display position is refreshed with a corresponding picture in the adjusting process:
Deleting the refreshed displayed pictures in the table;
Acquiring the display position of a writing track in the refreshed picture;
And drawing a corresponding writing track in the table according to the display position.
5. The form management method according to claim 1, wherein before the adjusting the size of the form and the display position of the writing trace in the form according to the set layout relationship, the method further comprises:
Judging whether the table and the writing track in the table 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.
6. The form management method according to claim 1 or 5, wherein the touch operation is used to write or enlarge the first writing track in the form, and the set layout relationship is: the first writing tracks are contained in corresponding cells.
7. The form management method according to claim 1 or 5, wherein the touch operation is used to erase or shrink the first writing track in the form, and the setting layout relationship is: the minimum distance in the distances corresponding to the second cells is smaller than or equal to a set distance, the second cells are the cells contained in the row and the column to which the cell where the first writing track belongs, and the distance corresponding to the second cells is the distance between the writing track in the second cells and the border line of the second cells.
8. A form management method according to claim 1, wherein the size of the picture is equal to the size of the smallest circumscribed rectangle corresponding to all of the writing traces in the cell.
9. A form management apparatus, comprising:
The device comprises a receiving module, a processing module and a processing module, wherein 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 pictures are used for recording bitmap display data of all the writing tracks in the corresponding cells;
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;
And the adjusting 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 a corresponding picture in the adjusting process.
10. 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, cause the one or more processors to implement the form management method of any of claims 1-8.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the table management method according to any one of claims 1 to 8.
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 true CN111428455A (en) 2020-07-17
CN111428455B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111625171A (en) * 2020-07-28 2020-09-04 深圳市千分一智能技术有限公司 Stroke display method, device and equipment and readable storage medium
CN115291787A (en) * 2021-04-15 2022-11-04 广州视源电子科技股份有限公司 Whiteboard control method and device

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 广州视源电子科技股份有限公司 Method, device and equipment for dynamically adjusting table and storage medium
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 广州视源电子科技股份有限公司 Method, device and equipment for dynamically adjusting table and storage medium
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

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111625171A (en) * 2020-07-28 2020-09-04 深圳市千分一智能技术有限公司 Stroke display method, device and equipment and readable storage medium
CN111625171B (en) * 2020-07-28 2020-11-03 深圳市千分一智能技术有限公司 Stroke display method, device and equipment and readable storage medium
CN115291787A (en) * 2021-04-15 2022-11-04 广州视源电子科技股份有限公司 Whiteboard control method and device
CN115291787B (en) * 2021-04-15 2024-05-14 广州视源电子科技股份有限公司 Whiteboard control method and device

Also Published As

Publication number Publication date
CN111428455B (en) 2023-06-20

Similar Documents

Publication Publication Date Title
CN110069204B (en) Graph processing method, device and equipment based on writing track and storage medium
CN110928459B (en) Writing operation method, device, equipment and storage medium of intelligent interactive tablet
CN110716680B (en) Control method and device of intelligent interactive panel
CN110941383B (en) Double-screen display method, device, equipment and storage medium
CN114217726B (en) Operation method and device of intelligent interaction panel, terminal equipment and storage medium
CN110928475B (en) Page interaction method, device, equipment and storage medium of intelligent interaction panel
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
CN108334229B (en) Method, device and equipment for adjusting writing track and readable storage medium
CN111428455B (en) Form management method, device, equipment and storage medium
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
CN114115643A (en) Component display method and device, electronic equipment and readable medium
CN111580713B (en) Display interaction system
CN107015726A (en) A kind of multidate information methods of exhibiting and device
JP4886570B2 (en) Information processing apparatus, information processing method, and program
CN109104627B (en) Focus background generation method, storage medium, device and system of android television
CN115202553A (en) Control method and device for whiteboard application and electronic equipment
CN114972558A (en) Handwriting drawing method, device, medium and interactive panel
CN115563932B (en) Table paging method, device, equipment and storage medium
CN116185269A (en) Element selection method, element selection device, storage medium and electronic equipment
CN115048028A (en) Control method and device for intelligent form of electronic whiteboard and storage medium
CN113391868A (en) Page information display method, device, equipment and readable medium
CN116301747A (en) User interface design method and device and electronic equipment
CN118152055A (en) List optimization method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant