Package org.kite9.diagram.builders.java

Examples of org.kite9.diagram.builders.java.DiagramBuilder


    }
   
    @Kite9Item
    @Test
    public void test_7_3_AsLabels() throws IOException {
  DiagramBuilder db = createBuilder();
  db.withClasses(Test7Collection.class)
    .show(db.asConnectedGlyphs())
    .withFields(db.onlyAnnotated(), false).withType(null).show(db.asConnectedGlyphs());

  renderDiagram(db.getDiagram());
    }
View Full Code Here


  }

  @Test
  @Kite9Item
  public void test_6_1_ClassCalledClassRelationship() throws IOException {
    DiagramBuilder db = createBuilder();
    db.withClasses(A.class).show(db.asConnectedGlyphs()).withCalledClasses(null, true).show(db.asConnectedGlyphs());

    renderDiagram(db.getDiagram());
  }
View Full Code Here

  }

  @Test
  @Kite9Item
  public void test_6_2_MethodCalledClassRelationship() throws IOException {
    DiagramBuilder db = createBuilder();
    db.withClasses(A.class).withMethods(db.onlyAnnotated(), true).show(db.asConnectedGlyphs()).withCalledClasses(null).show(
        db.asConnectedGlyphs());
    renderDiagram(db.getDiagram());
  }
View Full Code Here

  }

  @Test
  @Kite9Item
  public void test_6_3_ClassCallerClassRelationship() throws IOException {
    DiagramBuilder db = createBuilder();
    db.withClasses(B.class).show(db.asConnectedGlyphs()).withCallingClasses(null, true).show(db.asConnectedGlyphs());

    renderDiagram(db.getDiagram());
  }
View Full Code Here

  }

  @Test
  @Kite9Item
  public void test_6_4_MethodCallerClassRelationship() throws IOException {
    DiagramBuilder db = createBuilder();
    db.withClasses(B.class).withMethods(db.onlyAnnotated(), true).show(db.asConnectedGlyphs()).withCallingClasses(null)
        .show(db.asConnectedGlyphs());
    renderDiagram(db.getDiagram());
  }
View Full Code Here

        return "";
      }
    }

    if (in instanceof AnnotatedNounPart) {
      AnnotatedNounPart annotatedNounPart = (AnnotatedNounPart) in;
      return annotatedNounPart.getPrefixAnnotation()
          + getLabel(annotatedNounPart.getNounPart(), from, ii);
    }

    if (in instanceof SimpleNoun) {
      return ((SimpleNoun) in).getLabel();
    }
View Full Code Here

      public void write(NounPart subject, Relationship verb,
          NounPart object) {

        // these are the knowledge items that will be represented in the format.
        SimpleNoun from = getExistingNounOnDiagram(subject, ii);
        NounRelationshipBinding sr = new NounRelationshipBinding(
            subject, verb);
        PropositionBinding or = new PropositionBinding(subject, verb, object);
       

        SimpleNoun to = NounFactory.getRawSimpleNoun(object);
View Full Code Here

    if (in == from) {
      return "";
    }

    if (in instanceof OwnedNoun) {
      OwnedNoun on = (OwnedNoun) in;
      if (on.getOwner() == from) {
        return on.getOwned().getLabel();
      } else {
        return "";
      }
    }
View Full Code Here

        // these are the knowledge items that will be represented in the format.
        SimpleNoun from = getExistingNounOnDiagram(subject, ii);
        NounRelationshipBinding sr = new NounRelationshipBinding(
            subject, verb);
        PropositionBinding or = new PropositionBinding(subject, verb, object);
       

        SimpleNoun to = NounFactory.getRawSimpleNoun(object);
        Container cont = c == null ? getContainerFor(from, verb, ii) : c;
        DiagramElement toEl = toElementFormat.returnElement(cont, to,
View Full Code Here

        String fromLabel = getLabel(context, from, ii);
        String toLabel = getLabel(value, null, ii);
        String text = (fromLabel.length() == 0 ? "" : (fromLabel + " "))
            + key.getName() + ": " + toLabel;
        PropositionBinding srb = new PropositionBinding(context, key, value);
        ii.returnSymbol(de, srb, text, toLabel);
      }

    };
  }
View Full Code Here

TOP

Related Classes of org.kite9.diagram.builders.java.DiagramBuilder

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.