public void setValueAt(Object value, int row, int col) { attribute.setValue(value); fireTableCellUpdated(row, col); } }
public void setValueAt(Object value, int row, int col) { attribute.setValue(value); fireTableCellUpdated(row, col); } }
public void setValueAt(Object value, int row, int col) { attribute.setValue(value); fireTableCellUpdated(row, col); } }
public void setValueAt(Object value, int row, int col) { attribute.setValue(value); fireTableCellUpdated(row, col); } }
public void setValueAt(Object value, int row, int col) { attribute.setValue(value); fireTableCellUpdated(row, col); } }
private void addAttribute(Object value, Attribute attribute, ONDEXRelation relation, AttributeName att) { if (value != null) { if (attribute == null) { relation.createAttribute(att, value, false); } else { attribute.setValue(value); } } }
public void setValueAt(Object value, int row, int col) { attribute.setValue(value); fireTableCellUpdated(row, col); } }
public void setValueAt(Object value, int row, int col) { attribute.setValue(value); fireTableCellUpdated(row, col); } }
public void setValueAt(Object value, int row, int col) { attribute.setValue(value); fireTableCellUpdated(row, col); } }
public void setValueAt(Object value, int row, int col) { attribute.setValue(value); fireTableCellUpdated(row, col); } }
public void setValueAt(Object value, int row, int col) { attribute.setValue(value); fireTableCellUpdated(row, col); } }
public void setValueAt(Object value, int row, int col) { attribute.setValue(value); fireTableCellUpdated(row, col); } }
@Override protected void doAction() { // set flagged attribute to false on all concepts for (ONDEXConcept c : entities) { if (c.getAttribute(anFlag) != null) c.getAttribute(anFlag).setValue(Boolean.FALSE); } }
public Attribute createAttribute(AttributeName attrname, Object value, boolean doIndex) throws AccessDeniedException, NullValueException { int gdsno = FactoryForSubComps.createAttribute(sg, this, attrname, doIndex); Attribute g = new SQL3ConceptAttribute(sg, gdsno); g.setValue(value); return g; }
public Attribute createAttribute(AttributeName attrname, Object value, boolean doIndex) { int gdsno = FactoryForSubComps.createAttribute(sg, this, attrname, doIndex); Attribute g = new SQL3RelationAttribute(sg, gdsno); g.setValue(value); return g; }
public void setValueAt(Object value, int row, int col) { if (structure != null && row == 0) { structure.setAccessionNr((String) value); attribute.setValue(structure); fireTableCellUpdated(row, col); } } }
public void setValueAt(Object value, int row, int col) { if (attribute != null) { attribute.setValue(Marshaller.getMarshaller().fromXML((String) value)); fireTableCellUpdated(row, col); } } }
private void copyCVToRelation(ONDEXConcept to, ONDEXRelation relation, AttributeName att) { DataSource dataSource = to.getElementOf(); String[] typeIds = dataSource.getId().split(":"); for (String typeId : typeIds) { Attribute attribute = relation.getAttribute(att); if (attribute == null) { relation.createAttribute(att, typeId, false); } else if (attribute.getValue() instanceof Collection) { Collection collection = (Collection) attribute.getValue(); if (!collection.contains(typeId)) { collection.add(typeId); attribute.setValue(collection); } } else if (!attribute.getValue().equals(typeId)) { List<String> cvs = new ArrayList<String>(2); cvs.add(typeId); cvs.add((String) attribute.getValue()); attribute.setValue(cvs); } } }
@Override protected void doAction() { // set flagged attribute to true on all concepts for (ONDEXConcept c : entities) { if (c.getAttribute(anFlag) == null) { c.createAttribute(anFlag, Boolean.TRUE, false); } else { c.getAttribute(anFlag).setValue(Boolean.TRUE); } } }
/** * Annotates the nodes according to specified values. * * @param map * Map<ONDEXConcept, Double> */ private void annotateNodes(Map<ONDEXConcept, Double> map) { AttributeName an = graph.getMetaData().getFactory() .createAttributeName("Betweenness_centrality", Double.class); // scale node size according to percentage for (ONDEXConcept c : map.keySet()) { Double percentBase = map.get(c); if (c.getAttribute(an) == null) c.createAttribute(an, percentBase, false); else c.getAttribute(an).setValue(percentBase); } }