Package org.kite9.diagram.builders.java

Examples of org.kite9.diagram.builders.java.ObjectBuilder.withObjects()


   
  @Test
  @Kite9Item
  public void test_10_1_StringGlyph() throws IOException {
      DiagramBuilder db = createBuilder();
      db.withObjects("a", "b", "c").show(db.asConnectedGlyphs());
      renderDiagram(db.getDiagram());
  }
 
  @Test
  @Kite9Item
View Full Code Here


 
  @Test
  @Kite9Item
  public void test_10_1_StringContext() throws IOException {
      DiagramBuilder db = createBuilder();
      db.withObjects("m context")
        .show(db.asConnectedContexts())
        .withClasses(JavaRelationships.CLASS, SomeClassA.class)
          .show(db.asConnectedGlyphs());
      renderDiagram(db.getDiagram());
  }
View Full Code Here

  @Test
  @Kite9Item
  public void test_17_1_TestArchitectureWizard() throws IOException {
    DiagramBuilder db = createBuilder();
    String rh = "Rob's Architecture";
    ObjectBuilder context = db.withObjects(rh).show(db.asConnectedContexts());
    ClassDiagramWizard erw = new ClassDiagramWizard(db);
    erw.show(context.withClasses(JavaRelationships.CLASS_GROUP, Test17ClassDiagramWizard.class).withInnerClasses(null, false));
    renderDiagram(db.getDiagram());
  }
 
View Full Code Here

  @Test
  @Kite9Item
  public void test_14_1_TestHierarchy() throws IOException {
    DiagramBuilder db = createBuilder();
    String rh = "Rob's Hierarchy";
    db.withObjects(rh).show(db.asConnectedContexts());
    HierarchyWizard hb = new HierarchyWizard(rh, db);
    hb.add(true, Top.class);
    hb.showClasses(db.asConnectedContexts(false, Layout.HORIZONTAL), db.asConnectedGlyphs(""));
    hb.showInheritance(db.asConnectedGlyphs(""));
    renderDiagram(db.getDiagram());
View Full Code Here

  @Kite9Item
  public Diagram example_1_3_FlowChart(DiagramBuilder builder) throws IOException {
    ObjectBuilder checkLaundry = builder.withObjects("Check Laundry Basket").show(builder.asConnectedGlyphs("choice"));
    checkLaundry.withObjects(null, "Is it empty?").show(builder.asTextLines());
    checkLaundry.withObjects(new Relationship("yes", Direction.RIGHT), "All Done!").show(builder.asConnectedGlyphs());

    Relationship no1 = new Relationship("no", Direction.DOWN);
    ObjectBuilder loadLaundry = checkLaundry.withObjects(no1, "Load Laundry Into Machine").show(
        builder.asConnectedGlyphs("action"));
    loadLaundry.withObjects(null, "Ensure machine is empty first", "Add powder, close door", "Start programme")
View Full Code Here

    checkLaundry.withObjects(new Relationship("yes", Direction.RIGHT), "All Done!").show(builder.asConnectedGlyphs());

    Relationship no1 = new Relationship("no", Direction.DOWN);
    ObjectBuilder loadLaundry = checkLaundry.withObjects(no1, "Load Laundry Into Machine").show(
        builder.asConnectedGlyphs("action"));
    loadLaundry.withObjects(null, "Ensure machine is empty first", "Add powder, close door", "Start programme")
        .show(builder.asTextLines());

    String finished = "Is Cycle Finished?";
    ObjectBuilder isFinished = loadLaundry.withObjects(new Relationship("wait"), finished).show(
        builder.asConnectedGlyphs("choice"));
View Full Code Here

        builder.asConnectedGlyphs("choice"));

    ObjectBuilder waiting = isFinished.withObjects(new Relationship("no"), "Have a Coffee")
        .show(builder.asConnectedGlyphs());

    waiting.withObjects(new Relationship("check again"), finished).show(builder.asConnectedGlyphs());

    Relationship yes = new Relationship("yes");
    ObjectBuilder sunny = isFinished.withObjects(yes, "Is it Sunny?").show(builder.asConnectedGlyphs("choice"));

    sunny.withObjects(new Relationship("it's fine"), "Hang on the Line").show(builder.asConnectedGlyphs("action"));
View Full Code Here

    waiting.withObjects(new Relationship("check again"), finished).show(builder.asConnectedGlyphs());

    Relationship yes = new Relationship("yes");
    ObjectBuilder sunny = isFinished.withObjects(yes, "Is it Sunny?").show(builder.asConnectedGlyphs("choice"));

    sunny.withObjects(new Relationship("it's fine"), "Hang on the Line").show(builder.asConnectedGlyphs("action"));
    sunny.withObjects(new Relationship("it's wet"), "Hang on the Dryer").show(builder.asConnectedGlyphs("action"));

    return builder.getDiagram();
  }
View Full Code Here

    Relationship yes = new Relationship("yes");
    ObjectBuilder sunny = isFinished.withObjects(yes, "Is it Sunny?").show(builder.asConnectedGlyphs("choice"));

    sunny.withObjects(new Relationship("it's fine"), "Hang on the Line").show(builder.asConnectedGlyphs("action"));
    sunny.withObjects(new Relationship("it's wet"), "Hang on the Dryer").show(builder.asConnectedGlyphs("action"));

    return builder.getDiagram();
  }

  @Kite9Item
View Full Code Here

  }

  @Kite9Item
  public Diagram example_1_3_FlowChart(DiagramBuilder builder) throws IOException {
    ObjectBuilder checkLaundry = builder.withObjects("Check Laundry Basket").show(builder.asConnectedGlyphs("choice"));
    checkLaundry.withObjects(null, "Is it empty?").show(builder.asTextLines());
    checkLaundry.withObjects(new Relationship("yes", Direction.RIGHT), "All Done!").show(builder.asConnectedGlyphs());

    Relationship no1 = new Relationship("no", Direction.DOWN);
    ObjectBuilder loadLaundry = checkLaundry.withObjects(no1, "Load Laundry Into Machine").show(
        builder.asConnectedGlyphs("action"));
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.