Our application (RCP-based Eclipse using the JFace / SWT interface) should support editing math matrices. Matrices are always square and can be any size from 2x2 to 11x11. In addition, buttons will be placed on the interface to allow the user to grow or shrink the matrix.
We use JFace TableViewers and TreeViewers in our code to edit non-matrix data. If at all possible, I would like to use the same general structure for editing matrices.
I save the data in a MySQL database using one row per matrix element, as such:
+----------------------+------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+----------------------+------------+------+-----+---------+-------+
| id | bigint(20) | NO | PRI | NULL | |
| rowNum | bigint(20) | NO | | NULL | |
| columnNum | bigint(20) | NO | | NULL | |
| value | double | NO | | NULL | |
| matrix_id | bigint(20) | NO | MUL | NULL | |
+----------------------+------------+------+-----+---------+-------+
, , , "enter" JFace, -, . , .
, , - , JFace. (, 3x3, - viewer.setInput(Object) - . , , .
- , , ?