Package org.kite9.diagram.adl

Examples of org.kite9.diagram.adl.Key


  @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

  @Kite9Item
  public Diagram simpleDiagramWithSymbolsAndTextLines() {
    Symbol s = new Symbol("Brother of Tony Scott", 'T', SymbolShape.CIRCLE);
    Glyph rs = new Glyph("Director", "Ridley Scott", createList(new TextLine("Directed: Thelma & Louise"), new TextLine("Directed: Gladiator")),
        createList(s));
    Diagram d1 = new Diagram("my_diagram", listOf(rs), new Key("Big Movies", "", createList(s)));
    return d1;
  }
View Full Code Here

   
    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

        "Some Label"), Direction.RIGHT);
    new Link(a1, g2);
    new Link(a1, g3);

    Diagram d1 = new Diagram("My Diagram", createList((Contained) inside,
        (Contained) a1), new Key("Here is my amazing diagram", null,
        kh.getUsedSymbols()));
    return d1;
  }
View Full Code Here

    if (syms.size() > 0) {
      List<Symbol> ordered = new ArrayList<Symbol>(syms);
      Collections.sort(ordered);

      if (d.getKey() == null) {
        Key k = new Key(null, null, ordered);
        d.setKey(k);
      } else {
        d.getKey().setSymbols(Key.convert(ordered));
      }
View Full Code Here

    }
  }

  protected BasicDiagramBuilder withKeyText(String boldtext, String body) {
    Key k = new Key(boldtext, body, null);
    d.setKey(k);
    return this;
  }
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

TOP

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

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.