-
Notifications
You must be signed in to change notification settings - Fork 35
Jcp gui configuration
rwst edited this page May 22, 2012
·
3 revisions
This section explains how the GUI (menus/toolbars) is configured in JCP.
- There can be different GUIs for JCP. Each of them is defined by a JCPGUI_x.properties file in the org.openscience.jchempaint.resources package.
- If a JChemPaintPanel is build, one of the existing x is given as a parameter (for example, JChemPaintEditorApplet passes "applet", the application "application").
- The properties file defines a menubar and a number of popup menus. Which popup menus are used is defined in JChemPaintPanel.setupPopupMenus(). The existence of the menubar entry is required by the JChemPaintMenuBar class. The configuration of the menus is completly flexible and is explained in the header of JCPGUI_application.properties
- The four toolbar entries are required by AbstractJChemPaintPanel.customizeView(). Again, their configuration is fully flexible.