Examples of DiagramBuilder


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

  public DiagramBuilder createBuilder() {
    AbstractIdentifiableDiagramElement.resetCounter();
    Method m = StackHelp.getKite9Item();
    Aliaser a = new PropertyAliaser();

    return new DiagramBuilder(a, m, pmi);
  }
View Full Code Here

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

  }
 
  @Kite9Item
  @Test
  public void test_16_1_CreateSequenceDiagram() throws Exception {
    DiagramBuilder db = createBuilder();
    Method m = this.getClass().getDeclaredMethod("someMethod1");
    MethodBasedSequenceDiagramDataProvider mbsddp = new MethodBasedSequenceDiagramDataProvider(db, m);
    ColumnSequenceDiagramWizard format = new ColumnSequenceDiagramWizard(db);
    format.write(mbsddp, db.getDiagram());
    renderDiagram(db.getDiagram());
  }
View Full Code Here

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

  }
 
  @Kite9Item
  @Test
  public void test_16_2_CreateNestedSequenceDiagram() throws Exception {
    DiagramBuilder db = createBuilder();
    Context c = (Context) db.getInsertionInterface().returnContext(db.getDiagram(), db.getNounFactory().createNoun("Some context"), null, true, null);
    Method m = this.getClass().getDeclaredMethod("someMethod1");
    MethodBasedSequenceDiagramDataProvider mbsddp = new MethodBasedSequenceDiagramDataProvider(db, m);
    ColumnSequenceDiagramWizard format = new ColumnSequenceDiagramWizard(db);
    format.write(mbsddp, c);
    renderDiagram(db.getDiagram());
  }
View Full Code Here

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

  }

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

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

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

  }

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

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

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

  }

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

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

  }

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

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

  }

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

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

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

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

      

    @Kite9Item
    @Test
    public void test_2_1_MethodsAsGlyphs() throws IOException {
  DiagramBuilder db = createBuilder();
  db.withClasses(Test2Method.class).show(db.asConnectedGlyphs())
    .withMethods(db.onlyAnnotated(), false).show(db.asConnectedGlyphs());
  renderDiagram(db.getDiagram());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.