All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.metacsp.utility.UI.EnvelopeAccessor Maven / Gradle / Ivy

There is a newer version: 1.3.5
Show newest version
package org.metacsp.utility.UI;

import aurelienribon.tweenengine.TweenAccessor;

public class EnvelopeAccessor implements TweenAccessor {

	@Override
	public int getValues(TweenableEnvelope target, int tweenType, float[] returnValues) {
		returnValues[0] = (float)target.getMinX();
		returnValues[1] = (float)target.getMinY();
		returnValues[2] = (float)target.getMaxX();
		returnValues[3] = (float)target.getMaxY();
		return 4;
	}

	@Override
	public void setValues(TweenableEnvelope target, int tweenType, float[] newValues) {
		target.setMinX(newValues[0]);
		target.setMinY(newValues[1]);
		target.setMaxX(newValues[2]);
		target.setMaxY(newValues[3]);
	}


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy