A control method, device and storage medium for smart table of electronic whiteboard

By implementing smart table control methods on the electronic whiteboard, including automatically adjusting cells and using touch gesture operations, it solves the problem of the inability of existing technology to meet the diverse user experience and improves the table operation experience on the large screen.

CN115048028BActive Publication Date: 2024-10-18LANGYUAN TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210521820.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-13
Publication Date
2024-10-18
Estimated Expiration
2042-05-13

AI Technical Summary

Technical Problem

Existing electronic whiteboards lack effective solutions for drawing and operating tables in the Android system, and cannot meet the diverse experience requirements of users on large screens.

Method used

The smart table control method is implemented on the electronic whiteboard, including automatically adjusting cell size and position, adaptive expansion according to the writing content, adding or deleting rows and columns through specific touch gestures, and using gesture operations to construct the table.

Benefits of technology

It provides users with a diversified experience of writing and operating forms on the large screen, improving the intelligent operation experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115048028B_ABST
    Figure CN115048028B_ABST
Patent Text Reader

Abstract

The present invention discloses a control method for an intelligent table of an electronic whiteboard, including creating a table by selecting the number of rows and columns of a table on the electronic whiteboard; automatically expanding and adjusting the cells according to the position and size of the written content in the cells of the table; and adding and deleting the entire row / column of the content of the table by setting touch gestures. The present invention can provide users with the ability to write and operate tables on a large screen, thereby enhancing the user's diversified intelligent operation experience, by importing a table into an electronic whiteboard and realizing operations such as adaptive expansion of written content and addition and deletion of rows and columns by gestures.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic whiteboard applications, and in particular to a control method, a device and a storage medium for an intelligent table of an electronic whiteboard. Background Art

[0002] With the development of intelligence, various devices with touch functions have appeared in various scenes of people's lives. Smart devices are used as electronic whiteboards to perform writing operations through the display screen. However, in the current electronic whiteboards, since there is no good solution for drawing tables in the Android system, it cannot meet the user's diverse experience requirements for writing and operating tables on the large screen. Summary of the invention

[0003] The purpose of the present invention is to provide a control method, device and storage medium for an intelligent table of an electronic whiteboard, which can solve the problem in the prior art that a large screen terminal cannot meet the diversified experience requirements of users in writing and operating tables.

[0004] The objective of the present invention is achieved through the following technical solutions:

[0005] In a first aspect, the present invention provides a method for controlling a smart table of a large-screen device, comprising:

[0006] Create a table by selecting the number of rows and columns on the electronic whiteboard;

[0007] Automatically expand and adjust the cells according to the position and size of the content written in the cells of the table; add and delete entire rows / columns of the content in the table by setting touch gestures.

[0008] Furthermore, the adding and deleting of entire rows or columns of the table content by setting a touch gesture includes:

[0009] Perform a touch operation on the table using the set adding gesture, and the table automatically adds a column or a row of cells;

[0010] A touch operation is performed on a table using a set deletion gesture, and the table automatically deletes a column or a row of cells.

[0011] Further, the step of performing a touch operation on the table using the set adding gesture to add a column or a row of cells includes:

[0012] Draw a vertical line in any column of a table, and the table will automatically add a column to the right of the column with the line drawn;

[0013] Draw a horizontal line in any column cell of a table, and the table will automatically add a row below the drawn row.

[0014] Further, the use of a set deletion gesture to perform a touch operation on the table to delete a column or a row of cells includes:

[0015] Draw an N-shaped gesture in any column cell of a table, and the table will automatically delete the column and the drawn line will automatically disappear;

[0016] Draw a Z-shaped gesture in any row cell of a table, and the table will automatically delete the row, and the drawn line will automatically disappear.

[0017] Furthermore, the gesture of selecting the number of rows and columns of a table on the electronic whiteboard to create a table includes:

[0018] Select the number of rows and columns of the table on the electronic whiteboard, and the table will be centered on the screen of the electronic whiteboard;

[0019] Get the coordinates of the intersection of the top and left edges of the table, and record the intersections of the top and left edges of the table in order from bottom to right;

[0020] Construct a table by drawing straight lines.

[0021] Furthermore, the automatic expansion adjustment of the cell according to the position and size of the content written in the cell of the table includes:

[0022] According to the touch position of the written content in the cell of the table, the maximum span distance between two horizontal points and the maximum span distance between two vertical points in the written content are calculated respectively;

