Ejemplo n.º 1
0
 public void paint(Graphics g) {
   super.paint(g);
   for (int i = 0; i < tableModel.getRowCount(); i++) {
     if (tableModel.isSeparator(i) && tableModel.isDefinition(i)) {
       int count = tableModel.getBlockSize(i + 1);
       if (count > 0) {
         paintEquivalentBlock(g, i + 1, count);
       }
     }
   }
 }
Ejemplo n.º 2
0
 public List getPrototypeTriples() {
   int[] sels = getSelectedRows();
   if (sels.length == 1 && tableModel.isSeparator(sels[0])) {
     RDFProperty predicate = null;
     if (tableModel.isDefinition(sels[0])) {
       predicate = getOWLModel().getOWLEquivalentClassProperty();
     } else {
       predicate = getOWLModel().getRDFSSubClassOfProperty();
     }
     return Collections.singletonList(
         new DefaultTriple(tableModel.getEditedCls(), predicate, null));
   }
   return super.getPrototypeTriples();
 }