Protege 4.0.2

org.protege.editor.owl.model.selection
Interface OWLSelectionModel

All Known Implementing Classes:
OWLSelectionModelImpl

public interface OWLSelectionModel

Author: Matthew Horridge
The University Of Manchester
Medical Informatics Group
Date: Mar 27, 2006

matthew.horridge@cs.man.ac.uk
www.cs.man.ac.uk/~horridgm

An OWLSelectionModel keeps track of a list of OWLObjects. If the list of objects changes, any listeners are notified. Note that lists are compared using equals.


Method Summary
 void addListener(OWLSelectionModelListener listener)
          Adds an OWLSelectionModelListener to the list of listeners.
 void clearLastSelectedEntity(org.semanticweb.owl.model.OWLEntity entity)
          If any of the last selected entities are equal to the specified entity then the selection is cleared.
 org.semanticweb.owl.model.OWLAxiom getLastSelectedAxiom()
          Deprecated. use getLastSelectedAxiomInstance(OWLAxiomInstance)
 OWLAxiomInstance getLastSelectedAxiomInstance()
          Instances of an axiom wrt the containing ontology
 org.semanticweb.owl.model.OWLClass getLastSelectedClass()
          Gets the most recently selected class.
 org.semanticweb.owl.model.OWLDataProperty getLastSelectedDataProperty()
          Gets the most recently selected property
 org.semanticweb.owl.model.OWLIndividual getLastSelectedIndividual()
          Gets the most recently selected individual.
 org.semanticweb.owl.model.OWLObjectProperty getLastSelectedObjectProperty()
          Gets the most recently selected property
 org.semanticweb.owl.model.OWLEntity getSelectedEntity()
          Gets the last selected entity.
 org.semanticweb.owl.model.OWLObject getSelectedObject()
           
 void removeListener(OWLSelectionModelListener listener)
          Removes a previously added OWLSelectionModelListener.
 void setSelectedAxiom(org.semanticweb.owl.model.OWLAxiom axiom)
          Deprecated. use setSelectedAxiom(OWLAxiomInstance)
 void setSelectedAxiom(OWLAxiomInstance axiomInstance)
          Instances of an axiom wrt the containing ontology
 void setSelectedEntity(org.semanticweb.owl.model.OWLEntity entity)
          A convenience method that will delegate to the appropriate selection method depending on the type of entity.
 void setSelectedObject(org.semanticweb.owl.model.OWLObject object)
           
 

Method Detail

getLastSelectedClass

org.semanticweb.owl.model.OWLClass getLastSelectedClass()
Gets the most recently selected class.

Returns:
The selected OWLClass, or null if a class is not selected.

getLastSelectedObjectProperty

org.semanticweb.owl.model.OWLObjectProperty getLastSelectedObjectProperty()
Gets the most recently selected property

Returns:
The selected OWLProperty, or null if there is no selected property.

getLastSelectedDataProperty

org.semanticweb.owl.model.OWLDataProperty getLastSelectedDataProperty()
Gets the most recently selected property

Returns:
The selected OWLProperty, or null if there is no selected property.

getLastSelectedIndividual

org.semanticweb.owl.model.OWLIndividual getLastSelectedIndividual()
Gets the most recently selected individual.

Returns:
The selected individual, or null if there is no selected individual.

getSelectedEntity

org.semanticweb.owl.model.OWLEntity getSelectedEntity()
Gets the last selected entity.

Returns:
The OWLEntity that was last selected.

clearLastSelectedEntity

void clearLastSelectedEntity(org.semanticweb.owl.model.OWLEntity entity)
If any of the last selected entities are equal to the specified entity then the selection is cleared.


setSelectedEntity

void setSelectedEntity(org.semanticweb.owl.model.OWLEntity entity)
A convenience method that will delegate to the appropriate selection method depending on the type of entity.

Parameters:
entity - The entity to be selected. Must not be null.

setSelectedAxiom

void setSelectedAxiom(org.semanticweb.owl.model.OWLAxiom axiom)
Deprecated. use setSelectedAxiom(OWLAxiomInstance)


getLastSelectedAxiom

org.semanticweb.owl.model.OWLAxiom getLastSelectedAxiom()
Deprecated. use getLastSelectedAxiomInstance(OWLAxiomInstance)


setSelectedAxiom

void setSelectedAxiom(OWLAxiomInstance axiomInstance)
Instances of an axiom wrt the containing ontology


getLastSelectedAxiomInstance

OWLAxiomInstance getLastSelectedAxiomInstance()
Instances of an axiom wrt the containing ontology

Returns:
and OWLAxiomInstance (an axiom, ontology pair)

setSelectedObject

void setSelectedObject(org.semanticweb.owl.model.OWLObject object)

getSelectedObject

org.semanticweb.owl.model.OWLObject getSelectedObject()

addListener

void addListener(OWLSelectionModelListener listener)
Adds an OWLSelectionModelListener to the list of listeners.

Parameters:
listener - The listener to to be added. This listener will be notified of any changes to the set of selected objects.

removeListener

void removeListener(OWLSelectionModelListener listener)
Removes a previously added OWLSelectionModelListener. If the listener was not added then this method will have no effect.

Parameters:
listener - The listener to remove.

Protege 4.0.2

Submit a bug report or feature request