[0023] Then, the maximum writing rectangular area is obtained according to the maximum span distance between horizontal points and the maximum span distance between vertical points;

[0024] Automatically adjust the size and position of the cell containing the written content and the cells in its row and column, so that the cell rectangle can adaptively contain the largest writing rectangle area.

[0025] Furthermore, the touch position according to the written content in the cell of the table includes:

[0026] When the touch position of the written content occupies two or more cells, the cell whose rectangular area formed by the touch position of the written content occupies the largest area is selected as the selected cell.

[0027] Furthermore, the automatic adjustment of the size and position of the cell of the written content and the cells in the row and column where the cell is located so that the cell rectangle adaptively includes the maximum writing rectangular area includes:

[0028] Compare the edges of the rectangle of the selected cell with the largest rectangle of the written content, and calculate the enlargement distance of the selected cell;

[0029] After obtaining the enlarged distance of the selected cell, the upper, lower, left, and right edges of the selected cell are moved by relative distances so that the rectangle of the selected cell adaptively includes the maximum writing rectangular area, and the row and column where the selected cell is located are also translated by the same distance at the same time.

[0030] In a second aspect, the present invention further provides a control device for a smart table of an electronic whiteboard, comprising:

[0031] A table creation module, used to create a table on the electronic whiteboard screen;

[0032] A table adjustment module is used to automatically adjust the expansion of the cells according to the position and size of the content written in the cells of the table;

[0033] The gesture add / delete module is used to add and delete entire rows / columns of table contents by setting touch gestures.

[0034] In a third aspect, the present invention further provides a storage medium comprising computer executable instructions, wherein the computer executable instructions are used to execute the aforementioned method for controlling the smart form of the electronic whiteboard when executed by a computer processor.

[0035] Beneficial effects of the present invention:

[0036] The present invention allows a user to write and operate a table on a large screen by importing a table into an electronic whiteboard and realizing operations such as adaptive expansion of written content and addition and deletion of rows and columns by gestures, thereby enhancing the user's diversified intelligent operation experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0038] Figure 1 A flow chart of a control method for an intelligent table of an electronic whiteboard;

[0039] Figure 2 A schematic diagram for adaptive adjustment of written content in a smart form;

[0040] Figure 3 Diagram for adding a whole column of cells using gestures in a smart table;

[0041] Figure 4 Diagram for adding a whole row of cells using gestures in a smart table;

[0042] Figure 5 A schematic diagram of deleting an entire column of cells using gestures in a smart table;

[0043] Figure 6 A diagram showing how to use gestures to delete an entire row of cells in a smart table. DETAILED DESCRIPTION

[0044] The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.

[0045] The following describes the implementation of the present disclosure through specific examples, and those skilled in the art can easily understand other advantages and effects of the present disclosure from the content disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all the embodiments. The present disclosure can also be implemented or applied through other different specific implementations, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present disclosure. It should be noted that the present invention is based on programming implementation, and any programming language can be used as an implementation tool of the present invention as long as it is object-oriented. Of course, if other development languages ​​or tools are adopted, the content of the present invention can also be implemented, but the development languages ​​and tools are different, and the ideas and methods are still the same. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative work belong to the scope of protection of the present disclosure.

[0046] See also Figure 1 The present invention provides a control method for an intelligent table of an electronic whiteboard, comprising:

[0047] S101. Create a table by selecting the number of rows and columns of the table on the electronic whiteboard.

[0048] Since changes to any cell in the table will affect the overall size and position, the Point set of the intersection of the top line and the left line can be used to easily record the overall size and position data status of the table.

[0049] (1) First, select the number of rows and columns of the table "*rows x*columns". When the table size is fixed and centered on the screen, the coordinates of the intersection of the top and left lines can be obtained. Declare two list sets of Point points, the left line set leftVerticalPoints, and the top line set topHorizontalPoints. Record the intersection points of the top and left lines of the table in order from the bottom right. Use canvas.drawLine to construct a table. The specific code is as follows:

[0050] / / Draw a vertical line to the right from the point on the left line, the Y coordinate remains unchanged, and the X coordinate is the X coordinate of the last point in the upper line set:

[0051] for(int i=0; i <leftVerticalPoints.size();i++){

[0052] Point point=leftVerticalPoints.get(i);

[0053] canvas.drawLine(point.getX(),point.getY(),topHorizontalPoints.get(topHorizontalPoints.size()-1).getX(),point.getY(),mPaint);

[0054] }

