Examples of transform()


Examples of java.lang.instrument.ClassFileTransformer.transform()

        for (int i = 0; i < _classFileTransformerList.size(); i++) {
          ClassFileTransformer transformer = _classFileTransformerList.get(i);

          try {
            byte []enhancedBuffer = transformer.transform(this,
                                                          className,
                                                          redefineClass,
                                                          protectionDomain,
                                                          bBuf);

Examples of javax.media.j3d.Bounds.transform()

        }
      } else if (node instanceof Link) {
        computeBounds(((Link)node).getSharedGroup(), bounds, parentTransformations);
      } else if (node instanceof Shape3D) {
        Bounds shapeBounds = ((Shape3D)node).getBounds();
        shapeBounds.transform(parentTransformations);
        bounds.combine(shapeBounds);
      }
    }
  }
}

Examples of javax.media.j3d.Transform3D.transform()

            si.setMaximumScale(1.25f);
            fscale.addChild(co);
            Transform3D sftrans = new Transform3D();
            sftrans.rotZ(facing(sdir-dir));
            Vector3d sv = new Vector3d(0.0, 5*BoardModel.HEX_DIAMETER/12, 0.0);
            sftrans.transform(sv);
            sftrans.setTranslation(sv);
            TransformGroup sfacing = new TransformGroup(sftrans);
            sfacing.addChild(fscale);
            sfacing.addChild(si);
            facing.addChild(sfacing);

Examples of javax.media.jai.PerspectiveTransform.transform()

            float[] fxCoords = new float[6];
            int path = pi.currentSegment(coords);
            perspectiveTransformPoly.add(Collections.singletonMap(path, fxCoords));
            switch (path) {
                case PathIterator.SEG_MOVETO:
                    ptx.transform(coords, 0, fxCoords, 0, 1);
                    break;
                case PathIterator.SEG_CLOSE:
                    break;
                case PathIterator.SEG_LINETO:
                    ptx.transform(coords, 0, fxCoords, 0, 1);

Examples of javax.persistence.spi.ClassTransformer.transform()

                    public byte[] transform(
                            ClassLoader loader, String className,
                            Class<?> classBeingRedefined,
                            ProtectionDomain protectionDomain,
                            byte[] classfileBuffer) throws IllegalClassFormatException {
                        return transformer.transform(loader, className, classBeingRedefined, protectionDomain, classfileBuffer);
                    }
                });
            } else if (transformer == null) {
                AbstractSessionLog.getLog().log(SessionLog.FINER, "cmp_init_transformer_is_null");
            } else if (globalInstrumentation == null) {

Examples of javax.vecmath.Matrix3d.transform()

   
    public void setDirection(double angle) {
      Matrix3d mat = new Matrix3d();
      mat.rotZ(angle);
      Vector3d tmp = new Vector3d(1, 0, 0);
      mat.transform(tmp);
      direction = new Vector2d(tmp.x, tmp.y);
    }

    public Vector2d getAcceleration() {
        return acceleration;

Examples of javax.vecmath.Matrix3f.transform()

      case Token.matrix3f:
        if (pt != null) {
          // pt * m
          Matrix3f m3b = new Matrix3f((Matrix3f) x2.value);
          m3b.transpose();
          m3b.transform(pt);
          if (x1.tok == Token.varray)
            return addX(ScriptVariable.getVariable(new float[] { pt.x, pt.y,
                pt.z }));
          return addX(pt);
        }

Examples of javax.vecmath.Matrix4f.transform()

        // pt4 * m4
        // [a b c d] * m4
        if (pt4 != null) {
          Matrix4f m4b = new Matrix4f((Matrix4f) x2.value);
          m4b.transpose();
          m4b.transform(pt4);
          if (x1.tok == Token.varray)
            return addX(ScriptVariable.getVariable(new float[] { pt4.x, pt4.y,
                pt4.z, pt4.w }));
          return addX(pt4);
        }

Examples of javax.xml.crypto.dsig.TransformService.transform()

            TransformService transformImpl = TransformService.getInstance(transformAlgo,"DOM");
            TransformParameterSpec transformParams = null;
            //transformParams = transform.getParamter();
            transformParams = (TransformParameterSpec)transform.getParameterSpec();
            transformImpl.init(transformParams);
            return transformImpl.transform(inputData,context);
        }else {
            //handle all other transforms based on flag set on processing context.
            //flag =STRICT_VERIFICATION {true,false}
        }
        return inputData;

Examples of javax.xml.transform.Transformer.transform()

      tf.setOutputProperty(OutputKeys.STANDALONE, "yes");//$NON-NLS-1$
      tf.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "4"); //$NON-NLS-1$ //$NON-NLS-2$
     
      ByteArrayOutputStream out = new ByteArrayOutputStream();
      StreamResult xmlOut = new StreamResult(new BufferedOutputStream(out));
      tf.transform(xml.getSource(StreamSource.class), xmlOut);
     
      return out.toString();
    } catch (Exception e) {
      return xml.getString();
    }
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.