Examples of concatenate()


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

        AffineTransform transform = AffineTransform.getTranslateInstance(x, y);
        if (scale != 1) {
            float scaleX = (float) Math.floor(scale * icon.getWidth()) / (float) icon.getWidth();
            float scaleY = (float) Math.floor(scale * icon.getHeight()) / (float) icon.getHeight();
            transform.concatenate(AffineTransform.getScaleInstance(scaleX, scaleY));
        }

        // Render the scaled button image.
        //
        // We use Java2D for the scaling, unless we happen to be on Mac OSX
View Full Code Here

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

            h / (double) viewSize.height
        );
        AffineTransform trans = AffineTransform.getTranslateInstance(
            x + insets.left, y + insets.top
        );
        trans.concatenate(scale);
        return trans;
    }

    // Enable and disable according to whether scrolling is possible.
    private void updateEnabled() {
View Full Code Here

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

            g2d.setColor(c.getForeground());

            AffineTransform trans = new AffineTransform();
            switch (orient) {
                case Up:
                    trans.concatenate(oldTransform);
                    trans.translate(x, y - 2);
                    trans.rotate(
                        Math.PI * 3 / 2, height / 2, width / 2);
                    g2d.setTransform(trans);
                    g2d.drawGlyphVector(
View Full Code Here

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

                        (height - width) / 2,
                        (width - height) / 2 + ascent
                    );
                    break;
                case Down:
                    trans.concatenate(oldTransform);
                    trans.translate(x, y + 2);
                    trans.rotate(
                        Math.PI / 2, height / 2, width / 2
                    );
                    g2d.setTransform(trans);
View Full Code Here

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

        AffineTransform scale = new AffineTransform(scale_x, 0.0, 0.0, scale_y,
                                                    0.0, 0.0);

        RenderContext RC = (RenderContext)renderContext.clone();
        AffineTransform usr2dev = RC.getTransform();
        usr2dev.concatenate(scale);
  RC.setTransform(usr2dev);
  return RC;
    }

    /**
 
View Full Code Here

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

        // object here as all modifications are contained in the opArgList.

        // Set Graphics2D state variables according to the RenderContext
        if(!usr2dev.isIdentity()) {
            AffineTransform tf = getTransform();
            tf.concatenate(usr2dev);
            g2d.setTransform(tf);
        }
        if(hints != null) {
            g2d.addRenderingHints(hints);
        }
View Full Code Here

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

        AffineTransform scale = new AffineTransform(scale_x, 0.0, 0.0, scale_y,
                                                    trans_x, trans_y);

        RenderContext RC = (RenderContext)renderContext.clone();
        AffineTransform usr2dev = RC.getTransform();
        usr2dev.concatenate(scale);
  RC.setTransform(usr2dev);
  return RC;
    }

    /**
 
View Full Code Here

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

        AffineTransform scale =
            new AffineTransform(scaleX, 0.0, 0.0, scaleY, 0.0, 0.0);

        RenderContext RC = (RenderContext)renderContext.clone();
        AffineTransform usr2dev = RC.getTransform();
        usr2dev.concatenate(scale);
  RC.setTransform(usr2dev);
  return RC;
    }

    /**
 
View Full Code Here

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

        AffineTransform rotate =
            AffineTransform.getRotateInstance(angle, x_center, y_center);

        RenderContext RC = (RenderContext)renderContext.clone();
        AffineTransform usr2dev = RC.getTransform();
        usr2dev.concatenate(rotate);
  RC.setTransform(usr2dev);
  return RC;
    }

    /**
 
View Full Code Here

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

        Object arg0 = paramBlock.getObjectParameter(0);
        AffineTransform affine = (AffineTransform)arg0;

        RenderContext RC = (RenderContext)renderContext.clone();
        AffineTransform usr2dev = RC.getTransform();
        usr2dev.concatenate(affine);
  RC.setTransform(usr2dev);
  return RC;
    }

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