有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java增加Graphstream边缘宽度

有没有办法增加Graphstream的边缘宽度

我所尝试的:

edge.addAttribute("ui.style", "stroke-width: 30px; fill-color: red;");

共 (2) 个答案

  1. # 1 楼答案

    使用以下命令:

    graph.setAttribute("ui.stylesheet", "edge{size:30px;}");
    
  2. # 2 楼答案

    我猜您正在寻找size属性

    edge.addAttribute("ui.style", "size: 5px; fill-color: red;");