Examples of GraphicNode


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

          SpreadSheetColumnModel columnModel = (SpreadSheetColumnModel) getColumnModel();
          Field field = ((SpreadSheetModel) getModel()).getFieldInNonTranslatedColumn(col + 1);
          SpreadSheetModel model = (SpreadSheetModel) getModel();
          if (field.isNameField()) {
            // if (col == columnModel.getNameIndex()) {
            GraphicNode node = model.getNode(row);
            if (isOnIcon(e)) {
              if (model.getCellProperties(node).isCompositeIcon()) {
                finishCurrentOperations();
                selection.getRowSelection().clearSelection();
                boolean change = true;
                if (!node.isFetched()) // for subprojects
                  change = node.fetch();
                if (change)
                  model.changeCollapsedState(row);
                e.consume(); // prevent dbl click treatment below

                // because editor may have already been
View Full Code Here

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

    nodeMap.clear();
  }
 
  public void insertDependency(GraphicDependency dependency){
    //System.out.println("insertDependency");
      GraphicNode preValue=(GraphicNode)dependency.getPredecessor();
      GraphicNode sucValue=(GraphicNode)dependency.getSuccessor();
      Node pre=(Node)nodeMap.get(preValue);
      if (pre==null){
          pre=new Node(preValue);
          nodeMap.put(preValue,pre);
      }
View Full Code Here

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

      pre.addSuccessor(suc);
      suc.addPredecessor(pre);
  }
  public void removeDependency(GraphicDependency dependency){
    //System.out.println("removeDependency");
      GraphicNode preValue=(GraphicNode)dependency.getPredecessor();
      GraphicNode sucValue=(GraphicNode)dependency.getSuccessor();
      Node pre=(Node)nodeMap.get(preValue);
      Node suc=(Node)nodeMap.get(sucValue);
      if (pre==null||suc==null)return;
     
      pre.removeSuccessor(suc);
View Full Code Here

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

     
      Set predecessors=new HashSet();
      Set successors=new HashSet();
      for (Iterator i=nodeMap.values().iterator();i.hasNext();){
          Node node=(Node)i.next();
          GraphicNode gnode=(GraphicNode)node.getValue();
          //resetCachePertLevel(gnode);
          if (node.getPredecessors().size()==0) predecessors.add(node);
      }
     
      while (predecessors.size()>0){
View Full Code Here

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

 
 
  private void updateSuccessorsPertLevel(Set predecessors,Set successors){
      for (Iterator i=predecessors.iterator();i.hasNext();){
          Node pre=(Node)i.next();
          GraphicNode gpre=(GraphicNode)pre.getValue();
          for (Iterator j=pre.getSuccessors().iterator();j.hasNext();){
              Node suc=(Node)j.next();
              successors.add(suc);
            GraphicNode gsuc=(GraphicNode)suc.getValue();
            correctPertLevel(gpre,gsuc);
          }
      }
  }
View Full Code Here

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

    Point p = e.getPoint();
    int row = rowAtPoint(p);
    int col = columnAtPoint(p);
    Rectangle bounds = getCellRect(row, col, false);
    SpreadSheetModel model = (SpreadSheetModel) getModel();
    GraphicNode node = model.getNode(row);
    return NameCellComponent.isOnIcon(new Point((int) (p.getX() - bounds.getX()), (int) (p.getY() - bounds.getY())), bounds.getSize(), model
        .getCache().getLevel(node));
  }
View Full Code Here

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

    Point p = e.getPoint();
    int row = rowAtPoint(p);
    int col = columnAtPoint(p);
    Rectangle bounds = getCellRect(row, col, false);
    SpreadSheetModel model = (SpreadSheetModel) getModel();
    GraphicNode node = model.getNode(row);
    return NameCellComponent.isOnText(new Point((int) (p.getX() - bounds.getX()), (int) (p.getY() - bounds.getY())), bounds.getSize(), model
        .getCache().getLevel(node));
  }
View Full Code Here

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

  }
 
  public Object getObjectInRow(int row) {
    if (row == -1)
      return null;
    GraphicNode gnode = getNodeFromCacheRow(row);
    if (gnode == null)
      return null;
    return gnode.getNode().getImpl();
 
  }
View Full Code Here

Examples of org.apache.flex.compiler.internal.fxg.dom.GraphicNode

        this.extraTags = extraTags;
        graphicClass = new FXGSymbolClass();
        graphicClass.setPackageName(packageName);
        graphicClass.setClassName(className);
       
        GraphicNode node = (GraphicNode)fxgNode;
        DefineSpriteTag sprite = createDefineSpriteTag("Graphic");
        spriteStack.push(sprite);
       
        // Process mask (if present)
        if (node.mask != null)
            mask(node, sprite);

        // Handle 'scale 9' grid definition
        if (node.definesScaleGrid())
        {
            DefineScalingGridTag grid = createDefineScalingGridTag(node.getScalingGrid());
            grid.setCharacter(sprite);
            extraTags.put(sprite, grid);
            //sprite.scalingGrid = grid;
        }
View Full Code Here

Examples of org.apache.flex.compiler.internal.fxg.dom.GraphicNode

                if (group.children != null)
                    clipDepth = getSpriteDepth(parentSprite) + group.children.size();
            }
            else if (node instanceof GraphicNode)
            {
                GraphicNode graphic = (GraphicNode)node;
                if (graphic.children != null)
                    clipDepth = getSpriteDepth(parentSprite) + graphic.children.size();
            }
            // ... otherwise, just clip the shape itself.
            else
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.