Examples of Scale


Examples of ca.grimoire.jnoise.modules.transform.Scale

   * @return a Scale module.
   * @throws BuilderException
   *           if the source module has not been provided.
   */
  public Scale createModule () throws BuilderException {
    return new Scale (getSource ().createModule (), getX (), getY (), getZ ());
  }
View Full Code Here

Examples of cofh.repack.codechicken.lib.vec.Scale

    public static QBQuad restore(Rectangle4i flat, int side, double d, QBImage img) {

      QBQuad quad = new QBQuad(side);
      quad.image = img;

      Transformation t = new Scale(-1, 1, -1).with(Rotation.sideOrientation(side, 0)).with(new Translation(new Vector3().setSide(side, d)));
      quad.verts[0] = new Vertex5(flat.x, 0, flat.y, 0, 0);
      quad.verts[1] = new Vertex5(flat.x + flat.w, 0, flat.y, 1, 0);
      quad.verts[2] = new Vertex5(flat.x + flat.w, 0, flat.y + flat.h, 1, 1);
      quad.verts[3] = new Vertex5(flat.x, 0, flat.y + flat.h, 0, 1);
      for (Vertex5 vert : quad.verts) {
View Full Code Here

Examples of com.blitline.image.functions.Scale

  public static Rotate rotateBy(double degrees) {
    return new Rotate(degrees);
  }

  public static Scale scaleBy(double scaleFactor) {
    return new Scale(scaleFactor);
  }
View Full Code Here

Examples of com.heroku.api.request.ps.Scale

     * @param appName App name. See {@link #listApps} for a list of apps that can be used.
     * @param processType Process name. See {@link #listProcesses} for a list of processes that can be used.
     * @param quantity The number to scale the process to.
     */
    public void scaleProcess(String appName, String processType, int quantity) {
        connection.execute(new Scale(appName, processType, quantity), apiKey);
    }
View Full Code Here

Examples of com.lightcrafts.model.Scale

            x.getValue(), y.getValue(), width.getValue(), height.getValue()
        );
        double radians = angle.getValue() * Math.PI / 180;
        CropBounds bounds = new CropBounds(rect, radians);

        Scale scale = new Scale(zoom.getValue() / 10f);

        for (Iterator i=listeners.iterator(); i.hasNext(); ) {
            Listener listener = (Listener) i.next();
            listener.cropBoundsChanged(bounds, scale, isChanging);
        }
View Full Code Here

Examples of com.lightcrafts.model.Scale

    private LinkedList<ScaleListener> listeners;

    /** Construct a ScaleModel with the Scale set to 1:1.
     */
    ScaleModel(Engine engine) {
        this(engine, new Scale(1, 1));
    }
View Full Code Here

Examples of com.lightcrafts.model.Scale

    public void removeScaleListener(ScaleListener listener) {
        listeners.remove(listener);
    }

    private void notifyListeners() {
        Scale scale = getCurrentScale();
        for (ScaleListener listener : listeners) {
            listener.scaleChanged(scale);
        }
    }
View Full Code Here

Examples of com.lightcrafts.model.Scale

            listener.scaleChanged(scale);
        }
    }

    public boolean scaleUp() {
        Scale scale = getNextScaleUp();
        return setScale(scale);
    }
View Full Code Here

Examples of com.lightcrafts.model.Scale

        Scale scale = getNextScaleUp();
        return setScale(scale);
    }

    public boolean scaleDown() {
        Scale scale = getNextScaleDown();
        return setScale(scale);
    }
View Full Code Here

Examples of com.lightcrafts.model.Scale

        Scale scale = getNextScaleDown();
        return setScale(scale);
    }

    boolean scaleBy(float percent) {
        Scale scale = getCurrentScale();
        float factor = scale.getFactor();
        factor *= percent;
        scale = new Scale(factor);
        return setScale(scale);
    }
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.