org.dllearner.tools.protege
Class DLLearnerView

java.lang.Object
  extended by org.dllearner.tools.protege.DLLearnerView

public class DLLearnerView
extends Object

This class is responsible for the view of the dllearner. It renders the output for the user and is the graphical component of the plugin.

Author:
Christian Koetteritzsch

Constructor Summary
DLLearnerView(String label, org.protege.editor.owl.OWLEditorKit editor)
          The constructor for the DL-Learner tab in the class description editor.
 
Method Summary
 void addAcceptButtonListener(ActionListener a)
          Adds Actionlistener to the add button.
 void addAdvancedButtonListener(ActionListener a)
          Adds Actionlistener to the advanced button.
 void addRunButtonListener(ActionListener a)
          Adds Actionlistener to the run button.
 void algorithmTerminated()
          This method sets the run button enable after learning.
 void dispose()
           
 JButton getAddButton()
          Returns the AddButton.
 DLLearnerModel getDLLearnerModel()
           
 JTextArea getHintPanel()
          This method returns the hint panel.
 JComponent getLearnerView()
           
 MoreDetailForSuggestedConceptsPanel getMoreDetailForSuggestedConceptsPanel()
          This Method returns the panel for more details for the chosen concept.
 PosAndNegSelectPanel getPosAndNegSelectPanel()
          This method returns the PosAndNegSelectPanel.
 ReadingOntologyThread getReadingOntologyThread()
           
 JButton getRunButton()
          This Method returns the run button.
 org.semanticweb.owl.model.OWLDescription getSolution()
          Returns the last added description.
 Set<org.semanticweb.owl.model.OWLDescription> getSolutions()
          Returns all added descriptions.
 SuggestClassPanel getSuggestClassPanel()
          This method returns the SuggestClassPanel.
 void makeView()
          This Method renders the view of the plugin.
 void renderErrorMessage(String s)
          Renders the error message when an error occured.
 void setExamplePanelVisible(boolean visible)
          Sets the panel to select/deselect the examples visible/invisible.
 void setGraphicalPanel()
           
 void setHintMessage(String message)
          This Method changes the hint message.
 void setIconToggled(boolean toggled)
          This method sets the right icon for the advanced Panel.
 void setIsInconsistent(boolean isIncon)
          This method sets if ontology is inconsistent or not.
 void unsetEverything()
          Destroys everything in the view after the plugin is closed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DLLearnerView

public DLLearnerView(String label,
                     org.protege.editor.owl.OWLEditorKit editor)
The constructor for the DL-Learner tab in the class description editor.

Parameters:
editor - OWLEditorKit
label - String
Method Detail

getSuggestClassPanel

public SuggestClassPanel getSuggestClassPanel()
This method returns the SuggestClassPanel.

Returns:
SuggestClassPanel

getPosAndNegSelectPanel

public PosAndNegSelectPanel getPosAndNegSelectPanel()
This method returns the PosAndNegSelectPanel.

Returns:
PosAndNegSelectPanel

makeView

public void makeView()
This Method renders the view of the plugin.


setIconToggled

public void setIconToggled(boolean toggled)
This method sets the right icon for the advanced Panel.

Parameters:
toggled - boolean

setGraphicalPanel

public void setGraphicalPanel()

setHintMessage

public void setHintMessage(String message)
This Method changes the hint message.

Parameters:
message - String hintmessage

getHintPanel

public JTextArea getHintPanel()
This method returns the hint panel.

Returns:
hint panel

setExamplePanelVisible

public void setExamplePanelVisible(boolean visible)
Sets the panel to select/deselect the examples visible/invisible.

Parameters:
visible - boolean

getAddButton

public JButton getAddButton()
Returns the AddButton.

Returns:
JButton

getSolutions

public Set<org.semanticweb.owl.model.OWLDescription> getSolutions()
Returns all added descriptions.

Returns:
Set(OWLDescription)

dispose

public void dispose()

getSolution

public org.semanticweb.owl.model.OWLDescription getSolution()
Returns the last added description.

Returns:
OWLDescription

unsetEverything

public void unsetEverything()
Destroys everything in the view after the plugin is closed.


renderErrorMessage

public void renderErrorMessage(String s)
Renders the error message when an error occured.

Parameters:
s - String

getMoreDetailForSuggestedConceptsPanel

public MoreDetailForSuggestedConceptsPanel getMoreDetailForSuggestedConceptsPanel()
This Method returns the panel for more details for the chosen concept.

Returns:
MoreDetailForSuggestedConceptsPanel

getRunButton

public JButton getRunButton()
This Method returns the run button.

Returns:
JButton

setIsInconsistent

public void setIsInconsistent(boolean isIncon)
This method sets if ontology is inconsistent or not.

Parameters:
isIncon - boolean if ontology is consisten

addRunButtonListener

public void addRunButtonListener(ActionListener a)
Adds Actionlistener to the run button.

Parameters:
a - ActionListener

addAcceptButtonListener

public void addAcceptButtonListener(ActionListener a)
Adds Actionlistener to the add button.

Parameters:
a - ActionListener

addAdvancedButtonListener

public void addAdvancedButtonListener(ActionListener a)
Adds Actionlistener to the advanced button.

Parameters:
a - ActionListener

algorithmTerminated

public void algorithmTerminated()
This method sets the run button enable after learning.


getLearnerView

public JComponent getLearnerView()

getDLLearnerModel

public DLLearnerModel getDLLearnerModel()

getReadingOntologyThread

public ReadingOntologyThread getReadingOntologyThread()


SourceForge.net Logo DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2008 Jens Lehmann