Package org.kite9.diagram.adl

Examples of org.kite9.diagram.adl.TextLine


  @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

      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

    Glyph hf = new Glyph("harrison_ford","Actor","Harrison Ford", null, null);
    Glyph rs = new Glyph("ridley_scott", "Director", "Ridley Scott", null, null);
    Arrow ww = new Arrow("worked_with", "worked with");
   
    new Link(ww, hf, LinkEndStyle.ARROW, null, LinkEndStyle.ARROW, null);
    new Link(ww, rs, null, new TextLine("label 1"), null, new TextLine("label 2"));
   
    Diagram d1 = new Diagram("my_diagram", listOf(hf, rs, ww), null);
    return d1;
  }
View Full Code Here

public class SimpleDiagramSymbolsAndTextLines {

  @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

      Arrow ww = new Arrow("worked_with", "worked with");
     
      new Link(ww, hf, null, null, null, null, Direction.RIGHT);
      new Link(ww, rs);

      Context bladerunner = new Context("bladerunner", listOf(hf, rs, ww), true, new TextLine("Bladerunner"), null);

     
      Diagram d1 = new Diagram("my_diagram", listOf(bladerunner), null);
      return d1;
   
View Full Code Here

    Glyph[] g = new Glyph[9];
    for (int i = 0; i < g.length; i++) {
      g[i] = new Glyph(""+i, null, ""+i, null, null);
    }
 
    Context leftToRight = new Context(listOf(g[0], g[1], g[2]), true, new TextLine("Left to Right"), Layout.RIGHT);
    Context bottomToTop = new Context(listOf(g[3], g[4], g[5]), true, new TextLine("Bottom to Top"), Layout.UP);
    Context topToBottom = new Context(listOf(g[6], g[7], g[8]), true, new TextLine("Top to Bottom"), Layout.DOWN);
   
    Diagram d1 = new Diagram("my_diagram", listOf(leftToRight, bottomToTop, topToBottom), null);
   
    return d1;
   
View Full Code Here

TOP

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

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.