Examples of translate()


Examples of org.geotools.data.dxf.entities.DXFEntity.translate()

    public DXFEntity translate(double x, double y) {
        // Move all vertices
        Iterator iter = theEntities.iterator();
        while (iter.hasNext()) {
            DXFEntity entity = (DXFEntity) iter.next();
            entity.translate(x, y);
        }
        return this;
    }

    public DXFEntity clone() {
View Full Code Here

Examples of org.geotools.geometry.jts.ReferencedEnvelope.translate()

        if (latLong.getMaxY() > WORLD.getMaxY()) {
          deltay = WORLD.getMaxX() - latLong.getMaxY();
        }
      }

      latLong.translate(deltax, deltay);

      return latLong.transform(
          pixelBounds.getCoordinateReferenceSystem(), true);
    } catch (TransformException e) {
      ProjectPlugin.log("", e);
View Full Code Here

Examples of org.geotools.geometry.jts.TransformedShape.translate()

            Rectangle2D bounds = shape.getBounds2D();
            double shapeSize = (maxMarkSizeEnabled ? Math.max(bounds.getWidth(), bounds.getHeight()) : bounds.getHeight());
            double scale = size / shapeSize;
            TransformedShape ts = new TransformedShape();
            ts.shape = shape;
            ts.translate(x, y);
            ts.rotate(rotation);
            // flip the symbol to take into account the screen orientation
            // where the y grows from top to bottom
            ts.scale(scale, -scale);
View Full Code Here

Examples of org.jboss.errai.cdi.server.gwt.util.SimpleTranslator.translate()

    trans.addFilter(new Tag("socket-binding", new AttributeEntry("name", "http")));
    trans.addNewTag("socket-binding-group", new Tag("socket-binding", new AttributeEntry("name", "http"),
            new AttributeEntry("port", String.valueOf(port))));

    try {
      trans.translate(inStream, outStream);
    }
    catch (XMLStreamException e) {
      logger.log(Type.ERROR, "Could not create copy of configuration from " + from.getAbsolutePath(), e);
      throw new UnableToCompleteException();
    }
View Full Code Here

Examples of org.jboss.test.bpel.ws.consumption.partner.spi.Dictionary.translate()

    TDocument document = translationRequest.getDocument();
    Locale sourceLocale = new Locale(document.getHead().getLanguage());
    Locale targetLocale = new Locale(translationRequest.getTargetLanguage());
    DictionaryFactory dictionaryFactory = DictionaryFactory.getInstance(sourceLocale, targetLocale);
    Dictionary dictionary = dictionaryFactory.createDictionary(sourceLocale, targetLocale);
    return dictionary.translate(document);
  }

  public void quoteTranslation(TQuotationRequest quotationRequest) throws RemoteException {
    String clientName = quotationRequest.getClientName();
    log.debug("received quotation request: clientName=" + clientName);
View Full Code Here

Examples of org.jemmy.Rectangle.translate()

                        @Override
                        public boolean check(JFXPanel control) {
                            return super.check(control) && (control.getScene() == scene);
                        }
                    }).wrap().getControl();
                    sceneBounds.translate((int) panel.getLocationOnScreen().getX(), (int) panel.getLocationOnScreen().getY());
                } else {
                    Window window = scene.getWindow();
                    /*
                     * Field host_field =
                     * window.getClass().getDeclaredField("host");
 
View Full Code Here

Examples of org.jitterbit.integration.client.plugin.pipeline.xml.XmlToManifestTranslator.translate()

        private Iterable<PipelinePluginManifest> parseManifests(PluginAsXml xml) {
            XmlToManifestTranslator translator = new XmlToManifestTranslator();
            List<PipelinePluginManifest> manifests = new ArrayList<PipelinePluginManifest>();
            try {
                KongaListUtils.add(manifests, translator.translate(xml));
            } catch (PluginSpecificationException ex) {
                // This is not a fatal error, and we want to add as many manifests we can,
                // so we just log this error and continue.
                ErrorLog.log(getClass(), "An error occurred while parsing a plugin manifest.", ex);
            }
View Full Code Here

Examples of org.joshy.gfx.draw.GFX.translate()

        //render shadow to buffer
        bufx.clear();
        GFX g2 = bufx.getGFX();
        g2.setPaint(FlatColor.BLACK);
        g2.translate(10, 10);
        fillShape(g2);
        g2.translate(-10, -10);
        bufx.apply(new BlurEffect(blurRadius));
        g2.dispose();
View Full Code Here

Examples of org.lwjgl.util.vector.Matrix4f.translate()

        lightProjection.flip();
        lightModelView.flip();

        Matrix4f tempMatrix = new Matrix4f();
        tempMatrix.setIdentity();
        tempMatrix.translate(new Vector3f(0.5F, 0.5F, 0.5F));
        tempMatrix.scale(new Vector3f(0.5F, 0.5F, 0.5F));
        Matrix4f.mul(tempMatrix, lightProjectionTemp, textureMatrix);
        Matrix4f.mul(textureMatrix, lightModelViewTemp, tempMatrix);
        Matrix4f.transpose(tempMatrix, textureMatrix);
    }
View Full Code Here

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

                    tagCircle.setPickable(true);
                    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);
                   
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.