Package com.projity.graphic.configuration

Examples of com.projity.graphic.configuration.TexturedShape


  }
 
 
 
  private void setShape(GraphicNode node,Rectangle2D ref,double centerX,double centerY){
      TexturedShape texturedShape=findShape(node);
      if (texturedShape==null) return;
      GeneralPath shape=texturedShape.toGeneralPath(ref.getWidth(),ref.getHeight(),centerX-ref.getWidth()/2,centerY,null);
      node.setXbsShape(shape,centerX,centerY);
      Rectangle.union(bounds,network.scale(shape.getBounds()),bounds);
  }
View Full Code Here


        GraphicNode current=(GraphicNode)i.next();
        int currentCol=cache.getPertLevel(current)-1;
        if (currentCol<=col) row++;
        col=currentCol;
       
        TexturedShape texturedShape=findShape(current);
        if (texturedShape==null) continue;
        double centerX=origin.getX()+ref.getMaxX()*col+ref.getWidth()/2;
        double centerY=origin.getY()+ref.getMaxY()*row+ref.getHeight()/2;
        //System.out.println(centerX+"/"+centerY);
        GeneralPath shape=texturedShape.toGeneralPath(ref.getWidth(),ref.getHeight(),centerX-ref.getWidth()/2,centerY,null);
        current.setPertShape(shape,centerX,centerY);
        Rectangle cellBounds=network.scale(shape.getBounds());
        if (isEmpty())
        bounds.setBounds(cellBounds);
      else Rectangle.union(bounds,cellBounds,bounds);
View Full Code Here

TOP

Related Classes of com.projity.graphic.configuration.TexturedShape

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.