1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/isac-java/src/java/isac/gui/mawen/editor/README Tue Feb 13 09:42:07 2018 +0100
1.3 @@ -0,0 +1,26 @@
1.4 +editor/README
1.5 +relates 3 kinds of functionality to the code, where
1.6 +formulas represented as editor.syntax.Ast.
1.7 +
1.8 +"§"and "Fig" refer to http://www.ist.tugraz.at/projects/isac/publ/mmahringer-master.pdf
1.9 +
1.10 +1. render formulas
1.11 +1.1. AstComponent stores and updates Ast
1.12 +1.2. CalcUtil transforms Ast into Box recursively bottom up
1.13 +1.3. BoxUtil paints a Box (in the sense of LaTeX)
1.14 + in the course of recursion (including callback, see 3.2.)
1.15 +
1.16 +2. edit formulas
1.17 + §4.3.3, Editing via keyboard events p.56..p.60
1.18 +2.1. EventUtil interprets keys according to a STD in Fig.4.12
1.19 +2.2. EditingUtil updates Ast via 1.1.
1.20 +
1.21 +
1.22 +3. show termstructure by mouse movements:
1.23 + the smallest subterm is shown under the mouse
1.24 + §4.3.2, Display frames p.55..p.56
1.25 +3.1. EventUtil handles mouse movements;
1.26 + EventUtil.doInBox: if a Box is under the mouse, then frame is stored in Box
1.27 +3.2. BoxUtil paints via 1.3.
1.28 + using the callback in each Box via Box.drawFrame box
1.29 +