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

org.protege.editor.owl.ui.frame.OWLAnnotationsFrameSectionRow Maven / Gradle / Ivy

package org.protege.editor.owl.ui.frame;

import org.protege.editor.owl.OWLEditorKit;
import org.protege.editor.owl.ui.editor.OWLAnnotationEditor;
import org.protege.editor.owl.ui.editor.OWLObjectEditor;
import org.semanticweb.owlapi.model.OWLAnnotation;
import org.semanticweb.owlapi.model.OWLAnnotationAssertionAxiom;
import org.semanticweb.owlapi.model.OWLAnnotationSubject;
import org.semanticweb.owlapi.model.OWLOntology;

import java.util.Arrays;
import java.util.List;


/**
 * Author: Matthew Horridge
* The University Of Manchester
* Bio-Health Informatics Group
* Date: 26-Jan-2007

*/ public class OWLAnnotationsFrameSectionRow extends AbstractOWLFrameSectionRow { public OWLAnnotationsFrameSectionRow(OWLEditorKit owlEditorKit, OWLFrameSection section, OWLOntology ontology, OWLAnnotationSubject rootObject, OWLAnnotationAssertionAxiom axiom) { super(owlEditorKit, section, ontology, rootObject, axiom); } protected List getObjects() { return Arrays.asList(getAxiom().getAnnotation()); } protected OWLObjectEditor getObjectEditor() { OWLAnnotationEditor editor = new OWLAnnotationEditor(getOWLEditorKit()); editor.setEditedObject(getAxiom().getAnnotation()); return editor; } protected OWLAnnotationAssertionAxiom createAxiom(OWLAnnotation editedObject) { return getOWLDataFactory().getOWLAnnotationAssertionAxiom(getRootObject(), editedObject); } /** * Gets a list of objects contained in this row. These objects * could be placed on the clip board during a copy operation, * or navigated to etc. */ public List getManipulatableObjects() { return getObjects(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy