Package org.graphstream.ui.graphicGraph.stylesheet

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


      for (Edge e : g.getEachEdge()) {
        groups.addElement(e);

        if (e.hasAttribute("ui.style"))
          stylesheet.parseStyleFromString(
              new Selector(Type.EDGE, e.getId(), null),
              (String) e.getAttribute("ui.style"));

        groups.checkElementStyleGroup(e);
      }

      for (Node n : g.getEachNode()) {
        groups.addElement(n);

        if (n.hasAttribute("ui.style"))
          stylesheet.parseStyleFromString(
              new Selector(Type.NODE, n.getId(), null),
              (String) n.getAttribute("ui.style"));

        groups.checkElementStyleGroup(n);
      }
View Full Code Here


          // Cascade the new style in the style sheet.

          if (newValue instanceof String) {
            try {
              mygraph.styleSheet.parseStyleFromString(
                  new Selector(getSelectorType(), getId(),
                      null), (String) newValue);
            } catch (Exception e) {
                            logger.log(Level.WARNING, String.format("Error while parsing style for %S '%s' :", getSelectorType(), getId()), e);
            }
            mygraph.graphChanged = true;
View Full Code Here

TOP

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

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.