Package java.awt.geom

Examples of java.awt.geom.Path2D.transform()


            }
        }
        if (shape instanceof Path2D) {
            final Path2D path = (Path2D) shape;
            if (allowOverwrite) {
                path.transform(transform);
            } else {
                shape = path.createTransformedShape(transform);
            }
        } else if (shape instanceof Area) {
            final Area area = (Area) shape;
View Full Code Here


            // only close the path if its a full 2d path. If its just the exterior line we leave it open
            path.closePath();
        }
       
        // rotate and translate our border to the correct side.
        path.transform(AffineTransform.getRotateInstance(rotation, 0, 0));
        path.transform(AffineTransform.getTranslateInstance(bounds.x + xOffset, bounds.y + yOffset));
       
        return path;
    }
   
View Full Code Here

            path.closePath();
        }
       
        // rotate and translate our border to the correct side.
        path.transform(AffineTransform.getRotateInstance(rotation, 0, 0));
        path.transform(AffineTransform.getTranslateInstance(bounds.x + xOffset, bounds.y + yOffset));
       
        return path;
    }
   
    /**
 
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.