Examples of transform()


Examples of org.jbpm.persistence.processinstance.ProcessInstanceInfo.transform()

        boolean notAborted = instance.getState() != ProcessInstance.STATE_ABORTED;
        boolean hasId = instance.getId() > 0;
        if (hasId && notCompeted && notAborted) {
          ProcessInstanceInfo info = new ProcessInstanceInfo(instance, ksession.getEnvironment());
          info.setId(instance.getId());
          info.transform();
          persistenceContext.persist(info);
        }
      }
      return null;
    }

Examples of org.jdom.transform.XSLTransformer.transform()

  public void XmlTransformation(OutputStream out, Document doc, String filename) throws XSLTransformException, IOException {
    Document docTrans = new Document();
    if (filename != null && filename.equals("")) {
      XSLTransformer transformer;
      transformer = new XSLTransformer(filename);
      docTrans = transformer.transform(doc);
    } else {
      docTrans = doc;
    }
    Format format = Format.getPrettyFormat();
    format.setEncoding("utf-8");

Examples of org.jfree.chart.ui.GradientPaintTransformer.transform()

            int column, RectangularShape bar, RectangleEdge base) {

        Paint itemPaint = renderer.getItemPaint(row, column);
        GradientPaintTransformer t = renderer.getGradientPaintTransformer();
        if (t != null && itemPaint instanceof GradientPaint) {
            itemPaint = t.transform((GradientPaint) itemPaint, bar);
        }
        g2.setPaint(itemPaint);
        g2.fill(bar);

        // draw the outline...

Examples of org.jfree.ui.GradientPaintTransformer.transform()

            int column, RectangularShape bar, RectangleEdge base) {

        Paint itemPaint = renderer.getItemPaint(row, column);
        GradientPaintTransformer t = renderer.getGradientPaintTransformer();
        if (t != null && itemPaint instanceof GradientPaint) {
            itemPaint = t.transform((GradientPaint) itemPaint, bar);
        }
        g2.setPaint(itemPaint);
        g2.fill(bar);

        // draw the outline...

Examples of org.jhotdraw.samples.svg.figures.SVGTextFigure.transform()

      double xTranslation = (length / 2)
          - interactionLabel.getBounds().getCenterX();
      double yTranslation = interactionLineStartPosition.y
          - (interactionLabel.getBounds().height / 2);
      labelTransform.setToTranslation(xTranslation, yTranslation);
      interactionLabel.transform(labelTransform);
      add(interactionLabel);

      AttributeKeys.FILL_COLOR.set(interactionLine, null);

      linePath.setClosed(false);

Examples of org.jmol.util.Quaternion.transform()

    */

    m.setIdentity();
    Quaternion q = viewer.getRotationQuaternion();
    m.set(q.getMatrix());
    q.transform(referenceCenter, tempP1);
    m.m03 = -tempP1.x;
    m.m13 = -tempP1.y;
    m.m23 = -tempP1.z;
    m.m33 = 1;

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

  /* Public Methods << */

  public void testTransform() {
    AppendNewLineTransform t = new AppendNewLineTransform();
    assertTrue( ("a"+TextualTransform.NEWLINE).equals( t.transform("a") ) );

  }

  /* Public Methods >> */

 

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

  // public methods

  public void testTransform() {
    CStringEscapeTransform t = new CStringEscapeTransform();
    ErrorUtil.setQuiet( true );
    assertTrue( "a\\tb".equals(                        t.transform("a\tb") ) );
    assertTrue( "A\\\"B\\\\C\\nD\\rE\\tF\\fG\\bH".equals( t.transform("A\"B\\C\nD\rE\tF\fG\bH") ) );
  }
}

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

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

    String in01  = "a   b\nc";
    String out01 = "a b c";
    assertTrue( out01.equals( t.transform( in01 ) ) );

  }

  /* Public Methods >> */

 

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

  public void testTransform() {
    CropTransform ct = new CropTransform();

    String in01  = "abc";
    String out01 = "abc";
    assertTrue( out01.equals( ct.transform( in01 ) ) );

    String in02  = "0123456789012345678901";
    String out02 = "0123456789012345678901";
    assertTrue( out02.equals( ct.transform( in02 ) ) );
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.