[0055] / / Draw a vertical line downward from the point on the upper line, the X coordinate remains unchanged, and the Y coordinate is the Y coordinate of the last point of the left line set:

[0056] for(int i=0; i <topHorizontalPoints.size();i++){

[0057] Point point=topHorizontalPoints.get(i);

[0058] canvas.drawLine(point.getX(),point.getY(),point.getX(),leftVerticalPoints.get(leftVerticalPoints.size()-1).getY(),mPaint);

[0059] }

[0060] It should be noted that this technology has been implemented in the Android system for importing tables, and its specific import method is not described in detail here. The method for using the table of the electronic whiteboard in this application can be specifically called out by clicking the menu bar in the electronic whiteboard.

[0061] S102. Automatically adjust the expansion of the cell according to the position and size of the content written in the cell of the table. Figure 2 .

[0062] (1) Calculate the column to which the content in the cell of the table belongs

[0063] First, based on the writing position, that is, the coordinate position of the touch event ACTION_DOWN, the X coordinate is compared with the set of intersection points of the upper edge line in the X direction to calculate between which two horizontal points (that is, the maximum span distance in the corresponding column). The specific code is as follows:

[0064] for(int i=0; i <topHorizontalPoints.size()-1;i++){

[0065] Point currPoint=topHorizontalPoints.get(i);

[0066] Point nextPoint=topHorizontalPoints.get(i+1);

[0067] if(currPoint.getX()<=x&&x <nextPoint.getX()){

[0068] column=i;

[0069] break;

[0070] }

[0071] }

[0072] (2) Calculate the row to which the content in the cell of the table belongs

[0073] By comparing the Y coordinate with the set of intersection points of the left line in the Y direction, we can calculate between which two vertical points (that is, the maximum span distance in the row). The specific code is as follows:

[0074] for(int i=0; i <leftVerticalPoints.size()-1;i++){

[0075] Point currPoint=leftVerticalPoints.get(i);

[0076] Point nextPoint=leftVerticalPoints.get(i+1);

[0077] if(currPoint.getY()<=y&&y <nextPoint.getY()){

[0078] row = i;

[0079] break;

[0080] }

[0081] }

[0082] (3) Calculate the maximum rectangular area of ​​the content written in the table cell

[0083] After using the drawPath method to draw content on the canvas, the path's built-in method can be used to calculate the maximum rectangle of this path, currMaxRectF. The specific code is as follows:

[0084] RectF currMaxRectF=new RectF();

[0085] path.computeBounds(currMaxRectF,true);

[0086] Specifically, when the touch position of the written content occupies two or more cells, the cell whose rectangular area formed by the touch position of the written content occupies the largest area is selected as the selected cell (ie, the cell that needs to be actively expanded and adjusted).

[0087] (4) Adjust the cell size and position so that the cell rectangle can adapt to the writing content rectangle

[0088] The corresponding cell (the selected cell mentioned above) can be obtained according to the row and column to which it belongs. The cell rectangle is compared with the maximum rectangle currMaxRectF of the written content to calculate the cell expansion distance. The specific code is as follows:

[0089] / / Adjust the coordinates in each direction

[0090] float adjustTopY=0;

[0091] float adjustBottomY=0;

[0092] float adjustLeftX = 0;

[0093] float adjustRightX = 0;

[0094] / / Expand beyond the edge

[0095] if(currMaxRectF.top <currTopY){

[0096] adjustTopY=currMaxRectF.top-currTopY;

[0097] }

[0098] if(currMaxRectF.bottom>currBottomY){

[0099] adjustBottomY=currMaxRectF.bottom-currBottomY;

[0100] }

[0101] if(currMaxRectF.left <currLeftX){

[0102] adjustLeftX=currMaxRectF.left-currLeftX;

[0103] }

[0104] if(currMaxRectF.right>currRightX){

[0105] adjustRightX=currMaxRectF.right-currRightX;

[0106] }

[0107] After calculating the expansion distance, the upper, lower, left, and right edges of the cell are moved by a relative distance. At the same time, other rows and columns also need to be translated by the same distance to ensure the integrity and beauty of the table and make it neatly correspond.

[0108] The specific code is as follows:

[0109] Move the point on the left line, the X coordinate moves to the left, and the Y coordinate moves upward and downward relative to the upper and lower lines of the corresponding row

[0110]

[0111] Move the point on the upper edge, the Y coordinate moves upward, and the X coordinate moves left and right relative to the left and right edges of the corresponding column respectively.

