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

org.protege.editor.owl.ui.view.datatype.OWLDataTypeDescriptionViewComponent Maven / Gradle / Ivy

Go to download

OWL ontology editing infrastructure used by the Protege desktop application.

The newest version!
package org.protege.editor.owl.ui.view.datatype;

import org.protege.editor.owl.ui.frame.datatype.OWLDatatypeDescriptionFrame;
import org.protege.editor.owl.ui.framelist.OWLFrameList;
import org.semanticweb.owlapi.model.OWLDatatype;

import javax.swing.*;
import java.awt.*;
/*
* Copyright (C) 2007, University of Manchester
*
*
*/

/**
 * Author: drummond
* http://www.cs.man.ac.uk/~drummond/

* The University Of Manchester
* Bio Health Informatics Group
* Date: Jun 5, 2009

*/ public class OWLDataTypeDescriptionViewComponent extends AbstractOWLDataTypeViewComponent { private OWLFrameList list; public void initialiseView() throws Exception { list = new OWLFrameList<>(getOWLEditorKit(), new OWLDatatypeDescriptionFrame(getOWLEditorKit())); setLayout(new BorderLayout()); add(new JScrollPane(list)); } protected OWLDatatype updateView(OWLDatatype datatype) { list.setRootObject(datatype); return datatype; } public void disposeView() { list.dispose(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy