Examples of DiagramBuilder


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

          "Could not generate a default diagram", e);
    }
  }

  private void createDefaultWorkItem(List<WorkItem> out, Class<?>[] items, String name, boolean key) {
    DiagramBuilder db = new DiagramBuilder(getContext().getAliaser(),
        "Default Diagram", getProjectModel());
    ClassDiagramWizard erw = new ClassDiagramWizard(db);

    ClassBuilder cb = db.withClasses(items);

    erw.show(cb);

    if (key)
      db.withKeyText("Kite9 Class Diagram Example",
          "This is a default diagram created by Kite9");
   
    out.add(new BasicWorkItem(db.getDiagram(), name, "", getContext().getProjectId(), getContext().getSecretKey()));
  }
View Full Code Here

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

    protected List<Integer> field2;

    @Kite9Item
    @Test
    public void test_3_1_FieldAliasesAsGlyphsFromClass() throws IOException {
  DiagramBuilder db = createBuilder();
  db.withClasses(Test3Field.class).show(db.asConnectedGlyphs()).withFields(db.onlyAnnotated(), false).show(db.asConnectedGlyphs());
  renderDiagram(db.getDiagram());
    }
View Full Code Here

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

    }

    @Kite9Item
    @Test
    public void test_3_2_FieldAliasesAsTextLine() throws IOException {
  DiagramBuilder db = createBuilder();
  db.withClasses(Test3Field.class).show(db.asConnectedGlyphs()).withFields(db.onlyAnnotated(), false).show(db.asTextLines());
  renderDiagram(db.getDiagram());
    }
View Full Code Here

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

    }

    @Kite9Item
    @Test
    public void test_3_3_FieldsAsLabelledEdges() throws IOException {
  DiagramBuilder db = createBuilder();
  db.withClasses(Test3Field.class).show(db.asConnectedGlyphs())
    .withFields(db.onlyAnnotated(), false)
      .withType(null).show(db.asConnectedGlyphs());
  renderDiagram(db.getDiagram());
    }
View Full Code Here

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


    @Kite9Item
    @Test
    public void test_3_4_FieldAsGlyphWithType() throws IOException {
  DiagramBuilder db = createBuilder();
  db.withClasses(Test3Field.class).show(db.asConnectedGlyphs()).withFields(db.onlyAnnotated(), false).show(db.asConnectedGlyphs())
    .withType(null).show(db.asConnectedGlyphs());
  renderDiagram(db.getDiagram());
    }
View Full Code Here

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

    }

    @Kite9Item
    @Test
    public void test_3_5_FieldsInContext() throws IOException {
  DiagramBuilder db = createBuilder();
  db.withClasses(Test3Field.class).show(db.asConnectedContexts()).withFields(db.onlyAnnotated(), false).show(
    db.asConnectedGlyphs());
  renderDiagram(db.getDiagram());
    }
View Full Code Here

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

    }

    @Kite9Item
    @Test
    public void test_3_6_FieldVisibility() throws IOException {
  DiagramBuilder db = createBuilder();
  db.withClasses(Test3Field.class).show(db.asConnectedContexts()).withFields(db.onlyAnnotated(), false).show(db.asConnectedGlyphs())
    .showVisibility(db.asTextLines());
  renderDiagram(db.getDiagram());
    }
View Full Code Here

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

    }

    @Kite9Item
    @Test
    public void test_3_7_FieldReturnTypesAsTextLine() throws IOException {
  DiagramBuilder db = createBuilder();
  db.withClasses(Test3Field.class).show(db.asConnectedGlyphs()).withFields(db.onlyAnnotated(), false).show(db.asTextLines())
    .withType(null).show(db.asTextLines());
  renderDiagram(db.getDiagram());
    }
View Full Code Here

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

   
   
    @Kite9Item
    @Test
    public void test_5_1_AnnotationAsTextLine() throws IOException {
  DiagramBuilder db = createBuilder();
  db.withClasses(Test5Annotation.class)
    .withMethods(db.onlyAnnotated(), false)
      .show(db.asConnectedGlyphs())
      .withAnnotations(null)
        .show(db.asTextLines());
  renderDiagram(db.getDiagram());
    }
View Full Code Here

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

    }
   
    @Kite9Item
    @Test
    public void test_5_2_ReferencedByAnnotation() throws IOException {
  DiagramBuilder db = createBuilder();
  db.withClasses(SomeReferencedClassB.class, SomeReferencedClassC.class)
    .show(db.asConnectedGlyphs())
      .withReferencingAnnotations(null)
      .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.