[0112]

[0113]

[0114] It should be noted that a writing menu is provided in the electronic whiteboard for writing a table, and the writing menu provides options for writing stroke thickness and writing color based on the writing experience.

[0115] S103: adding or deleting entire rows or columns of the table content by setting touch gestures.

[0116] See also Figure 3-Figure 6First, it is stipulated that if you draw a "|" gesture in a column of a table, a column will be added to the right of the column, and if you draw an "N" gesture, the column will be deleted; if you draw a "-" gesture in a row of a table, a row will be added below the row, and if you draw a "Z" gesture, the row will be deleted. Under this regulation, gestures are all composed of one stroke, which is easy to judge.

[0117] (1) Calculate the ranks of touch gesture operations

[0118] Get the maximum rectangular area gestureRect of the touch gesture event by comparing the coordinate point size of each ACTION_MOVE touch event. The specific code is as follows:

[0119]

[0120]

[0121] Compare the gesture touch rectangle area with the rectangle of each row in the table, and calculate the judgment condition and code of the row to which the gesture operation belongs as follows:

[0122]

[0123]

[0124] Compare the gesture touch rectangle area with the rectangle of each column in the table, and calculate the judgment condition and code of the column to which the gesture operation belongs as follows:

[0125]

[0126]

[0127]

[0128] (2) Calculate and determine the gesture type

[0129] By comparing the coordinates of the current point with the XY coordinates of the previous ACTION_MOVE event (lastGestureX, lastGestureY) in the ACTION_MOVE event, the "trend" direction of each gesture's horizontal and vertical movement (isRightDirection is right, isBottomDirection is downward), recording whether the gesture has a direction change, that is, a "folding point" is generated, and recording the number of valid folding points outside the table. According to the number of folding points and the horizontal and vertical trend direction, determine whether the gesture is "|", "N", "-", "Z", where "|" and "-" have no folding points, "N" has two vertical folding points, and "Z" has two horizontal folding points. The specific code logic is as follows:

[0130]

[0131]

[0132]

[0133] Add and delete specified rows and columns in the table according to the gesture type, that is, operate the intersection set of the top line and the left line, as follows:

[0134] Add a row downwards. Position is the subscript of the point on the left line set of the row operated by the gesture. DefCellHeight is the default unit row height.

[0135]

[0136] Add a column to the right. Position is the subscript of the point on the upper edge of the column where the gesture is operated. DefCellWidth is the default unit column width.

[0137]

[0138] It should be noted that in gesture operations, gesture symbols such as "|", "N", "-", "Z" are only used as a specific gesture of the present application, and are not the only limiting gestures. The general symbol gestures set under this principle all belong to the scope of the present invention.

[0139] The present invention also provides a control device for an intelligent table of an electronic whiteboard, comprising:

[0140] A table creation module, used to create a table on the electronic whiteboard screen;

[0141] The technology for creating this part of the table is a well-known technology currently available. The table is imported into an electronic whiteboard (a type of large-screen device). The specific technical solution is not repeated here. At the same time, the table created in the electronic whiteboard is preferably centered. Of course, the position of the table is not fixed at the center, and the position of the table can be selected according to actual use.

[0142] A table adjustment module is used to automatically adjust the expansion of the cells according to the position and size of the content written in the cells of the table;

[0143] In a specific implementation, when the touch position of the written content occupies two or more cells, the cell with the largest rectangular area formed by the touch position of the written content is selected as the selected cell, which has the highest priority (ie, the cell that needs to be actively expanded and adjusted).

[0144] The gesture add / delete module is used to add and delete entire rows / columns of table contents by setting touch gestures.

[0145] The present invention also provides a storage medium containing computer executable instructions, wherein the computer executable instructions are used to execute the aforementioned control method of the smart table of the electronic whiteboard when executed by a computer processor, and the control method of the smart table of the electronic whiteboard includes:

[0146] Create a table by selecting the number of rows and columns on the electronic whiteboard;

[0147] Automatically expand and adjust the cells according to the position and size of the content written in the cells of the table; add and delete entire rows / columns of the content in the table by setting touch gestures.

[0148] It should be noted that in gesture operations, gesture symbols such as "|", "N", "-", and "Z" addition / deletion are only used as a specific gesture of the present application, and are not the only limiting gestures. The general symbol gestures set under this principle all belong to the scope of the present invention.

