Examples of RouteRenderingInformation


Examples of org.kite9.diagram.position.RouteRenderingInformation

      public String[] rowify(Object o) {
          if (o instanceof Connection ) {
            String fromid = ((Connection)o).getFrom().getID();
            String toid = ((Connection)o).getTo().getID();
           
            RouteRenderingInformation ri = (RouteRenderingInformation) ((Connection)o).getRenderingInformation();
            Direction lastD = null;
            Dimension2D lastP= null;
           
            for (int i = 0; i < ri.size(); i++) {
            Dimension2D pos = ri.getWaypoint(i);
            if (ri.isHop(i)) {
              crosses ++;
            }
           
            Direction currentD = null;
            if (lastP!=null) {
View Full Code Here

Examples of org.kite9.diagram.position.RouteRenderingInformation

              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

Examples of org.kite9.diagram.position.RouteRenderingInformation

    }
  }
 
  public RouteRenderingInformation getRenderingInformation() {
    if (renderingInformation==null) {
      renderingInformation = new RouteRenderingInformation();
    }
   
    return (RouteRenderingInformation) renderingInformation;
  }
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.