Examples of concatenate()


Examples of java.awt.geom.AffineTransform.concatenate()

        of the current transformation matrix (ctm) and the text matrix (tm).
      */
      AffineTransform trm = topDown
        ? new AffineTransform(1, 0, 0, -1, 0, scanner.getCanvasSize().getHeight())
        : new AffineTransform();
      trm.concatenate(ctm);
      trm.concatenate(tm);
      return trm.transform(point, null);
    }

    /**
 
View Full Code Here

Examples of java.awt.geom.AffineTransform.concatenate()

      */
      AffineTransform trm = topDown
        ? new AffineTransform(1, 0, 0, -1, 0, scanner.getCanvasSize().getHeight())
        : new AffineTransform();
      trm.concatenate(ctm);
      trm.concatenate(tm);
      return trm.transform(point, null);
    }

    /**
      Resolves the given user-space point to its equivalent device-space one [PDF:1.6:4.2.3],
View Full Code Here

Examples of java.awt.geom.AffineTransform.concatenate()

                         * and then rotate the text before computing the bounds. The scale results in some whitespace around
                         * the unrotated top and bottom of the text that normally wouldn't be present if unscaled, but
                         * is added by the standard Excel autosize.
                         */
                        AffineTransform trans = new AffineTransform();
                        trans.concatenate(AffineTransform.getRotateInstance(style.getRotation()*2.0*Math.PI/360.0));
                        trans.concatenate(
                        AffineTransform.getScaleInstance(1, fontHeightMultiple)
                        );
                        width = Math.max(width, ((layout.getOutline(trans).getBounds().getWidth() / colspan) / defaultCharWidth) + cell.getCellStyle().getIndention());
                    } else {
View Full Code Here

Examples of java.awt.geom.AffineTransform.concatenate()

                         * the unrotated top and bottom of the text that normally wouldn't be present if unscaled, but
                         * is added by the standard Excel autosize.
                         */
                        AffineTransform trans = new AffineTransform();
                        trans.concatenate(AffineTransform.getRotateInstance(style.getRotation()*2.0*Math.PI/360.0));
                        trans.concatenate(
                        AffineTransform.getScaleInstance(1, fontHeightMultiple)
                        );
                        width = Math.max(width, ((layout.getOutline(trans).getBounds().getWidth() / colspan) / defaultCharWidth) + cell.getCellStyle().getIndention());
                    } else {
                        width = Math.max(width, ((layout.getBounds().getWidth() / colspan) / defaultCharWidth) + cell.getCellStyle().getIndention());
View Full Code Here

Examples of java.awt.geom.AffineTransform.concatenate()

                         * and then rotate the text before computing the bounds. The scale results in some whitespace around
                         * the unrotated top and bottom of the text that normally wouldn't be present if unscaled, but
                         * is added by the standard Excel autosize.
                         */
                        AffineTransform trans = new AffineTransform();
                        trans.concatenate(AffineTransform.getRotateInstance(style.getRotation()*2.0*Math.PI/360.0));
                        trans.concatenate(
                        AffineTransform.getScaleInstance(1, fontHeightMultiple)
                        );
                        width = Math.max(width, ((layout.getOutline(trans).getBounds().getWidth() / colspan) / defaultCharWidth) + cell.getCellStyle().getIndention());
                    } else {
View Full Code Here

Examples of java.awt.geom.AffineTransform.concatenate()

                         * the unrotated top and bottom of the text that normally wouldn't be present if unscaled, but
                         * is added by the standard Excel autosize.
                         */
                        AffineTransform trans = new AffineTransform();
                        trans.concatenate(AffineTransform.getRotateInstance(style.getRotation()*2.0*Math.PI/360.0));
                        trans.concatenate(
                        AffineTransform.getScaleInstance(1, fontHeightMultiple)
                        );
                        width = Math.max(width, ((layout.getOutline(trans).getBounds().getWidth() / colspan) / defaultCharWidth) + cell.getCellStyle().getIndention());
                    } else {
                        width = Math.max(width, ((layout.getBounds().getWidth() / colspan) / defaultCharWidth) + cell.getCellStyle().getIndention());
View Full Code Here

Examples of java.awt.geom.AffineTransform.concatenate()

        AffineTransform s = AffineTransform.getScaleInstance(scale, scale);
        AffineTransform r = AffineTransform.getRotateInstance(angle);
        AffineTransform t = AffineTransform.getTranslateInstance(x, y);

        AffineTransform at = t;
        at.concatenate(r);
        at.concatenate(s);

        return at;
    }
View Full Code Here

Examples of java.awt.geom.AffineTransform.concatenate()

        AffineTransform r = AffineTransform.getRotateInstance(angle);
        AffineTransform t = AffineTransform.getTranslateInstance(x, y);

        AffineTransform at = t;
        at.concatenate(r);
        at.concatenate(s);

        return at;
    }

    public static void main(String[] args) {
View Full Code Here

Examples of java.awt.geom.AffineTransform.concatenate()

    private static AffineTransform compose(
        AffineTransform left, AffineTransform right
    ) {
        AffineTransform result = (AffineTransform) left.clone();
        result.concatenate(right);
        return result;
    }
}
View Full Code Here

Examples of java.awt.geom.AffineTransform.concatenate()

                int level = 0;
                while(scale <= 1/(double) MIP_SCALE_RATIO) {
                    scale *= MIP_SCALE_RATIO;
                    level++;
                    transform = new AffineTransform(transform);
                    transform.concatenate(AffineTransform.getScaleInstance(MIP_SCALE_RATIO, MIP_SCALE_RATIO));
                }
                image = (PlanarImage) pyramid.getImage(level);
            }

            if (!transform.isIdentity()) {
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.