Package java.awt.geom

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


                    glyphPath.transform(atScale);
                }
                glyphs.put(gid, glyphPath);
            }
        }
        return glyphPath != null ? (GeneralPath) glyphPath.clone() : null; // todo: expensive
    }

    @Override
    public void dispose()
    {
View Full Code Here


    private void buildAccentChar(float x, float y, char a, char b,
            GeneralPath gp) {
        // get the outline of the accent
        GeneralPath pathA = getOutline(a, getWidth(a, null));
        // don't manipulate the original glyph
        pathA = (GeneralPath) pathA.clone();
        try {
            // undo the effect of the transform applied in read
            final AffineTransform xformA = at.createInverse();
            pathA.transform(xformA);
            // Best x can�t be calcualted cause we don�t know the left sidebearing of the base character.
View Full Code Here

            pathA.transform(AffineTransform.getTranslateInstance(0, y));
        }

        GeneralPath pathB = getOutline(b, getWidth(b, null));
        // don't manipulate the original glyph
        pathB = (GeneralPath) pathB.clone();

        try {
            AffineTransform xformB = at.createInverse();
            pathB.transform(xformB);
        } catch (NoninvertibleTransformException nte) {
View Full Code Here

            Area area = (Area) shape;
            result = (Shape) area.clone();
        }
        else if (shape instanceof GeneralPath) {
            GeneralPath path = (GeneralPath) shape;
            result = (Shape) path.clone();
        }
        return result;
    }

    /**
 
View Full Code Here

            Area area = (Area) shape;
            result = (Shape) area.clone();
        }
        else if (shape instanceof GeneralPath) {
            GeneralPath path = (GeneralPath) shape;
            result = (Shape) path.clone();
        }
        return result;
    }

    /**
 
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.