public void setLabelsColor(Color c) { if (c != null) { labelsColor = c; for (Node node : nodes) { TextProperties textProps = node.getTextProperties(); textProps.setR(c.getRed() / 255f); textProps.setG(c.getGreen() / 255f); textProps.setB(c.getBlue() / 255f); textProps.setAlpha(c.getAlpha() / 255f); } } }
public void setLabelsColor(Color c) { if (c != null) { labelsColor = c; for (Edge edge : edges) { TextProperties textProps = edge.getTextProperties(); textProps.setR(c.getRed() / 255f); textProps.setG(c.getGreen() / 255f); textProps.setB(c.getBlue() / 255f); textProps.setAlpha(c.getAlpha() / 255f); } } }