Package org.kite9.diagram.position

Examples of org.kite9.diagram.position.RectangleRenderingInformation


  @Kite9Item
  public Diagram example_1_11_MethodCallDiagramMethods(DiagramBuilder db) throws Exception {
    Method m = LibraryFacade.class.getDeclaredMethod("borrow", int.class, int.class);
    final String packageLimit = Book.class.getPackage().getName();
    MethodBasedSequenceDiagramDataProvider mbsddp = createMethodProvider(db, m, packageLimit);
    NoLayoutSequenceDiagramWizard format = new NoLayoutSequenceDiagramWizard(db);
    format.write(mbsddp, db.getDiagram());
    return db.getDiagram();
  }
View Full Code Here


  @Kite9Item
  public Diagram example_1_12_MethodCallDiagramClasses(DiagramBuilder db) throws Exception {
    Method m = LibraryFacade.class.getDeclaredMethod("borrow", int.class, int.class);
    final String packageLimit = Book.class.getPackage().getName();
    ClassBasedSequenceDiagramDataProvider mbsddp = createClassProvider(db, m, packageLimit);
    NoLayoutSequenceDiagramWizard format = new NoLayoutSequenceDiagramWizard(db);
    format.write(mbsddp, db.getDiagram());
    db.withKeyText("BorrowBook", "Exception routes are ommitted for clarity");
    return db.getDiagram();
  }
View Full Code Here

              : 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);
            if (!arrowPreExists) {
              ii.returnConnection(arrowEl, fromEl, null, null, fromLabelTL, true, direction);
View Full Code Here

    return "[A:"+getID()+"]";
  }
 
  public RenderingInformation getRenderingInformation() {
    if (renderingInformation==null)
      renderingInformation = new RectangleRenderingInformation();
   
    return renderingInformation;
  }
View Full Code Here

    return "[G:"+getID()+"]";
  }

  public RenderingInformation getRenderingInformation() {
    if (renderingInformation==null)
      renderingInformation = new RectangleRenderingInformation();
   
    return renderingInformation;
  }
View Full Code Here

    this.symbols = symbols;
  }

  public RenderingInformation getRenderingInformation() {
    if (renderingInformation == null) {
      renderingInformation = new RectangleRenderingInformation();
    }
   
    return renderingInformation;
  }
View Full Code Here

    this.parent = de;
  }
 
  public RenderingInformation getRenderingInformation() {
    if (renderingInformation == null) {
      renderingInformation = new RectangleRenderingInformation();
    }
   
    return renderingInformation;
  }
View Full Code Here

            int connections = (o instanceof Connected) ? ((Connected)o).getLinks().size() : 0;
         
            String id = (o instanceof IdentifiableDiagramElement) ? ((IdentifiableDiagramElement)o).getID() : o.toString().replace("\n", "");
            RenderingInformation ri = ((PositionableDiagramElement)o).getRenderingInformation();
            if (ri instanceof RectangleRenderingInformation) {
              RectangleRenderingInformation rri = (RectangleRenderingInformation) ri;
              double width = rri.getSize().getWidth();
              double height = rri.getSize().getHeight();
              return new String[] { id, ""+width, ""+height, ""+connections };
            } else {
              RouteRenderingInformation rri = (RouteRenderingInformation) ri;
              Dimension2D bounds = rri.getBoundingSize();
              double width = bounds.getWidth();
              double height = bounds.getHeight();
              return new String[] { id, ""+width, ""+height, ""+connections };             
            }
       
View Full Code Here

    return parent;
  }

  public RenderingInformation getRenderingInformation() {
    if (renderingInformation == null) {
      renderingInformation = new RectangleRenderingInformation();
    }
   
    return renderingInformation;
  }
View Full Code Here

    return label;
  }

  public RectangleRenderingInformation getRenderingInformation() {
    if (renderingInformation==null) {
      renderingInformation = new RectangleRenderingInformation();
    }
   
    return (RectangleRenderingInformation) renderingInformation;
  }
View Full Code Here

TOP

Related Classes of org.kite9.diagram.position.RectangleRenderingInformation

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.