215216217218219220221222223224225
this.node = node; } public Color getNodeColor() { NodeData data = node.getNodeData(); return new Color(data.r(), data.g(), data.b(), data.alpha()); } public void setNodeColor(Color c) { if (c != null) { NodeData data = node.getNodeData();
206207208209210211212213214215216
a = uni[3]; } else { NodeData source = obj.getSource(); r = 0.498f * source.r(); g = 0.498f * source.g(); b = 0.498f * source.b(); a = obj.alpha(); } } else { g = 0.498f * obj.g(); b = 0.498f * obj.b();
251252253254255256257258259260261
r = obj.r(); if (r == -1f) { NodeData source = obj.getSource(); r = source.r(); g = source.g(); b = source.b(); } else { g = obj.g(); b = obj.b(); } }
148149150151152153154155156157158
193194195196197198199200201202203
139140141142143144145146147148149
a = uni[3]; } else { NodeData source = edge.getSource(); r = 0.498f * source.r(); g = 0.498f * source.g(); b = 0.498f * source.b(); a = edge.alpha(); } } else { g = 0.498f * edge.g(); b = 0.498f * edge.b();
184185186187188189190191192193194
r = edge.r(); if (r == -1f) { NodeData source = edge.getSource(); r = source.r(); g = source.g(); b = source.b(); } else { g = edge.g(); b = edge.b(); } }
r = obj.r(); if (r == -1f) { NodeData source = obj.getSource(); r = 0.498f * source.r(); g = 0.498f * source.g(); b = 0.498f * source.b(); a = obj.alpha(); } else { g = 0.498f * obj.g(); b = 0.498f * obj.b(); r *= 0.498f;
153154155156157158159160161162163