Package java.awt.geom

Examples of java.awt.geom.Area.clone()


      newArea=new Area( generalPaths[ i ] );

      //---if this is not the first area, subtract cumulative area
      if( i > 0 )
      {
        areas[ i ]=(Area) newArea.clone();
        areas[ i ].subtract( totalArea );

        totalArea=newArea;
      }
      else
View Full Code Here


                if(BBox!=null){
                    Area currentClip=gs.getClippingShape();

                    //store so we restore in EMC
                    if(currentClip!=null)
                        layerClips.put(layerLevel,currentClip.clone());

                    Area clip=new Area(new Rectangle2D.Float(BBox[0], BBox[1], -gs.CTM[2][0]+(BBox[2]-BBox[0]), -gs.CTM[2][1]+(BBox[3]-BBox[1])));
                    gs.setClippingShape(clip);

                    current.drawClip(gs,clip,true);
View Full Code Here

            lastClip=clip;

            if(clip==null){
                clips.addElement(null);
            }else{
                clips.addElement((Area) clip.clone());
            }

            x_coord=RenderUtils.checkSize(x_coord,currentItem);
            y_coord=RenderUtils.checkSize(y_coord,currentItem);
            x_coord[currentItem]=currentGraphicsState.x;
View Full Code Here

            RectangularShape rectangle = (RectangularShape) shape;
            result = (Shape) rectangle.clone();
        }
        else if (shape instanceof Area) {
            Area area = (Area) shape;
            result = (Shape) area.clone();
        }
        else if (shape instanceof GeneralPath) {
            GeneralPath path = (GeneralPath) shape;
            result = (Shape) path.clone();
        }
View Full Code Here

            RectangularShape rectangle = (RectangularShape) shape;
            result = (Shape) rectangle.clone();
        }
        else if (shape instanceof Area) {
            Area area = (Area) shape;
            result = (Shape) area.clone();
        }
        else if (shape instanceof GeneralPath) {
            GeneralPath path = (GeneralPath) shape;
            result = (Shape) path.clone();
        }
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.