[0149] The above is only for explaining the implementation mode of the present invention and is not intended to limit the present invention. For those skilled in the art, any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention without creative work should be included in the protection scope of the present invention.

Claims

1. A method for controlling a smart table of a large-screen device, characterized in that: include: Create a table by selecting the number of rows and columns on the electronic whiteboard; Automatically expand and adjust the cells according to the position and size of the content written in the cells of the table; Add and delete entire rows or columns of table content by setting touch gestures, including: Calculate the ranks of touch gesture operations; Calculate and determine the gesture type, specifically, calculate the "trend" direction of each horizontal and vertical movement of the gesture, record whether the gesture has a change of direction, that is, a "folding point", record the number of valid folding points in the table, and determine the gesture based on the number of folding points and the horizontal and vertical trend direction; Performing add / delete operations on designated rows and columns of a table according to gesture types, including: performing a touch operation on the table according to a set add gesture, the table automatically adds a column / row of cells; and performing a touch operation on the table according to a set delete gesture, the table automatically deletes a column / row of cells.

2. The control method of the smart table of the electronic whiteboard according to claim 1, characterized in that: The step of performing a touch operation on the table according to the set adding gesture to add a column or a row of cells includes: Draw a vertical line in any column of a table, and the table will automatically add a column to the right of the column with the line drawn; Draw a horizontal line in any column cell of a table, and the table will automatically add a row below the drawn row.

3. The control method of the smart table of the electronic whiteboard according to claim 1, characterized in that: The step of performing a touch operation on the table according to the set deletion gesture to delete a column or a row of cells includes: Draw an N-shaped gesture in any column cell of a table, and the table will automatically delete the column and the drawn line will automatically disappear; Draw a Z-shaped gesture in any row cell of a table, and the table will automatically delete the row, and the drawn line will automatically disappear.

4. The control method of the smart table of the electronic whiteboard according to claim 1, characterized in that: Gestures are used to select the number of rows and columns of a table on the electronic whiteboard. Creating a table includes: Select the number of rows and columns of the table on the electronic whiteboard, and the table will be centered on the screen of the electronic whiteboard; Get the coordinates of the intersection of the top and left edges of the table, and record the intersections of the top and left edges of the table in order from bottom to right; Construct a table by drawing straight lines.

5. The control method of the smart table of the electronic whiteboard according to claim 1, characterized in that: The automatic expansion adjustment of the cells according to the position and size of the written content in the cells of the table includes: According to the touch position of the written content in the cell of the table, the maximum span distance between two horizontal points and the maximum span distance between two vertical points in the written content are calculated respectively; Then, the maximum writing rectangular area is obtained according to the maximum span distance between horizontal points and the maximum span distance between vertical points; Automatically adjust the size and position of the cell containing the written content and the cells in its row and column so that the cell rectangle can adaptively contain the largest writing rectangle area.

6. The control method of the smart table of the electronic whiteboard according to claim 5, characterized in that: The touch position according to the written content in the cell of the table includes: When the touch position of the written content occupies two or more cells, the cell whose rectangular area formed by the touch position of the written content occupies the largest area is selected as the selected cell.

7. The control method of the smart table of the electronic whiteboard according to claim 6, characterized in that: The automatic adjustment of the size and position of the cell of the written content and the cells in the row and column where the cell is located so that the cell rectangle adaptively includes the maximum writing rectangular area includes: Compare the edges of the rectangle of the selected cell with the largest rectangle of the written content, and calculate the enlargement distance of the selected cell; After obtaining the enlarged distance of the selected cell, the upper, lower, left, and right edges of the selected cell are moved by relative distances so that the rectangle of the selected cell adaptively includes the maximum writing rectangular area, and the row and column where the selected cell is located are also translated by the same distance at the same time.

8. A control device for an intelligent table of an electronic whiteboard, characterized in that: include: A table creation module, used to create a table on the electronic whiteboard screen; A table adjustment module is used to automatically adjust the expansion of the cells according to the position and size of the content written in the cells of the table; The gesture add / delete module is used to add and delete entire rows / columns of table contents by setting touch gestures.

9. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions are used to execute the control method of the smart table of the electronic whiteboard as described in any one of claims 1-7 when executed by a computer processor.

Citation Information

Patent Citations

  • Method and device for inserting or deleting cells or rows and lines in spreadsheet

    CN102637118A

  • Method, apparatus, device and storage medium for dynamically adjusting table

    CN109284494A

  • Table dynamic adjustment method and terminal equipment

    CN112394859A