Package org.graphstream.ui.graphicGraph.stylesheet

Examples of org.graphstream.ui.graphicGraph.stylesheet.Colors


          String color, opacity;
          double d = e.hasNumber("ui.color") ? e
              .getNumber("ui.color") : 0;

          double a, b;
          Colors colors = group.getFillColors();
          int s = Math.min((int) (d * group.getFillColorCount()),
              colors.size() - 2);

          a = s / (double) (colors.size() - 1);
          b = (s + 1) / (double) (colors.size() - 1);

          d = (d - a) / (b - a);

          Color c1 = colors.get(s), c2 = colors.get(s + 1);

          color = String.format(
              "#%02x%02x%02x",
              (int) (c1.getRed() + d
                  * (c2.getRed() - c1.getRed())),
View Full Code Here

TOP

Related Classes of org.graphstream.ui.graphicGraph.stylesheet.Colors

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.