示例#1
0
 public void removeEdge(EdgeModel model) {
   int id;
   if (model.getSourceModel() == this) {
     id = model.getOctantSourceId();
   } else {
     id = model.getOctantTargetId();
   }
   edges[id] = null;
 }
示例#2
0
 public void addEdge(EdgeModel model) {
   int id = edgeLength++;
   growEdges(id);
   edges[id] = model;
   if (model.getSourceModel() == this) {
     model.setOctantSourceId(id);
   } else {
     model.setOctantTargetId(id);
   }
 }
示例#3
0
 @Override
 public void textEdgeColor(Renderer renderer, EdgeModel edgeModel) {
   textColor(renderer, edgeModel, edgeModel.isSelected() || edgeModel.isAutoSelected());
 }