Package java.awt.geom

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


    rombus.moveTo(x - 14, y);
    rombus.lineTo(x - 7, y - 5);
    rombus.lineTo(x, y);
    rombus.lineTo(x - 7, y + 5);
    rombus.closePath();
    rombus.transform(rotationTransform);
    Color fillColor = filled ? Color.BLACK : Color.WHITE;
    drawingContext.draw(rombus, fillColor);
  }

  /**
 
View Full Code Here


    GeneralPath arrow = new GeneralPath();
    arrow.moveTo(x - 9, y - 5);
    arrow.lineTo(x, y);
    arrow.lineTo(x - 9, y + 5);
    arrow.closePath();
    arrow.transform(rotationTransform);
    drawingContext.draw(arrow, Color.WHITE);
  }
}
View Full Code Here

    GeneralPath arrow = new GeneralPath();
    arrow.moveTo(x - 7, y - 3);
    arrow.lineTo(x, y);
    arrow.lineTo(x - 7, y + 3);
    arrow.closePath();
    arrow.transform(rotationTransform);
    drawingContext.draw(arrow, Color.BLACK);
  }
}
View Full Code Here

    GeneralPath arrow = new GeneralPath();
    arrow.moveTo(x - 9, y - 5);
    arrow.lineTo(x, y);
    arrow.lineTo(x - 9, y + 5);
    arrow.closePath();
    arrow.transform(rotationTransform);
    drawingContext.draw(arrow, Color.WHITE);
  }
}
View Full Code Here

    rombus.moveTo(x - 14, y);
    rombus.lineTo(x - 7, y - 5);
    rombus.lineTo(x, y);
    rombus.lineTo(x - 7, y + 5);
    rombus.closePath();
    rombus.transform(rotationTransform);
    Color fillColor = filled ? Color.BLACK : Color.WHITE;
    drawingContext.draw(rombus, fillColor);
  }

  /**
 
View Full Code Here

        // 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.
            // Leaving x=0 gives the best results.
            // see Chapter 6 of http://partners.adobe.com/public/developer/en/font/5015.Type1_Supp.pdf
            // and the definition of the seac-Command in http://partners.adobe.com/public/developer/en/font/T1_SPEC.PDF
            final AffineTransform xformA2 = AffineTransform.getTranslateInstance(0, y);
View Full Code Here

            // Best x can�t be calcualted cause we don�t know the left sidebearing of the base character.
            // Leaving x=0 gives the best results.
            // see Chapter 6 of http://partners.adobe.com/public/developer/en/font/5015.Type1_Supp.pdf
            // and the definition of the seac-Command in http://partners.adobe.com/public/developer/en/font/T1_SPEC.PDF
            final AffineTransform xformA2 = AffineTransform.getTranslateInstance(0, y);
            pathA.transform(xformA2); //<-- goht net fürs 'ä'
        } catch (NoninvertibleTransformException nte) {
            pathA.transform(AffineTransform.getTranslateInstance(0, y));
        }

        GeneralPath pathB = getOutline(b, getWidth(b, null));
View Full Code Here

            // see Chapter 6 of http://partners.adobe.com/public/developer/en/font/5015.Type1_Supp.pdf
            // and the definition of the seac-Command in http://partners.adobe.com/public/developer/en/font/T1_SPEC.PDF
            final AffineTransform xformA2 = AffineTransform.getTranslateInstance(0, y);
            pathA.transform(xformA2); //<-- goht net fürs 'ä'
        } catch (NoninvertibleTransformException nte) {
            pathA.transform(AffineTransform.getTranslateInstance(0, y));
        }

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

        // don't manipulate the original glyph
        pathB = (GeneralPath) pathB.clone();

        try {
            AffineTransform xformB = at.createInverse();
            pathB.transform(xformB);
        } catch (NoninvertibleTransformException nte) {
            // ignore
        }

        gp.append(pathB, false);
View Full Code Here

        FlPoint curpoint = new FlPoint();

        sloc = 0;
        parse(cs, gp, curpoint, advance);

        gp.transform(at);
        return gp;
    }

    /**
     * Get a glyph outline by name
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.