|
@@ -19,8 +19,8 @@ public class InitializeNodePositions {
|
|
*/
|
|
*/
|
|
public static void placeNodes( LayeredGraphNode graph ) {
|
|
public static void placeNodes( LayeredGraphNode graph ) {
|
|
float hue = 0; // color hue
|
|
float hue = 0; // color hue
|
|
- float saturation = 1; // color saturation
|
|
|
|
- float brightness = 1; // color brightness
|
|
|
|
|
|
+ float saturation = 1f; // color saturation
|
|
|
|
+ float brightness = 0.75f; // color brightness
|
|
for( LayeredGraphNode n : graph.getContainedNodes() )
|
|
for( LayeredGraphNode n : graph.getContainedNodes() )
|
|
{
|
|
{
|
|
n.setColor( Color.getHSBColor( hue, saturation, brightness ), null );
|
|
n.setColor( Color.getHSBColor( hue, saturation, brightness ), null );
|