Examples of translate()


Examples of crazypants.render.BoundingBox.translate()

      BoundingBox bb = BoundingBox.UNIT_CUBE.scale(0.85, 0.96, 0.85);
      bb = bb.scale(1, 0.85 * fullness, 1);
      float ty = -(0.85f - (bb.maxY - bb.minY)) / 2;

      Vector3d offset = ForgeDirectionOffsets.offsetScaled(ForgeDirection.values()[gen.facing], -0.075);
      bb = bb.translate((float) offset.x, ty, (float) offset.z);

      int brightness;
      if(gen.getWorldObj() == null) {
        brightness = 15 << 20 | 15 << 4;
      } else {
View Full Code Here

Examples of cuchaz.enigma.mapping.Translator.translate()

  public boolean hasDeobfuscatedName( Entry obfEntry )
  {
    Translator translator = getTranslator( TranslationDirection.Deobfuscating );
    if( obfEntry instanceof ClassEntry )
    {
      return translator.translate( (ClassEntry)obfEntry ) != null;
    }
    else if( obfEntry instanceof FieldEntry )
    {
      return translator.translate( (FieldEntry)obfEntry ) != null;
    }
View Full Code Here

Examples of de.sciss.util.DefaultUnitTranslator.translate()

      result = BasicWindowHandler.showDialog( op, BasicWindowHandler.getWindowAncestor( lbTime ), app.getResourceString( "inputDlgGoToTime" ));
     
      if( result == JOptionPane.OK_OPTION ) {
        value      = ggPosition.getValue();
        space      = ggPosition.getSpace();
        positionSmps  = timeTrans.translate( value, ParamSpace.spcTimeSmps );
        doc.timeline.editPosition( this,
          Math.max( 0, Math.min( doc.timeline.getLength(),
          (long) positionSmps.val )));
      }
        }
View Full Code Here

Examples of de.yaams.extensions.basemap.tiled.core.MapLayer.translate()

        }
        break;
      case PS_MOVE: {
        Point translation = new Point(tile.x - mousePressLocation.x, tile.y - mousePressLocation.y);

        layer.translate(translation.x, translation.y);
        moveDist.translate(translation.x, translation.y);
        mapView.repaint();
        break;
      }
      case PS_MARQUEE:
View Full Code Here

Examples of diva.canvas.CompositeFigure.translate()

        Figure bg = new BasicRectangle(100.0, 100.0, 100.0, 100.0, Color.blue);
        tc.setBackgroundFigure(bg);
        layer.add(tc);
        tc.setInteractor(defaultInteractor);
        addPorts(tc);
        tc.translate(200.0, 0);
    }

    /** Utility function to add the "ports" to the composite figure.
     */
    public void addPorts(CompositeFigure tc) {
View Full Code Here

Examples of diva.canvas.Figure.translate()

    /** Utility function to add the "ports" to the composite figure.
     */
    public void addPorts(CompositeFigure tc) {
        Figure p1 = new BasicEllipse(150.0, 100.0, 20.0, 20.0, Color.red);
        p1.translate(-10, -10);

        Figure p2 = new BasicEllipse(200.0, 150.0, 20.0, 20.0, Color.blue);
        p2.translate(-10, -10);

        Figure p3 = new BasicEllipse(150.0, 200.0, 20.0, 20.0, Color.yellow);
View Full Code Here

Examples of diva.canvas.interactor.GrabHandle.translate()

            // Snap to grid.
            double[] snapped = _snapConstraint.constrain(x, y);

            // Translate the grab-handle, resizing the geometry
            GrabHandle g = (GrabHandle) e.getFigureSource();
            g.translate(snapped[0], snapped[1]);

            // Transform the child.
            BoundsManipulator parent = (BoundsManipulator) g.getParent();
            BoundsGeometry geometry = parent.getGeometry();
View Full Code Here

Examples of diva.canvas.toolbox.BasicEllipse.translate()

    /** Utility function to add the "ports" to the composite figure.
     */
    public void addPorts(CompositeFigure tc) {
        Figure p1 = new BasicEllipse(150.0, 100.0, 20.0, 20.0, Color.red);
        p1.translate(-10, -10);

        Figure p2 = new BasicEllipse(200.0, 150.0, 20.0, 20.0, Color.blue);
        p2.translate(-10, -10);

        Figure p3 = new BasicEllipse(150.0, 200.0, 20.0, 20.0, Color.yellow);
View Full Code Here

Examples of diva.canvas.toolbox.IconFigure.translate()

        layer.add(_icon1);
        _icon1.setInteractor(defaultInteractor);

        // Add its terminals
        createTerminals(_icon1);
        _icon1.translate(100, 100);
    }

    /** Create an icon. The icon's graphic is created
     * by using GraphicsParse.
     */
 
View Full Code Here

Examples of diva.canvas.toolbox.ImageFigure.translate()

            } catch (InterruptedException e) {
                System.err.println(e + "... in LayerImageFigure");
            }

            ImageFigure imgFig = new ImageFigure(img);
            imgFig.translate(300, 100);
            return imgFig;
        }

        public String toString() {
            return "Image figure";
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.