This documentation illustrates the functionality of the graphical user interface, which has been implemented to illustrate an algorithm from the Alter-Java framework. The GUI is adaptable for every kind of algorithm, which is implemented in the Alter-Java framework. The following guide illustrates, how the graphical user interface can be used.
The graphical user interface consists of following components:
The menu of the GUI offers the possibility to edit the view of the computation tree. It offers the following menu-points:
The Implementation of the worktape in the graphical user interface needs a few components, which has to be down by the developer of an Alter-Java program. The GUI offers the class DefaultFormat, with the necessary methods, which can be extended.
The class DefaultFormat
in the Package at.ac.tuwien.dbai.alternation.gui
contains the following
methods:
If an own class is defined and extends the DefaultFormat
-class,
this class should be instantiated. The Object of this class offers the
method setFormat
, where the Dimension of the nodes and the
space between the nodes can be defined. Without using this method the
class defines default parameters for the application.
To create a mainframe of the GUI, it is necessary to instantiate
the class Mainframe
of the package at.ac.tuwien.dbai.alternation.gui
.
The constructor of the class needs the computation-tree of the
alternation-example, the own implemented class which extends DefaultFormat
and an integer-value, which defines the maximum tree deep, to which the gets
drawn. (Please mention that the computation tree may increase expontentially with the tree deep and thus for high deep the GUI may exeed the available resources of the java proccess)
For detailed information about the code-implementation have a look at the API of the application.