Package org.graphstream.graph

Examples of org.graphstream.graph.Element


   */
  protected void checkForNewIdStyle(Rule newRule,
      Map<String, String> elt2grp) {
    // There is only one element that matches the identifier.

    Element element = getElement(newRule.selector.getId(), elt2grp);

    if (element != null) {
      checkElementStyleGroup(element);
      // removeElement( element ); // Remove the element from its old
      // group. Potentially delete a group.
View Full Code Here


    public boolean hasNext() {
      return (next != null);
    }

    public Element next() {
      Element e = next;
      boolean loop = true;

      next = null;

      while (loop && iterator.hasNext()) {
View Full Code Here

      this.type = type;
      this.elementId = elementId;
    }

    protected Element getElement(Graph g) {
      Element e;

      switch (type) {
      case NODE:
        e = g.getNode(elementId);
        break;
View Full Code Here

  }

  @Test
  public void byIdFilter() {
    Filter<Element> f = Filters.byIdFilter("A.*");
    Element a1, a2, b1, c2;

    a1 = new TestElement("A1");
    a2 = new TestElement("a2");
    b1 = new TestElement("B1");
    c2 = new TestElement("C2");
View Full Code Here

  public void isContainedFilter() {
    Collection<Element> elements = new HashSet<Element>();
    Collection<String> elementsId = new HashSet<String>();
    Filter<Element> fObj = Filters.isContained(elements);
    Filter<Element> fId = Filters.isIdContained(elementsId);
    Element a1, a2, a3;

    a1 = new TestElement("a1");
    a2 = new TestElement("a2");
    a3 = new TestElement("a3");
View Full Code Here

TOP

Related Classes of org.graphstream.graph.Element

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.