Package uk.ac.qmul.eecs.ccmi.examples.framework
See: Description
-
Class Summary Class Description SmileDiagramApp A Smile Diagram Application.SmileEdge An example of how CCmI Diagram Editor edges can be extended, in order to create your own graphic palette.SmileNode An example of how a CCmI Diagram Editor nodes can be extended, in order to create your own graphic palette.SmilePersistanceDelegate Together with theNode
andEdge
prototypes, a persistence delegate must also be provided to make your own diagram within the CCmI Diagram Editor framework. -
Enum Summary Enum Description SmileNode.MOOD Available moods for the smile nodes.
Package uk.ac.qmul.eecs.ccmi.examples.framework Description
It is possible to use the CCmI Diagram Editor as a framework for creating your own diagram types. The diagrams can subsequently be used inside the editor itself, benefiting from the cross modality offered by the tool. Indeed, they will still be represented in graphic, audio and haptic modalities within the editor.
A diagram in the editor is just a set of nodes and edges linking the nodes together.
You can define your own nodes and edges and program how they look like in the editor graph and how they sound like in
the editor tree.
All you have to do is to inherit from
Node
and
Edge
and implement their abstract methods in order to make your own custom drawing and sound. Furthermore a
persistence delegate class must be implemented to define how the prototypes are persisted in XML format
when the user saves a diagram in a file.
This package contains classes for a small example of how the CCmI Editor can be used for this purpose.
Note that the code of the original editor needn't be modified. The editor jar (version > 0.2.4) can be included among
the libraries and used out of the box.
In order to make your own executable jar, you need to inherit from
DiagramEditorApp
and make your own main
method. This is also shown in this package
(see the SmileDiagramApp
) class.