org.protege.editor.owl.ui.frame.cls.OWLSubClassAxiomFrameSectionRow Maven / Gradle / Ivy
The newest version!
package org.protege.editor.owl.ui.frame.cls;
import org.protege.editor.owl.OWLEditorKit;
import org.protege.editor.owl.ui.editor.OWLObjectEditor;
import org.protege.editor.owl.ui.frame.AbstractOWLFrameSectionRow;
import org.protege.editor.owl.ui.frame.OWLFrameSection;
import org.semanticweb.owlapi.model.AxiomType;
import org.semanticweb.owlapi.model.OWLClassExpression;
import org.semanticweb.owlapi.model.OWLOntology;
import org.semanticweb.owlapi.model.OWLSubClassOfAxiom;
import java.util.Arrays;
import java.util.List;
/**
* Author: Matthew Horridge
* The University Of Manchester
* Bio-Health Informatics Group
* Date: 19-Jan-2007
*/
public class OWLSubClassAxiomFrameSectionRow extends AbstractOWLFrameSectionRow {
public OWLSubClassAxiomFrameSectionRow(OWLEditorKit owlEditorKit,
OWLFrameSection section, OWLOntology ontology,
OWLClassExpression rootObject, OWLSubClassOfAxiom axiom) {
super(owlEditorKit, section, ontology, rootObject, axiom);
}
protected OWLObjectEditor getObjectEditor() {
return getOWLEditorKit().getWorkspace().getOWLComponentFactory().getOWLClassDescriptionEditor(getAxiom().getSuperClass(), AxiomType.SUBCLASS_OF);
}
protected OWLSubClassOfAxiom createAxiom(OWLClassExpression editedObject) {
return getOWLDataFactory().getOWLSubClassOfAxiom(getRootObject(), editedObject);
}
/**
* Gets a list of objects contained in this row.
*/
public List getManipulatableObjects() {
return Arrays.asList(getAxiom().getSuperClass());
}
}