edu.stanford.smi.protegex.owl.inference.protegeowl.log
Class DefaultConceptConsistencyLogRecord

java.lang.Object
  extended byedu.stanford.smi.protegex.owl.inference.protegeowl.log.ReasonerLogRecord
      extended byedu.stanford.smi.protegex.owl.inference.protegeowl.log.DefaultConceptConsistencyLogRecord
All Implemented Interfaces:
ListCellRenderer, TreeCellRenderer

public class DefaultConceptConsistencyLogRecord
extends ReasonerLogRecord

User: matthewhorridge
The Univeristy Of Manchester
Medical Informatics Group
Date: Aug 23, 2004

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


Field Summary
private  RDFSClass aClass
           
private  boolean consistent
           
private  JLabel label
           
 
Fields inherited from class edu.stanford.smi.protegex.owl.inference.protegeowl.log.ReasonerLogRecord
 
Constructor Summary
DefaultConceptConsistencyLogRecord(RDFSClass aClass, boolean consistent, ReasonerLogRecord parent)
           
 
Method Summary
 RDFSClass getInconsistentConcept()
           
 Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus)
           
 String getMessage()
           
 Component getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus)
          Sets the value of the current tree cell to value.
 String toString()
           
 
Methods inherited from class edu.stanford.smi.protegex.owl.inference.protegeowl.log.ReasonerLogRecord
getParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

aClass

private RDFSClass aClass

consistent

private boolean consistent

label

private JLabel label
Constructor Detail

DefaultConceptConsistencyLogRecord

public DefaultConceptConsistencyLogRecord(RDFSClass aClass,
                                          boolean consistent,
                                          ReasonerLogRecord parent)
Method Detail

getInconsistentConcept

public RDFSClass getInconsistentConcept()

getMessage

public String getMessage()

toString

public String toString()

getListCellRendererComponent

public Component getListCellRendererComponent(JList list,
                                              Object value,
                                              int index,
                                              boolean isSelected,
                                              boolean cellHasFocus)

getTreeCellRendererComponent

public Component getTreeCellRendererComponent(JTree tree,
                                              Object value,
                                              boolean selected,
                                              boolean expanded,
                                              boolean leaf,
                                              int row,
                                              boolean hasFocus)
Sets the value of the current tree cell to value. If selected is true, the cell will be drawn as if selected. If expanded is true the node is currently expanded and if leaf is true the node represets a leaf and if hasFocus is true the node currently has focus. tree is the JTree the receiver is being configured for. Returns the Component that the renderer uses to draw the value.

Returns:
the Component that the renderer uses to draw the value