Examples of Arrow


Examples of org.kite9.diagram.adl.Arrow

 
  @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

Examples of org.kite9.diagram.adl.Arrow

  @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

Examples of org.kite9.diagram.adl.Arrow

  }
 
  @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

Examples of org.kite9.diagram.adl.Arrow

    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

Examples of org.kite9.diagram.adl.Arrow

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

Examples of org.kite9.diagram.adl.Arrow

  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

Examples of org.kite9.diagram.adl.Arrow

        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

Examples of org.spout.vanilla.component.entity.substance.projectile.Arrow

      // - potions, exp. bottles, monster eggs
      // - armor,

      if (material.equals(VanillaMaterials.ARROW)) {
        shootEffect = GeneralEffects.RANDOM_BOW;
        toLaunch = new Arrow();
      } else if (material.equals(VanillaMaterials.EGG)) {
        shootEffect = GeneralEffects.RANDOM_BOW;
        //TODO: Spawn
      } else if (material.equals(VanillaMaterials.SNOWBALL)) {
        shootEffect = GeneralEffects.RANDOM_BOW;
View Full Code Here

Examples of wyvern.tools.types.extensions.Arrow

import wyvern.tools.types.extensions.Str;
import wyvern.tools.types.extensions.Unit;

public class TypeUtils {
  public static Arrow arrow(Type t1, Type t2) {
    return new Arrow(t1, t2);
  }
View Full Code Here

Examples of wyvern.tools.types.extensions.Arrow

public class TrivDSLParser implements ExtParser {
  @Override
  public TypedAST parse(ParseBuffer input) {
    New newv = new New(new HashMap<>(), null);
    TypedAST dbody = new IntegerConstant(Integer.parseInt(input.getSrcString().trim()));
    newv.setBody(new DeclSequence(Arrays.asList(new DefDeclaration("getValue", new Arrow(Unit.getInstance(), Int.getInstance()), new ArrayList<>(), dbody, false))));
    return newv;
  }
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.