本文整理了Java中edu.uci.ics.jung.visualization.renderers.Renderer.setEdgeLabelRenderer
方法的一些代码示例,展示了Renderer.setEdgeLabelRenderer
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Renderer.setEdgeLabelRenderer
方法的具体详情如下:
包路径:edu.uci.ics.jung.visualization.renderers.Renderer
类名称:Renderer
方法名:setEdgeLabelRenderer
暂无
代码示例来源:origin: com.github.davidmoten/state-diagram-viewer
vv.getRenderContext().setEdgeLabelTransformer(edge -> " " + edge.name + " ");
vv.getRenderContext().setEdgeShapeTransformer(new EdgeShape.QuadCurve<String, Edge>());
vv.getRenderer().setEdgeLabelRenderer(new MyEdgeLabelRenderer<>(-10, Color.white));
代码示例来源:origin: org.apache.batchee/batchee-maven-plugin
private void init() {
setOpaque(true);
setBackground(new Color(255, 255, 255, 0));
final RenderContext<Node, Edge> context = getRenderContext();
context.setVertexFillPaintTransformer(new VertexFillPaintTransformer());
context.setVertexShapeTransformer(new VertexShapeTransformer(getFontMetrics(getFont())));
context.setVertexLabelTransformer(new VertexLabelTransformer());
getRenderer().getVertexLabelRenderer().setPosition(Renderer.VertexLabel.Position.CNTR);
context.setEdgeLabelTransformer(new EdgeLabelTransformer());
context.setEdgeShapeTransformer(new EdgeShape.Line<Node, Edge>());
context.setEdgeLabelClosenessTransformer(new EdgeLabelClosenessTransformer());
context.getEdgeLabelRenderer().setRotateEdgeLabels(rotateEdges);
getRenderer().setEdgeLabelRenderer(new EdgeLabelRenderer());
}
}
代码示例来源:origin: girtel/Net2Plan
vv.getRenderer().setEdgeLabelRenderer(new BasicEdgeLabelRenderer<GUINode, GUILink>()
内容来源于网络,如有侵权,请联系作者删除!