edu.uci.ics.jung.visualization.renderers.Renderer.setEdgeLabelRenderer()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(91)

本文整理了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

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>()

相关文章