The Button Panel
In the following pages you can find an explanantion of the function of the buttons in the button panel.
 |
Drawing buttons |
 |
Move buttons |
 |
Other buttons |
But before starting that, let's note the source code which offers this functionality.
JChemPaint's source code provides only the GUI part, but all the
chemoinformational algorithms which make JChemPaint an editor, are provided by
CDK. The two main classes of interest are:
- the renderer.Renderer2D
- controller.Controller2D
The first deals with graphical rendering of
the chemical information and the second deals with user input using mouse and
button events, and does extend the renderer with editing features.
But the Controller2D does not 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.