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