edu.stanford.smi.protegex.owl.ui.conditions
Class ConditionsTableItem
java.lang.Object
edu.stanford.smi.protegex.owl.ui.conditions.ConditionsTableItem
- All Implemented Interfaces:
- Comparable, ConditionsTableConstants
- public class ConditionsTableItem
- extends Object
- implements ConditionsTableConstants, Comparable
An object representing an entry in the table. One instance is kept for
each row.
- Author:
- Holger Knublauch
aClass
RDFSClass aClass
definition
private OWLIntersectionClass definition
isNew
private boolean isNew
localIndex
private int localIndex
- The index of this row inside its block. This is 0 for the first row
below each separator
originCls
private OWLNamedClass originCls
type
private int type
INHERITED
public static final String INHERITED
- See Also:
- Constant Field Values
NECESSARY
public static final String NECESSARY
- See Also:
- Constant Field Values
SUFFICIENT
public static final String SUFFICIENT
- See Also:
- Constant Field Values
ConditionsTableItem
private ConditionsTableItem(RDFSClass aClass,
int type,
OWLNamedClass originCls,
OWLIntersectionClass definition,
boolean isNew)
compareTo
public int compareTo(Object o)
- Sorts according to the following order:
1) Equivalent classes > superclasses > inherited superclasses
2) NamedClasses by name
3) Anonymous classes > restrictions
4) Restrictions by slot name
- Specified by:
compareTo
in interface Comparable
- Parameters:
o
- the other ClassDescriptionItem to compare to
- Returns:
- -1 if this is smaller (higher in the list), 1 if the other is smaller
compareToWithSameType
int compareToWithSameType(RDFSClass otherClass)
compareToWithAnonymousClses
private int compareToWithAnonymousClses(OWLAnonymousClass otherCls)
compareToWithRestrictions
private int compareToWithRestrictions(OWLRestriction otherCls)
create
static ConditionsTableItem create(RDFSClass aClass,
int type)
createInherited
static ConditionsTableItem createInherited(RDFSClass aClass,
OWLNamedClass originCls)
createNew
static ConditionsTableItem createNew(int type)
createSufficient
static ConditionsTableItem createSufficient(RDFSClass aClass,
int type,
OWLIntersectionClass definition)
createSeparator
static ConditionsTableItem createSeparator(int type)
getCls
RDFSClass getCls()
getDefinition
OWLIntersectionClass getDefinition()
getIcon
Icon getIcon(int rowHeight)
getOriginCls
OWLNamedClass getOriginCls()
getSuperclassIcon
static Icon getSuperclassIcon()
getType
int getType()
isDefinition
boolean isDefinition()
isInherited
boolean isInherited()
isNew
boolean isNew()
isSeparator
boolean isSeparator()
setLocalIndex
void setLocalIndex(int value)
setType
void setType(int value)
toString
public String toString()
getDisplayText
private String getDisplayText()