本文整理了Java中org.gephi.graph.api.Edge.getColor()
方法的一些代码示例,展示了Edge.getColor()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Edge.getColor()
方法的具体详情如下:
包路径:org.gephi.graph.api.Edge
类名称:Edge
方法名:getColor
暂无
代码示例来源:origin: gephi/graphstore
private void copyEdgeProperties(Edge edge, Edge edgeCopy) {
edgeCopy.setColor(edge.getColor());
edgeCopy.setLabel(edge.getLabel());
}
代码示例来源:origin: org.gephi/graphstore
private void copyEdgeProperties(Edge edge, Edge edgeCopy) {
edgeCopy.setColor(edge.getColor());
edgeCopy.setLabel(edge.getLabel());
}
代码示例来源:origin: org.gephi/preview-plugin
@Override
public Item[] getItems(Graph graph) {
EdgeItem[] items = new EdgeItem[graph.getEdgeCount()];
int i = 0;
for (Edge e : graph.getEdges()) {
EdgeItem item = new EdgeItem(e);
item.setData(EdgeItem.WEIGHT, e.getWeight(graph.getView()));
item.setData(EdgeItem.DIRECTED, e.isDirected());
if (graph.isDirected(e)) {
item.setData(EdgeItem.MUTUAL, ((DirectedGraph) graph).getMutualEdge(e) != null);
}
item.setData(EdgeItem.SELF_LOOP, e.isSelfLoop());
item.setData(EdgeItem.COLOR, e.alpha() == 0 ? null : e.getColor());
items[i++] = item;
}
return items;
}
内容来源于网络,如有侵权,请联系作者删除!