Examples of transform()


Examples of org.jostraca.transform.TextElementTransform.transform()

  public void testTransform() {
    TextElementTransform t = new TextElementTransform();
    t.setParameters( new ValueSet( Property.lang_InsertPrefix, "<",
                                   Property.lang_InsertSuffix, ">",
                                   Property.lang_TextQuote,    "-") );
    assertTrue( "<-a->".equals( t.transform("a") ) );
   
  }

  /* Public Methods >> */

 

Examples of org.jostraca.transform.TextualTransform.transform()

    TextualTransform tt = new org.jostraca.transform.TextElementTransform();
    tt.setParameters( ps );

    String from = "a";
    String to   = tt.transform( from );
    assertTrue( to.equals( ttm.transform( from ) ) );
  }


Examples of org.jostraca.transform.TextualTransformManager.transform()

    } catch( Exception e ) {
      fail();
    }

    String from = "from";
    String to   = ttm.transform( from );
    assertTrue( from.equals( to ) );
  }


Examples of org.jostraca.transform.TrimTransform.transform()

  /* Public Methods << */

  public void testTransform() {
    TrimTransform t = new TrimTransform();

    assertTrue( "a".equals( t.transform(" a ") ) );
   
  }

  /* Public Methods >> */

 

Examples of org.jquantlib.math.matrixutilities.Array.transform()

        final Array aC = new Array(new double[] { 5.0, 4.0, 9.04.0 });

        final Array tmp2 = aA.clone();
        final int offset = aA.begin();
        result = tmp2.transform(1+offset, 3+offset, new Square());
        if (result != tmp2) {
            fail("'transform' must return this");
        }
        if (!equals(result, aC)) {
            fail("'transform' failed");

Examples of org.jvnet.hk2.config.Transformer.transform()

                    return (T) handler.getMasterView().getProxy(handler.getMasterView().getProxyType());

            }
        };

        return rawTransformer.transform(s);
    }

    public GlassFishConfigBean(ServiceLocator habitat, DomDocument document, GlassFishConfigBean parent, ConfigModel model, XMLStreamReader in) {
        super(habitat, document, parent, model, in);               
    }

Examples of org.modelmapper.spi.NameTransformer.transform()

    else {
      NameTransformer nameTransformer = configuration.getSourceNameTransformer();
      for (String memberName : valueReader.memberNames(source)) {
        Object sourceValue = valueReader.get(source, memberName);
        if (sourceValue != null)
          accessors.put(nameTransformer.transform(memberName, NameableType.GENERIC),
              new ValueReaderPropertyInfo(valueReader, sourceValue, memberName));
      }
    }
    return accessors;
  }

Examples of org.mt4j.components.MTComponent.transform()

    meshGroup.registerInputProcessor(new ArcballProcessor(mtApplication, biggestMesh));
    meshGroup.addGestureListener(ArcballProcessor.class, new IGestureEventListener(){
      //@Override
      public boolean processGestureEvent(MTGestureEvent ge) {
        ArcBallGestureEvent aEvt =  (ArcBallGestureEvent)ge;
        meshGroup.transform(aEvt.getTransformationMatrix());
        return false;
      }
    });
   
    meshGroup.registerInputProcessor(new ScaleProcessor(mtApplication));

Examples of org.mt4j.components.visibleComponents.shapes.MTEllipse.transform()

                    tagCircle.setFillColor(new MTColor(90, 205, 230, 200));
                    tagCircle.setDrawSmooth(true);
                    tagCircle.setStrokeWeight(2);
                    tagCircle.setStrokeColor(new MTColor(40, 130, 220, 255));
                    tagCircle.translate(new Vector3D(pointOnScreen.x, pointOnScreen.y , 0.0f));
                    tagCircle.transform(tagContainer.getGlobalInverseMatrix());
                    tagCircle.setName(id);
                   
                    tagToPhoto.put(tagCircle, foto);
                   
                    tagContainer.addChild(tagCircle);

Examples of org.mt4j.components.visibleComponents.widgets.MTTextArea.transform()

                    //Add the textarea to the set parent
                    if (getParentToAddNewTextAreaTo() != null){
                      //Transform the textarea so it appears at the same world coords after its added to another parent
                      Matrix m = MTComponent.getTransformToDestinationParentSpace(ta, getParentToAddNewTextAreaTo());
                      ta.transform(m);
                      //Transform the direction vector for the translation animation
                      //to preserve the direction from the old reference frame to the new parents one
//                      v.transformNormal(m);
                      v.transformDirectionVector(m);
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.