Protege 4.0.2

org.protege.editor.owl.model.selection
Class OWLSelectionModelImpl

java.lang.Object
  extended by org.protege.editor.owl.model.selection.OWLSelectionModelImpl
All Implemented Interfaces:
OWLSelectionModel

public class OWLSelectionModelImpl
extends Object
implements OWLSelectionModel

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

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


Constructor Summary
OWLSelectionModelImpl()
           
 
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()
           
 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)
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OWLSelectionModelImpl

public OWLSelectionModelImpl()
Method Detail

addListener

public void addListener(OWLSelectionModelListener listener)
Description copied from interface: OWLSelectionModel
Adds an OWLSelectionModelListener to the list of listeners.

Specified by:
addListener in interface OWLSelectionModel
Parameters:
listener - The listener to to be added. This listener will be notified of any changes to the set of selected objects.

removeListener

public void removeListener(OWLSelectionModelListener listener)
Description copied from interface: OWLSelectionModel
Removes a previously added OWLSelectionModelListener. If the listener was not added then this method will have no effect.

Specified by:
removeListener in interface OWLSelectionModel
Parameters:
listener - The listener to remove.

getSelectedObject

public org.semanticweb.owl.model.OWLObject getSelectedObject()
Specified by:
getSelectedObject in interface OWLSelectionModel

setSelectedObject

public void setSelectedObject(org.semanticweb.owl.model.OWLObject object)
Specified by:
setSelectedObject in interface OWLSelectionModel

getSelectedEntity

public org.semanticweb.owl.model.OWLEntity getSelectedEntity()
Description copied from interface: OWLSelectionModel
Gets the last selected entity.

Specified by:
getSelectedEntity in interface OWLSelectionModel
Returns:
The OWLEntity that was last selected.

setSelectedEntity

public void setSelectedEntity(org.semanticweb.owl.model.OWLEntity entity)
Description copied from interface: OWLSelectionModel
A convenience method that will delegate to the appropriate selection method depending on the type of entity.

Specified by:
setSelectedEntity in interface OWLSelectionModel
Parameters:
entity - The entity to be selected. Must not be null.

setSelectedAxiom

public void setSelectedAxiom(OWLAxiomInstance axiomInstance)
Description copied from interface: OWLSelectionModel
Instances of an axiom wrt the containing ontology

Specified by:
setSelectedAxiom in interface OWLSelectionModel

getLastSelectedAxiomInstance

public OWLAxiomInstance getLastSelectedAxiomInstance()
Description copied from interface: OWLSelectionModel
Instances of an axiom wrt the containing ontology

Specified by:
getLastSelectedAxiomInstance in interface OWLSelectionModel
Returns:
and OWLAxiomInstance (an axiom, ontology pair)

setSelectedAxiom

public void setSelectedAxiom(org.semanticweb.owl.model.OWLAxiom axiom)
Specified by:
setSelectedAxiom in interface OWLSelectionModel

clearLastSelectedEntity

public void clearLastSelectedEntity(org.semanticweb.owl.model.OWLEntity entity)
Description copied from interface: OWLSelectionModel
If any of the last selected entities are equal to the specified entity then the selection is cleared.

Specified by:
clearLastSelectedEntity in interface OWLSelectionModel

getLastSelectedClass

public org.semanticweb.owl.model.OWLClass getLastSelectedClass()
Description copied from interface: OWLSelectionModel
Gets the most recently selected class.

Specified by:
getLastSelectedClass in interface OWLSelectionModel
Returns:
The selected OWLClass, or null if a class is not selected.

getLastSelectedObjectProperty

public org.semanticweb.owl.model.OWLObjectProperty getLastSelectedObjectProperty()
Description copied from interface: OWLSelectionModel
Gets the most recently selected property

Specified by:
getLastSelectedObjectProperty in interface OWLSelectionModel
Returns:
The selected OWLProperty, or null if there is no selected property.

getLastSelectedDataProperty

public org.semanticweb.owl.model.OWLDataProperty getLastSelectedDataProperty()
Description copied from interface: OWLSelectionModel
Gets the most recently selected property

Specified by:
getLastSelectedDataProperty in interface OWLSelectionModel
Returns:
The selected OWLProperty, or null if there is no selected property.

getLastSelectedIndividual

public org.semanticweb.owl.model.OWLIndividual getLastSelectedIndividual()
Description copied from interface: OWLSelectionModel
Gets the most recently selected individual.

Specified by:
getLastSelectedIndividual in interface OWLSelectionModel
Returns:
The selected individual, or null if there is no selected individual.

getLastSelectedAxiom

public org.semanticweb.owl.model.OWLAxiom getLastSelectedAxiom()
Specified by:
getLastSelectedAxiom in interface OWLSelectionModel

Protege 4.0.2

Submit a bug report or feature request