Examples of translate()


Examples of erogenousbeef.core.common.CoordTriplet.translate()

        int bladeLength;
        ForgeDirection bladeDir;
        for(int bladeIdx = 0; bladeIdx < dirsToCheck.length; bladeIdx++) {
          bladeDir = dirsToCheck[bladeIdx];
          bladeCoord.copy(currentCoord);
          bladeCoord.translate(bladeDir);
          bladeLength = 0;
          while(worldObj.getBlock(bladeCoord.x, bladeCoord.y, bladeCoord.z) == BigReactors.blockTurbineRotorPart && bladeLength < 32) {
            bladeLength++;
            bladeCoord.translate(bladeDir);
          }
View Full Code Here

Examples of es.iiia.shapegrammar.shape.ShapeModel.translate()

        // resize graphics
        ShapeModel newShape = shape.clone();
        newShape.moveToCenter();
        newShape.scale(resize, resize);
        // now move it to centre of the icon
        newShape.translate(iconSize / 2, iconSize  / 2);
               
       
        for (LineModel line : newShape.getLines()) {
          for (int i=0; i<line.getPoints().size()-1; i++) {
            drawLine(e.gc, line.getPoints().get(i), line.getPoints().get(i+1));
View Full Code Here

Examples of factOrFiction.print.PrintContext.translate()

     
      PrintContext context = new PrintContext( printerGC, getDisplay().getDPI() );

      // get full paper size
      Rectangle pageArea = SWTUtils.getPrintableBounds(printer);
      context.translate( new Point(pageArea.x, pageArea.y));
     
      page.doPrint( context, new Point(pageArea.width, pageArea.height) );

      displayImage = new Image(event.display, printerImage.getImageData());
      event.gc.drawImage(displayImage, dirtyPaperBounds.x, dirtyPaperBounds.y);
View Full Code Here

Examples of fcagnin.jglsdk.glutil.MatrixStack.translate()

            currMatrix.pop();
        }

        {
            currMatrix.push();
            currMatrix.translate( camTarget );
            currMatrix.applyMatrix( Glm.matCast( orientation ) );
            currMatrix.rotateX( -90.0f );

            // Set the base color for this object.
            glUniform4f( baseColorUnif, 1.0f, 1.0f, 1.0f, 1.0f );
View Full Code Here

Examples of fmg.fmg8.endlAutomat.translator.Translator.translate()

       
        Translator trans = new Translator(
                transCode,
                new ScriptInterpreter(params, SonstMeth.MODUS_TRANSLATOR),
                params);
        Script s = trans.translate(new EndlicherAutomat().bereinige(seqCode));
        ScriptInterpreter sInt = new ScriptInterpreter(params, SonstMeth.MODUS_TRANSLATOR);
        EndlicherAutomat ea = new EndlicherAutomat();
        sInt.generateAutomaton(ea, s);
//        System.out.println(ea.erzeugeSequenz().size());
        System.exit(0);
View Full Code Here

Examples of io.apigee.trireme.core.internal.PathTranslator.translate()

    @Test
    public void testIdentity()
        throws IOException
    {
        PathTranslator trans = new PathTranslator();
        File xl = trans.translate("./target/test-classes/io/apigee/trireme/core/test/PathTranslatorTest.class");
        File realFile = new File("./target/test-classes/io/apigee/trireme/core/test/PathTranslatorTest.class");
        assertTrue(realFile.exists());
        assertEquals(realFile.getCanonicalPath(), xl.getCanonicalPath());
    }
View Full Code Here

Examples of java.awt.Graphics.translate()

        }
      }
    }
   
    g.setColor(baseColor);
    g.translate(loc.getX(), loc.getY());
    double rotate = 0.0;
    if (facing != Direction.EAST && g instanceof Graphics2D) {
      rotate = -facing.toRadians();
      Graphics2D g2 = (Graphics2D) g;
      g2.rotate(rotate);
View Full Code Here

Examples of java.awt.Graphics2D.translate()

    boolean opaqueValue = component.isOpaque();
    component.setOpaque( true );
    BufferedImage image = new BufferedImage(region.width,
        region.height, BufferedImage.TYPE_INT_RGB);
    Graphics2D g2d = image.createGraphics();
    g2d.translate(-region.getX(), -region.getY());
    //g2d.setClip( region );
    component.paint( g2d );
    g2d.dispose();
    component.setOpaque( opaqueValue );
View Full Code Here

Examples of java.awt.Point.translate()

    }

    private void centerVideoPanel() {
  Point controlLocation = getLocation();
  int xPos = (WIDTH - videoPanel.getSize().width) / 2;
  controlLocation.translate(xPos, - 5 - videoPanel.getSize().height);
  videoPanel.setLocation(controlLocation);
    }

    public void controllerUpdate(ControllerEvent ce) {
  if (ce instanceof RealizeCompleteEvent) {
View Full Code Here

Examples of java.awt.Polygon.translate()

    BufferedImage merge = new BufferedImage(bounds.width, bounds.height, BufferedImage.TYPE_INT_ARGB);
    Graphics drawG = merge.getGraphics();
    drawG.drawImage(steeringWheel, 0, 0, null);
    g.drawImage(merge, bounds.x, bounds.y, null);
    Polygon poly = painter.getSteeringWheelHandle((int)Math.rint(getPreferredSize().getWidth()), castValue());
    poly.translate(bounds.x, bounds.y);
    handle = poly;
    if (!paintLabels()) paintCurrentLabel(g, (int)Math.rint(castValue(getSelectedIndex())));
    else paintLabels(g);
  }
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.