Examples of GraphicNode


Examples of com.projity.pm.graphic.model.cache.GraphicNode

//
//
//    }

    private void removeVoids(List list){
      GraphicNode current;
        for (ListIterator i=list.listIterator();i.hasNext();){
            current=(GraphicNode)i.next();
            if (current.isVoid()){
              i.remove();
            }
        }
    }
View Full Code Here

Examples of com.projity.pm.graphic.model.cache.GraphicNode

              i.remove();
            }
        }
    }
    private void removeEndVoids(List list){
      GraphicNode current;
        for (ListIterator i=list.listIterator(list.size());i.hasPrevious();){
            current=(GraphicNode)i.previous();
            if (current.isVoid()){
              i.remove();
            }else break;
        }
    }
View Full Code Here

Examples of com.projity.pm.graphic.model.cache.GraphicNode

            }else break;
        }
    }

    private void removeSummaries(List list){
      GraphicNode current;
        for (ListIterator i=list.listIterator();i.hasNext();){
            current=(GraphicNode)i.next();
            if (current.isSummary()){
              i.remove();
            }
        }
    }
View Full Code Here

Examples of com.projity.pm.graphic.model.cache.GraphicNode

              i.remove();
            }
        }
    }
    private void removeAssignments(List list){
      GraphicNode current;
        for (ListIterator i=list.listIterator();i.hasNext();){
            current=(GraphicNode)i.next();
            if (current.isAssignment()){
              i.remove();
            }
        }
    }
View Full Code Here

Examples of com.projity.pm.graphic.model.cache.GraphicNode

            }
        }
    }
    private Map<GraphicNode,List<GraphicNode>> extractAssignments(List list){
      Map<GraphicNode,List<GraphicNode>> map=new HashMap<GraphicNode, List<GraphicNode>>();
      GraphicNode current,last;
      Stack<GraphicNode> path=new Stack<GraphicNode>();
        for (ListIterator i=list.listIterator();i.hasNext();){
            current=(GraphicNode)i.next();
            if (current.getLevel()==1){
              path.clear();
              path.push(current);
              continue;
            }
            while ((last=path.peek()).getLevel()>=current.getLevel()) path.pop();
            if (current.isAssignment()){
              GraphicNode task=path.peek();
              List<GraphicNode> ass=map.get(task);
              if (ass==null){
                ass=new LinkedList<GraphicNode>();
                map.put(task, ass);
              }
View Full Code Here

Examples of com.projity.pm.graphic.model.cache.GraphicNode

            path.push(current);
        }
        return map;
    }
    private void recoverAssignments(List list,Map<GraphicNode,List<GraphicNode>> map){
      GraphicNode current=null;
        for (ListIterator i=list.listIterator();i.hasNext();){
            current=(GraphicNode)i.next();
            if (map.containsKey(current)){
              List<GraphicNode> ass=map.get(current);
              for (GraphicNode a : ass) {
View Full Code Here

Examples of com.projity.pm.graphic.model.cache.GraphicNode

      private GraphicNodeComparator(NodeSorter comparator,NodeTransformer composition){
          this.comparator=comparator;
          this.composition=composition;
      }
      public int compare(Object o1, Object o2) {
        GraphicNode n1=(GraphicNode)o1;
        GraphicNode n2=(GraphicNode)o2;
        if (n1==n2) return 0;
        else if (n1.isVoid()) return 1;
        else if (n2.isVoid()) return -1;
        if (composition==null)
          return comparator.compare(n1.getNode(),n2.getNode());
        else return comparator.compare(composition.evaluate(n1.getNode()),composition.evaluate(n2.getNode()));
      }
View Full Code Here

Examples of com.projity.pm.graphic.model.cache.GraphicNode

        dependency=(GraphicDependency)i.next();
        paintLink(g2,dependency);
      }
     
     
      GraphicNode node;
      Rectangle bounds;
      for (ListIterator i=graphInfo.getCache().getIterator();i.hasNext();){
        node=(GraphicNode)i.next();
        bounds=getBounds(node);
        if (bounds==null) continue;
View Full Code Here

Examples of com.projity.pm.graphic.model.cache.GraphicNode

  }

 
    protected boolean switchOnLinkCreation(double x, double y){
      if (state!=BAR_SELECTION) return false;
    GraphicNode node=(GraphicNode)selected;
    GeneralPath shape=getShape(node);
    if (shape==null) return false;
    return (node.getNode().getImpl() instanceof HasDependencies&&!shape.contains(x,y));
    }
View Full Code Here

Examples of com.projity.pm.graphic.model.cache.GraphicNode

   
    public void execute(Object arg0) {
      format = (BarFormat)arg0;
     
      //if (format.getMiddle()!=null){
          GraphicNode from=dependency.getPredecessor();
          GraphicNode to=dependency.getSuccessor();
//          Rectangle2D fromBounds=scale(getBounds(from));
//          Rectangle2D toBounds=scale(getBounds(to));
          double[] fromPoints=new double[4];
          double[] toPoints=new double[4];
          updateLinkConnections(from,fromPoints);
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.