Package org.kite9.diagram.builders

Examples of org.kite9.diagram.builders.WithHelperMethodsDiagramBuilder$ContextFactory


public class Test4Package extends AbstractBuilderTest {

    @Kite9Item
    @Test
    public void test_4_1_PackageAsContext() throws IOException {
  DiagramBuilder db = createBuilder();
  db.withPackages(Test4Package.class)
    .show(db.asConnectedContexts())
    .withMembers(Test4Package.class)
      .show(db.asConnectedGlyphs());
  renderDiagram(db.getDiagram());
 
    }
View Full Code Here


    }
   
    @Kite9Item
    @Test
    public void test_4_2_PackageAsContextWithClassContents1() throws IOException {
  DiagramBuilder db = createBuilder();
  db.withPackages(Test4Package.class)
    .show(db.asConnectedContexts())
    .withMemberClasses(null)
      .show(db.asConnectedGlyphs());
  renderDiagram(db.getDiagram());
    }
View Full Code Here

    }
   
    @Kite9Item
    @Test
    public void test_4_3_PackageAsContextWithClassContents2() throws IOException {
  DiagramBuilder db = createBuilder();
  db.withPackages(Test4Package.class)
    .show(db.asConnectedContexts())
    .withMemberClasses(null).reduce(db.only(Test4Package.class))
      .show(db.asConnectedGlyphs());
  renderDiagram(db.getDiagram());
    }
View Full Code Here

   
   
    @Kite9Item
    @Test
    public void test_4_4_PackageDependency() throws IOException {
  DiagramBuilder db = createBuilder();
  db.withPackages(Test4Package.class)
    .show(db.asConnectedGlyphs())
    .withDependencies(null)
      .show(db.asConnectedGlyphs());
  renderDiagram(db.getDiagram());
    }
View Full Code Here

   
   
    @Test
    @Kite9Item
    public void test_9_1_GlyphAlias() throws IOException {
  DiagramBuilder db = createBuilder();
  db.withClasses(SomeClass.class).show(db.asConnectedGlyphs());
  renderDiagram(db.getDiagram());
    }
View Full Code Here

    }
   
    @Test
    @Kite9Item
    public void test_9_2_ContextAlias() throws IOException {
  DiagramBuilder db = createBuilder();
  db.withClasses(SomeClass.class).show(db.asConnectedContexts());
  renderDiagram(db.getDiagram());
    }
View Full Code Here

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

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

    }
   
    @Test
    @Kite9Item
    public void test_9_5_AnnotationGlyphs() throws IOException {
  DiagramBuilder db = createBuilder();
  db.withClasses(SomeClass.class)
    .show(db.asConnectedGlyphs())
    .withAnnotations(null).show(db.asTextLines());
  renderDiagram(db.getDiagram());
    }
View Full Code Here

  }

  @Kite9Item
  public Diagram example_1_5_UseCases(DiagramBuilder builder) throws IOException {
    // show use cases inside a context
    PackageBuilder ucp = builder.withPackages(UseCase.class);
    ucp.show(builder.asConnectedContexts());
    ClassBuilder uc = ucp.withMemberClasses(builder.not(builder.only(UseCase.class, Uses.class)));
    uc.show(builder.asConnectedGlyphs(null));

    // show actors inside context
    PackageBuilder ac = builder.withPackages(Actor.class);
    ac.show(builder.asConnectedContexts(true, Layout.VERTICAL));
    ClassBuilder contents = ac.withMembers(Person.class);
    contents.show(builder.asConnectedGlyphs());
    contents.withMethods(null, false).show(builder.asTextLines());
    contents.withSubClasses(builder.onlyAnnotated(), true).show(builder.asConnectedGlyphs())
      .withMethods(null, false).show(builder.asTextLines());
    // show references between the two
View Full Code Here

TOP

Related Classes of org.kite9.diagram.builders.WithHelperMethodsDiagramBuilder$ContextFactory

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.