Package org.uengine.processpublisher.graph

Examples of org.uengine.processpublisher.graph.GraphActivity


        //���
        sb.append("\n<tr>");
       
        for (int k = 0; k < graphXYListTemp.size(); k++)
        {
          GraphActivity graphAct = graphXYListTemp.get(k);
         
          for (int pointIndexX = k + 1; pointIndexX < graphAct.getSLPoint().pointIndexX; pointIndexX++)
          {
            sb.append("\n\t<td height=\""+distanceY+"\"></td>");
          }
         
          sb.append("\n\t<td height=\""+distanceY+"\" valign=\"top\" align='center'>");
View Full Code Here


  public Vector OrderByPointY(Vector<GraphActivity> v) {
    Hashtable ht = new Hashtable();
    int vSize = v.size();
   
    for (int i=0; i <vSize ; i++) {
      GraphActivity ga= v.get(i);
      Vector alignV;
      int y = (ga.getSLPoint()).pointY;
     
      if (ht.containsKey(new Integer(y))) {
        alignV = (Vector)ht.get(new Integer(y));
      } else {
        alignV = new Vector();
      }
      alignV.add(ga);
      ht.put(new Integer(y),alignV);
    }
   
    int i=0, y=0;
    v.removeAllElements();
   
    while (true) {
      if(ht.containsKey(new Integer(i))){
        Vector alignV = (Vector) ht.get(new Integer(i));
       
        for (int k=0; k < alignV.size();k++) {
          GraphActivity ga = (GraphActivity)alignV.get(k);
          v.add(ga);
          y++;
        }
      }
      if ((y) == vSize) break;
View Full Code Here

TOP

Related Classes of org.uengine.processpublisher.graph.GraphActivity

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.