The Button Panel
In the following pages you can find an explanation of the function of the buttons in the button panel.
 |
Drawing buttons |
 |
Move buttons |
 |
Other buttons |
But before starting on that, let's look at the code which offers the source of
this functionality.
JChemPaint's source code provides only the GUI part, but all the
chemoinformational algorithms which make JChemPaint an editor are provided by the
CDK. The two main classes of interest are:
- the renderer.Renderer
- controller.Controller
The first deals with graphical rendering of
the chemical information and the second deals with user input from mouse and
button events, and extends the renderer with editing features.
But the Controller does not handle all editing; it only does the editing
functionality in some editing mode, like the drawing and bond mode. A few
other buttons - and most menu items - do not use the functionality in this class,
but provide algorithms from other CDK classes. Where possible, the information
about the buttons will also link to the CDK classes that provide the algorithms
used.