All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.protege.editor.owl.ui.renderer.InlineThumbnailRenderingAction Maven / Gradle / Ivy

Go to download

OWL ontology editing infrastructure used by the Protege desktop application.

There is a newer version: 5.6.4-beta3
Show newest version
package org.protege.editor.owl.ui.renderer;

import org.protege.editor.owl.ui.action.ProtegeOWLRadioButtonAction;

import java.awt.event.ActionEvent;

/**
 * Matthew Horridge
 * Stanford Center for Biomedical Informatics Research
 * 04/02/16
 */
public class InlineThumbnailRenderingAction extends ProtegeOWLRadioButtonAction {


    @Override
    protected void update() {
        setSelected(OWLRendererPreferences.getInstance().isDisplayThumbnailsInline());
    }

    @Override
    public void actionPerformed(ActionEvent e) {
        OWLRendererPreferences.getInstance().setDisplayThumbnailsInline(isSelected());
    }

    @Override
    public void initialise() throws Exception {
        update();
    }

    @Override
    public void dispose() throws Exception {

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy