Examples of concatenate()


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

        AffineTransform result = new AffineTransform();
        result.getMatrix(mx);
        mx[3] = -1;
        mx[5] = _pageHeight;
        result = new AffineTransform(mx);
        result.concatenate(current);
        return result;
    }
   
    public void drawString(String s, float x, float y, JustificationInfo info) {
        if (s.length() == 0)
View Full Code Here

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

            AffineTransform toCenter = AffineTransform.getTranslateInstance(center.getX(), center.getY());
            AffineTransform toBorder = AffineTransform.getTranslateInstance(45.0, -6.0);
            AffineTransform toCircle = AffineTransform.getRotateInstance(-i * fixedAngle, center.getX(), center.getY());
           
            AffineTransform toWheel = new AffineTransform();
            toWheel.concatenate(toCenter);
            toWheel.concatenate(toBorder);
           
            primitive.transform(toWheel);
            primitive.transform(toCircle);
           
View Full Code Here

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

            AffineTransform toBorder = AffineTransform.getTranslateInstance(45.0, -6.0);
            AffineTransform toCircle = AffineTransform.getRotateInstance(-i * fixedAngle, center.getX(), center.getY());
           
            AffineTransform toWheel = new AffineTransform();
            toWheel.concatenate(toCenter);
            toWheel.concatenate(toBorder);
           
            primitive.transform(toWheel);
            primitive.transform(toCircle);
           
            ticker[(int) i] = primitive;
View Full Code Here

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

    setStrokePaint();

    final AffineTransform at = getTransform();
    final AffineTransform at2 = getTransform();
    at2.translate(x, y);
    at2.concatenate(font.getTransform());
    setTransform(at2);
    final AffineTransform inverse = this.normalizeMatrix();
    final AffineTransform flipper = FLIP_TRANSFORM;
    inverse.concatenate(flipper);
    final double[] mx = new double[6];
View Full Code Here

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

    AffineTransform result = AffineTransform.getTranslateInstance(0, 0);
    result.getMatrix(mx);
    mx[3] = -1;
    mx[5] = height;
    result = new AffineTransform(mx);
    result.concatenate(transform);
    return result;
  }


View Full Code Here

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

    public void render(Graphics g, int width, int height,
                       DrawingAttributes appDA) {

        AffineTransform transform = AffineTransform.getScaleInstance((double) width / 100,
                (double) height / 100);
        transform.concatenate(baseTransform);

        // Handle clip area in Graphics, first
        Shape clip = getClip();
        if (clip != null) {
            g.setClip(new GeneralPath(clip).createTransformedShape(transform));
View Full Code Here

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

                AffineTransform at = tlc.getBaselineTransform();
                if (at != null) {
                    AffineTransform tx = AffineTransform.getTranslateInstance
                        (pt.x - at.getTranslateX(), pt.y - at.getTranslateY());
                    tx.concatenate(at);
                    r = tx.createTransformedShape(r).getBounds2D();
                } else {
                    r.setRect(r.getMinX() + pt.x, r.getMinY() + pt.y,
                              r.getWidth(), r.getHeight());
                }
View Full Code Here

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

        trans = AffineTransform.getScaleInstance(smallest, smallest);
        double width = smallest * img.getWidth();
        double height = smallest * img.getHeight();
        double tx = (width < iconSize ? (0d + iconSize - width) / 2 : 0d);
        double ty = (height < iconSize ? (0d + iconSize - height) / 2 : 0d);
        trans.concatenate(AffineTransform.getTranslateInstance(tx, ty));
      } else {
        double tx = (img.getWidth() < iconSize ? (0d + iconSize - img.getWidth()) / 2 : 0d);
        double ty = (img.getHeight() < iconSize ? (0d + iconSize - img.getHeight()) / 2 : 0d);
        trans = AffineTransform.getTranslateInstance(tx, ty);
      }
View Full Code Here

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

          trans = AffineTransform.getScaleInstance(smallest, smallest);
          double width = smallest * img.getWidth();
          double height = smallest * img.getHeight();
          double tx = (width < iconSize ? (0d + iconSize - width) / 2 : 0d);
          double ty = (height < iconSize ? (0d + iconSize - height) / 2 : 0d);
          trans.concatenate(AffineTransform.getTranslateInstance(tx, ty));
        } else {
          double tx = (img.getWidth() < iconSize ? (0d + iconSize - img.getWidth()) / 2 : 0d);
          double ty = (img.getHeight() < iconSize ? (0d + iconSize - img.getHeight()) / 2 : 0d);
          trans = AffineTransform.getTranslateInstance(tx, ty);
        }
View Full Code Here

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

          {
            /*
              NOTE: The text rendering matrix is recomputed before each glyph is painted
              during a text-showing operation.
            */
            AffineTransform trm = (AffineTransform)ctm.clone(); trm.concatenate(tm);
            float charHeight = font.getHeight(textChar,fontSize);
            Rectangle2D charBox = new Rectangle2D.Double(
              trm.getTranslateX(),
              contextHeight - trm.getTranslateY() - font.getAscent(fontSize) * tm.getScaleY(),
              charWidth * tm.getScaleX(),
 
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.