Property Change Events

    To handle the property change events of MSketchPane, the java.beans.PropertyChangeListener interface must be implemented.

    Property name Type Meaning
    "mol" Molecule The molecule is replaced or altered.
    "file" java.io.File Molecule file changed from File/Open or File/Save As.
    "implicitH" String The Implicit Hydrogen display style has been changed.
    "explicitH" Boolean Explicit Hydrogen display style changed.true: shows explicit H atomsfalse: hides explicit H atoms
    "colorScheme" String The Color scheme has been changed.
    "autoscale" Boolean The Autoscale has been changed.
    "rendering" String The Rendering style has been changed.
    "wireThickness" Double The Wire thickness has been changed.
    "stickThickness" Double The Stick diameter has been changed.
    "ballRadius" Double The Ball radius has been changed.
    "grinvVisible" Boolean The Graph invariants are displayed/not displayed.
    "downWedge" String The Down wedge bond orientation has been changed.
    "objectAtPointer" Object The MolAtom or MolBond object at the mouse pointer.
    "invisibleSets" Long The Visibility of atom sets has been changed.
    atomNumbersVisible N/A Deprecated
    "atomNumberingType" Integer The Visibility of atom numbers has been changed.
    "valencePropertyVisible" Boolean The Visibility of valence properties has been changed.
    "ligandErrorVisible" Boolean The Visibility of ligand error has been changed.
    "atomMappingVisible" Boolean The Visibility of atom mapping has been changed.
    "popupMenusEnabled" Boolean The popup menus are enabled/disabled.
    "valenceErrorVisible" Boolean The Visibility of valence errors has been changed.
    "reactionErrorVisible" Boolean The Visibility of reaction errors has been changed.
        sketchPane.addPropertyChangeListener(this);
        ...
    
    public void propertyChange(PropertyChangeEvent ev) {
        String name = ev.getPropertyName();
        if("file".equals(name)) {
     File f = (File)ev.getNewValue();
     if(f != null) {
         setTitle("MarvinSketch: "+f.getName());
     }
        }
    }