Package org.kite9.diagram.adl

Examples of org.kite9.diagram.adl.Arrow


  @Kite9Item
  public Diagram simpleDiagramWithArrow() {
    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);
    new Link(ww, rs);
   
    Diagram d1 = new Diagram("my_diagram", listOf(hf, rs, ww), null);
View Full Code Here


 
  @Kite9Item
  public Diagram simpleDiagramWithArrow2() {
    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);
View Full Code Here

 
  @Kite9Item
  public Diagram simpleDiagramWithDirectedArrow() {
    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, null, null, null, null, Direction.RIGHT);
    new Link(ww, rs);
   
    Diagram d1 = new Diagram("my_diagram", listOf(hf, rs, ww), null);
View Full Code Here

  @Kite9Item
  public Diagram contextExample() {
      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, null, null, null, null, Direction.RIGHT);
      new Link(ww, rs);

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

  }
 
  @Kite9Item
  public Diagram hiddenContext() throws IOException {
      Glyph rs = new Glyph("ridley_scott", "Director", "Ridley Scott", null, null);
      Arrow directed = new Arrow("directed");
     
      new Link(directed, rs);

      Glyph bladerunner = new Glyph("film", "Bladerunner", null, null);
      Glyph glad = new Glyph("film", "Gladiator", null, null);
View Full Code Here

    Glyph g1 = new Glyph("class", "Test Class", createList(new TextLine(
        "Here is a line of text", createList(kh.createSymbol(
            "Baphomet", "B")))), createList(kh.createSymbol(
        "Public", "P")));

    Arrow a1 = new Arrow("leaver");

    // adding problem with references.
    Glyph g2 = new Glyph("ref1", "", "Some Item A", null, null);
    Glyph g3 = new Glyph("ref1", "", "Some Item B", null, null);
View Full Code Here

import org.kite9.java.examples.library.usecases.Uses;

public class Examples {

  private void addLink(Glyph collection, Glyph list, String string, Collection<Contained> top) {
    Arrow a = new Arrow(string);
    new Link(a, collection, null, null, LinkEndStyle.ARROW, null, Direction.UP);
    new Link(list, a, null, null, null, null, Direction.UP);
    top.add(a);
  }
View Full Code Here

  db.withClasses(SomeClass.class)
    .show(db.asConnectedGlyphs())
    .withInterfaces(null, false)
    .show(db.asConnectedGlyphs());
 
  Arrow a = (Arrow) db.getRelationshipElement(SomeClass.class, JavaRelationships.IMPLEMENTS);
  Glyph sc = (Glyph) db.getNounElement(SomeClass.class);
  Glyph si = (Glyph) db.getNounElement(SomeInterface.class);
 
  Link top = (Link) a.getConnectionTo(si);
  Link bottom = (Link) a.getConnectionTo(sc);
 
  top.setDrawDirection(Direction.RIGHT);
  bottom.setDrawDirection(Direction.DOWN);
 
  top.setToLabel(new TextLine("some text here"));
View Full Code Here

        DiagramElement out = representing == null ? null : contents
            .get(representing);
        if (out == null) {
          within = within == null ? getDiagram() : within;
          String id = idHelper.getId(representing);
          out = new Arrow(id, label);
          contents.put(representing, out);
          within.getContents().add((Arrow) out);
          ((Arrow) out).setContainer(within);
        }
        return out;
View Full Code Here

  @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

TOP

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

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.