Package org.kite9.diagram.adl

Examples of org.kite9.diagram.adl.KeyHelper


  @Kite9Item
  public Diagram someDesignItem() {
    Glyph g1 = new Glyph("stereo", "project:" + this.getClass().getName(), null, null);
    Glyph g2 = new Glyph("stereo", "project:" + Another.class.getName(), null, null);

    return new Diagram("somename", createList((Contained) g1, g2), null);
  }
View Full Code Here


  }
 
  @Kite9Item
  public Diagram simpleDiagram(DiagramBuilder db) {
    Glyph test = new Glyph("project_class:bob", "this is a", "test", null, null);
    Diagram out = new Diagram("some diagram", createList((Contained) test), null);
    return out;
  }
View Full Code Here

   *
   * @return
   */
  @Kite9Item
  public Diagram someDesignItem() {
    Glyph g1 = new Glyph("stereo", "project:" + this.getClass().getName(), null, null);
    Glyph g2 = new Glyph("stereo", "project:" + Another.class.getName(), null, null);

    return new Diagram("somename", createList((Contained) g1, g2), null);
  }
View Full Code Here

    FileDiff.filesContainSameLines(f2, f2comp);
  }
 
  @Kite9Item
  public Diagram simpleDiagram(DiagramBuilder db) {
    Glyph test = new Glyph("project_class:bob", "this is a", "test", null, null);
    Diagram out = new Diagram("some diagram", createList((Contained) test), null);
    return out;
  }
View Full Code Here

    return d1;
  }
 
  @Kite9Item
  public Diagram simpleDiagramWithKeyHelper() {
    KeyHelper kh = new KeyHelper();
    Symbol s = kh.createSymbol("Brother of Tony Scott");
   
    Glyph hf = new Glyph("Actor","Harrison Ford", null, null);
    Glyph rs = new Glyph("Director", "Ridley Scott", null,
        createList(s));
    Diagram d1 = new Diagram("my_diagram", listOf(hf, rs),
        new Key("Big Movies", "", kh.getUsedSymbols()));
    return d1;
  }
View Full Code Here

public class Test1SerializeDiagram extends HelpMethods {

  @Test
  public void quickSerializeTest() {
    KeyHelper kh = new KeyHelper();

    Diagram d1 = createDiagram(kh);

    XMLHelper helper = new XMLHelper();
View Full Code Here

public class Test2SerializeWorkItems extends HelpMethods {

    @Test
  public void quickSerializeTest() {
    KeyHelper kh = new KeyHelper();
    Diagram d1 = Test1SerializeDiagram.createDiagram(kh);
    WorkItem w1 = new BasicWorkItem(d1, "hello", "diagram.png", -1, "x");
   
   
    XMLHelper helper = new XMLHelper();
View Full Code Here

      final Layout d, final Label l) {
    return new NounFormat() {
      public Connected returnElement(Container c, SimpleNoun to,
          InsertionInterface ii) {
        Label toUse = (l == null) ? (to.getLabel() == null ? null
            : new TextLine(to.getLabel())) : l;
        DiagramElement de = ii.returnContext(c, to, border ? toUse
            : null, border, d);
        if (de instanceof Connected) {
          return (Connected) de;
        } else {
View Full Code Here

          boolean arrowPreExists = ii.returnExisting(sr) instanceof Arrow;
         
          DiagramElement arrowEl = ii.returnConnectionBody(cont, sr,
              (String) activeVerb.getObjectForAlias());
          String fromLabel = getLabel(subject, from, ii);
          TextLine fromLabelTL = fromLabel.length() == 0 ? null
              : new TextLine(fromLabel);
          String toLabel = getLabel(object, to, ii);
          TextLine toLabelTL = toLabel.length() == 0 ? null
              : new TextLine(toLabel);

          Direction direction = d == null ? activeVerb.getDirection()
              : d;
          if (verb.getType() == RelationshipType.PASSIVE) {
            ii.returnConnection(toEl, arrowEl, or, toLabelTL, null, false, direction);
View Full Code Here

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

TOP

Related Classes of org.kite9.diagram.adl.KeyHelper

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.