Commit 6e2f5e3d authored by Luboš Horáček's avatar Luboš Horáček

Oprava kompilovatelnosti

parent 81698e4d
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry exported="true" kind="con" path="org.springsource.ide.eclipse.gradle.classpathcontainer"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="src" path="src/main/java"/>
<classpathentry kind="src" path="gen"/>
<classpathentry exported="true" kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="src" path="/AndEngine-1.0.0-SNAPSHOT"/>
<classpathentry exported="true" kind="lib" path="/home/lhoracek/.gradle/caches/modules-2/files-2.1/org.achartengine/achartengine/1.2.0/6237eec8da72e8ea265bdc40e22433306ad5b9ad/achartengine-1.2.0.jar"/>
<classpathentry exported="true" kind="lib" path="/home/lhoracek/.gradle/caches/modules-2/files-2.1/com.bugsense.trace/bugsense/3.6/3928cf9ff54683b522cee09da9034106c53fea91/bugsense-3.6.jar" sourcepath="/home/lhoracek/.gradle/caches/modules-2/files-2.1/com.bugsense.trace/bugsense/3.6/3928cf9ff54683b522cee09da9034106c53fea91/bugsense-3.6-sources.jar"/>
<classpathentry exported="true" kind="lib" path="/home/lhoracek/.gradle/caches/modules-2/files-2.1/com.google.code.gson/gson/2.2.4/a60a5e993c98c864010053cb901b7eab25306568/gson-2.2.4.jar" sourcepath="/home/lhoracek/.gradle/caches/modules-2/files-2.1/com.google.code.gson/gson/2.2.4/a6dc5db8a12928e583bd3f23e72d3ab611ecd58f/gson-2.2.4-sources.jar"/>
<classpathentry exported="true" kind="lib" path="/home/lhoracek/.gradle/caches/modules-2/files-2.1/org.roboguice/roboguice/2.0/727ccb8f376109d0b5c44abca6f791dccc5c5dbc/roboguice-2.0.jar" sourcepath="/home/lhoracek/.gradle/caches/modules-2/files-2.1/org.roboguice/roboguice/2.0/b2e6d36ea5369c8306146adb980fecfa8d9ab996/roboguice-2.0-sources.jar"/>
<classpathentry exported="true" kind="lib" path="/home/lhoracek/.gradle/caches/modules-2/files-2.1/org.apache.commons/commons-lang3/3.1/905075e6c80f206bbe6cf1e809d2caa69f420c76/commons-lang3-3.1.jar" sourcepath="/home/lhoracek/.gradle/caches/modules-2/files-2.1/org.apache.commons/commons-lang3/3.1/8d30b90ae8bda4fbac8363161c8a9b5a99e23baf/commons-lang3-3.1-sources.jar"/>
<classpathentry exported="true" kind="lib" path="/home/lhoracek/.gradle/caches/modules-2/files-2.1/com.google.guava/guava/15.0/ed727a8d9f247e2050281cb083f1c77b09dcb5cd/guava-15.0.jar" sourcepath="/home/lhoracek/.gradle/caches/modules-2/files-2.1/com.google.guava/guava/15.0/36b6a585c0f0c63bd85fb04db0dcb7b217298956/guava-15.0-sources.jar"/>
<classpathentry exported="true" kind="lib" path="/home/lhoracek/.gradle/caches/modules-2/files-2.1/javax.inject/javax.inject/1/6975da39a7040257bd51d21a231b76c915872d38/javax.inject-1.jar" sourcepath="/home/lhoracek/.gradle/caches/modules-2/files-2.1/javax.inject/javax.inject/1/a00123f261762a7c5e0ec916a2c7c8298d29c400/javax.inject-1-sources.jar"/>
<classpathentry exported="true" kind="lib" path="/home/lhoracek/.gradle/caches/modules-2/files-2.1/aopalliance/aopalliance/1.0/235ba8b489512805ac13a8f9ea77a1ca5ebe3e8/aopalliance-1.0.jar" sourcepath="/home/lhoracek/.gradle/caches/modules-2/files-2.1/aopalliance/aopalliance/1.0/4a4b6d692e17846a9f3da036438a7ac491d3c814/aopalliance-1.0-sources.jar"/>
<classpathentry exported="true" kind="lib" path="/home/lhoracek/.gradle/caches/modules-2/files-2.1/asm/asm/3.1/c157def142714c544bdea2e6144645702adf7097/asm-3.1.jar" sourcepath="/home/lhoracek/.gradle/caches/modules-2/files-2.1/asm/asm/3.1/2eaa4de56203f433f287a6df5885ef9ad3c5bcae/asm-3.1-sources.jar"/>
<classpathentry exported="true" kind="lib" path="/home/lhoracek/.gradle/caches/modules-2/files-2.1/org.sonatype.sisu.inject/cglib/2.2.1-v20090111/7ce5e983fd0e6c78346f4c9cbfa39d83049dda2/cglib-2.2.1-v20090111.jar" sourcepath="/home/lhoracek/.gradle/caches/modules-2/files-2.1/org.sonatype.sisu.inject/cglib/2.2.1-v20090111/65030c30094de36e3fddbc22442d47cbf547741f/cglib-2.2.1-v20090111-sources.jar"/>
<classpathentry exported="true" kind="lib" path="/home/lhoracek/.gradle/caches/modules-2/files-2.1/com.google.inject/guice/3.0/28586dc97c525501329d9a242fc3402041e3572d/guice-3.0-no_aop.jar"/>
<classpathentry exported="true" kind="lib" path="/home/lhoracek/workspace/tablexia/libs/activeandroid-3.1-SNAPSHOT.jar"/>
<classpathentry exported="true" kind="lib" path="/home/lhoracek/workspace/tablexia/libs/support-v4-r13.jar"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>tablexia</name>
<comment></comment>
<projects>
</projects>
<comment/>
<projects/>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
<buildSpec>
<buildCommand>
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments>
</arguments>
<arguments/>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
<arguments>
</arguments>
<arguments/>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
<arguments/>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
<arguments>
</arguments>
<arguments/>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.springsource.ide.eclipse.gradle.core.nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
<filteredResources>
<filter>
<id>1390837264896</id>
<name></name>
<type>26</type>
<matcher>
<id>org.eclipse.ui.ide.orFilterMatcher</id>
<arguments>
<matcher>
<id>org.eclipse.ui.ide.multiFilter</id>
<arguments>1.0-projectRelativePath-equals-true-false-libraries</arguments>
</matcher>
</arguments>
</matcher>
</filter>
</filteredResources>
<linkedResources/>
</projectDescription>
......@@ -18,7 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="cz.nic.tablexia"
package="cz.nic.tablexia"
android:versionCode="12"
android:versionName="1.0" >
......
......@@ -41,6 +41,151 @@ buildscript {
}
}
apply plugin: 'android'
apply plugin: 'eclipse'
configurations {
unitTest
unitTestCompile.extendsFrom runtime, unitTest
unitTestRuntime.extendsFrom unitTestCompile
}
repositories {
mavenCentral()
maven{url 'http://www.bugsense.com/gradle/'} // bugsense gradle repository
maven{url 'https://repository-achartengine.forge.cloudbees.com/snapshot/'} // achartengine repository
}
dependencies {
compile files('libs/activeandroid-3.1-SNAPSHOT.jar')
compile files('libs/support-v4-r13.jar')
compile project(':libraries:AndEngine-1.0.0-SNAPSHOT')
compile 'org.achartengine:achartengine:1.2.0'
compile 'com.bugsense.trace:bugsense:3.6'
compile 'com.google.code.gson:gson:2.2.4'
compile 'org.roboguice:roboguice:2.0'
compile 'org.apache.commons:commons-lang3:3.1'
compile 'com.google.guava:guava:15.0'
}
sourceSets {
main {
java {
srcDir 'src/main/java'
}
}
unitTest {
java {
srcDir 'src/test/java'
}
}
}
android {
compileSdkVersion 19
buildToolsVersion "19.0.1"
sourceSets {
main {
manifest {
srcFile 'AndroidManifest.xml'
}
res {
srcDir 'res'
}
assets {
srcDir 'assets'
}
}
}
defaultConfig {
targetSdkVersion 19
versionName getVersionNameFromGit()
versionCode getVersionCodeFromGit()
}
lintOptions {
abortOnError false
}
if (project.hasProperty('TABLEXIA_RELEASE_KEYSTORE') && project.hasProperty('TABLEXIA_RELEASE_KEYSTORE_PASSWORD')
&& project.hasProperty('TABLEXIA_RELEASE_KEY_ALIAS') && project.hasProperty('TABLEXIA_RELEASE_KEY_PASSWORD')) {
signingConfigs {
release {
storeFile file(TABLEXIA_RELEASE_KEYSTORE)
storePassword TABLEXIA_RELEASE_KEYSTORE_PASSWORD
keyAlias TABLEXIA_RELEASE_KEY_ALIAS
keyPassword TABLEXIA_RELEASE_KEY_PASSWORD
}
}
buildTypes {
release {
debuggable false
signingConfig signingConfigs.release
applicationVariants.all { variant ->
def file = variant.outputFile
variant.outputFile = new File(file.parent, file.name.replace(".apk", "-" + defaultConfig.versionName + ".apk"))
}
}
}
}
}
eclipse {
jdt {
sourceCompatibility = 1.6
targetCompatibility = 1.6
}
classpath {
sourceSets {
main {
java.srcDirs.addAll( project.sourceSets.main.java.srcDirs.path)
java.srcDirs.addAll( project.sourceSets.unitTest.java.srcDirs.path)
java.srcDirs 'gen'
}
}
plusConfigurations += configurations.compile
plusConfigurations += configurations.unitTestCompile
containers 'com.android.ide.eclipse.adt.ANDROID_FRAMEWORK', 'com.android.ide.eclipse.adt.LIBRARIES'
downloadSources = true
downloadJavadoc = false
file {
whenMerged { classpath ->
configurations.unitTest.each {value -> classpath.entries.findAll { entry -> entry.path == value.path }*.exported = false }
}
}
}
project {
natures.clear()
natures 'com.android.ide.eclipse.adt.AndroidNature'
natures 'org.eclipse.jdt.core.javanature'
buildCommands.clear();
buildCommand "com.android.ide.eclipse.adt.ResourceManagerBuilder"
buildCommand "com.android.ide.eclipse.adt.PreCompilerBuilder"
buildCommand "org.eclipse.jdt.core.javabuilder"
buildCommand "com.android.ide.eclipse.adt.ApkBuilder"
}
}
task wrapper(type: Wrapper) {
gradleVersion = '1.9'
}
task unitTest(type:Test, dependsOn: assemble) {
description = "run unit tests"
testClassesDir = project.sourceSets.unitTest.output.classesDir
classpath = project.sourceSets.unitTest.runtimeClasspath
}
check.dependsOn unitTest
def getVersionNameFromGit() {
def stdout = new ByteArrayOutputStream()
exec {
......@@ -57,78 +202,4 @@ def getVersionCodeFromGit() {
standardOutput = stdout
}
return stdout.toString().trim().toInteger()
}
apply plugin: 'android'
android {
compileSdkVersion 19
buildToolsVersion "19.0.1"
sourceSets {
main {
manifest {
srcFile 'AndroidManifest.xml'
}
res {
srcDir 'res'
}
assets {
srcDir 'assets'
}
}
}
defaultConfig {
targetSdkVersion 19
versionName getVersionNameFromGit()
versionCode getVersionCodeFromGit()
}
lintOptions {
abortOnError false
}
if (project.hasProperty('TABLEXIA_RELEASE_KEYSTORE') && project.hasProperty('TABLEXIA_RELEASE_KEYSTORE_PASSWORD')
&& project.hasProperty('TABLEXIA_RELEASE_KEY_ALIAS') && project.hasProperty('TABLEXIA_RELEASE_KEY_PASSWORD')) {
signingConfigs {
release {
storeFile file(TABLEXIA_RELEASE_KEYSTORE)
storePassword TABLEXIA_RELEASE_KEYSTORE_PASSWORD
keyAlias TABLEXIA_RELEASE_KEY_ALIAS
keyPassword TABLEXIA_RELEASE_KEY_PASSWORD
}
}
buildTypes {
release {
signingConfig signingConfigs.release
applicationVariants.all { variant ->
def file = variant.outputFile
variant.outputFile = new File(file.parent, file.name.replace(".apk", "-" + defaultConfig.versionName + ".apk"))
}
}
}
}
}
repositories {
mavenCentral()
}
dependencies {
compile files('libs/commons-lang3-3.1.jar')
compile files('libs/testflight-sdk-1.3.jar')
compile files('libs/bugsense-3.6.jar')
compile files('libs/gson-2.2.4.jar')
compile files('libs/achartengine-1.2.0.jar')
compile files('libs/activeandroid-3.1-SNAPSHOT.jar')
compile files('libs/guice-2.0-no_aop.jar')
compile files('libs/roboguice-2.0.jar')
compile files('libs/support-v4-r13.jar')
compile project(':libraries:AndEngine-1.0.0-SNAPSHOT')
}
task wrapper(type: Wrapper) {
gradleVersion = '1.9'
}
}
\ No newline at end of file
package org.andengine.opengl.texture.atlas.buildable;
import org.andengine.opengl.texture.atlas.ITextureAtlas;
......@@ -8,53 +9,58 @@ import org.andengine.util.call.Callback;
/**
* (c) 2012 Zynga Inc.
*
*
* @author Nicolas Gramlich <ngramlich@zynga.com>
* @since 15:17:47 - 23.01.2012
*/
public interface IBuildableTextureAtlas<S extends ITextureAtlasSource, T extends ITextureAtlas<S>> extends ITextureAtlas<S> {
// ===========================================================
// Constants
// ===========================================================
// ===========================================================
// Methods
// ===========================================================
/**
* Most likely this is not the method you'd want to be using, as the {@link ITextureAtlasSource} won't get built through this {@link BuildableTextureAtlas}.
* @deprecated Use {@link IBuildableTextureAtlas#addTextureAtlasSource(ITextureAtlasSource)} instead.
*/
@Deprecated
public void addTextureAtlasSource(final S pTextureAtlasSource, final int pTextureX, final int pTextureY);
/**
* Most likely this is not the method you'd want to be using, as the {@link ITextureAtlasSource} won't get built through this {@link BuildableTextureAtlas}.
* @deprecated Use {@link IBuildableTextureAtlas#addTextureAtlasSource(ITextureAtlasSource)} instead.
*/
@Deprecated
public void addTextureAtlasSource(final S pTextureAtlasSource, final int pTextureX, final int pTextureY, final int pTextureAtlasSourcePadding);
/**
* When all {@link ITextureAtlasSource}s are added you have to call {@link #build(ITextureAtlasBuilder)}.
*
* @param pTextureAtlasSource to be added.
* @param pCallback
*/
public void addTextureAtlasSource(final S pTextureAtlasSource, final Callback<S> pCallback);
/**
* Removes a {@link ITextureAtlasSource} before {@link #build(ITextureAtlasBuilder)} is called.
* @param pBitmapTextureAtlasSource to be removed.
*/
public void removeTextureAtlasSource(final ITextureAtlasSource pTextureAtlasSource);
/**
* May draw over already added {@link ITextureAtlasSource}.
*
* @param pTextureAtlasBuilder the {@link ITextureAtlasBuilder} to use for building the {@link ITextureAtlasSource} in this {@link IBuildableTextureAtlas}.
* @return itself for method chaining.
* @throws TextureAtlasBuilderException i.e. when the {@link ITextureAtlasSource} didn't fit into this {@link IBuildableTextureAtlas}.
*/
public IBuildableTextureAtlas<S, T> build(final ITextureAtlasBuilder<S, T> pTextureAtlasBuilder) throws TextureAtlasBuilderException;
}
\ No newline at end of file
// ===========================================================
// Constants
// ===========================================================
// ===========================================================
// Methods
// ===========================================================
/**
* Most likely this is not the method you'd want to be using, as the {@link ITextureAtlasSource} won't get built through this {@link BuildableTextureAtlas}.
*
* @deprecated Use {@link IBuildableTextureAtlas#addTextureAtlasSource(ITextureAtlasSource)} instead.
*/
@Deprecated
@Override
public void addTextureAtlasSource(final S pTextureAtlasSource, final int pTextureX, final int pTextureY);
/**
* Most likely this is not the method you'd want to be using, as the {@link ITextureAtlasSource} won't get built through this {@link BuildableTextureAtlas}.
*
* @deprecated Use {@link IBuildableTextureAtlas#addTextureAtlasSource(ITextureAtlasSource)} instead.
*/
@Deprecated
@Override
public void addTextureAtlasSource(final S pTextureAtlasSource, final int pTextureX, final int pTextureY, final int pTextureAtlasSourcePadding);
/**
* When all {@link ITextureAtlasSource}s are added you have to call {@link #build(ITextureAtlasBuilder)}.
*
* @param pTextureAtlasSource to be added.
* @param pCallback
*/
public void addTextureAtlasSource(final S pTextureAtlasSource, final Callback<S> pCallback);
/**
* Removes a {@link ITextureAtlasSource} before {@link #build(ITextureAtlasBuilder)} is called.
*
* @param pBitmapTextureAtlasSource to be removed.
*/
public void removeTextureAtlasSource(final ITextureAtlasSource pTextureAtlasSource);
/**
* May draw over already added {@link ITextureAtlasSource}.
*
* @param pTextureAtlasBuilder the {@link ITextureAtlasBuilder} to use for building the {@link ITextureAtlasSource} in this {@link IBuildableTextureAtlas}.
* @return itself for method chaining.
* @throws TextureAtlasBuilderException i.e. when the {@link ITextureAtlasSource} didn't fit into this {@link IBuildableTextureAtlas}.
*/
public IBuildableTextureAtlas<S, T> build(final ITextureAtlasBuilder<S, T> pTextureAtlasBuilder) throws TextureAtlasBuilderException;
}
package org.andengine.util.modifier;
import org.andengine.util.modifier.ease.EaseLinear;
......@@ -6,118 +7,121 @@ import org.andengine.util.modifier.ease.IEaseFunction;
/**
* (c) 2010 Nicolas Gramlich
* (c) 2011 Zynga Inc.
*
*
* @author Nicolas Gramlich
* @since 10:51:46 - 03.09.2010
* @param <T>
*/
public abstract class BaseDoubleValueSpanModifier<T> extends BaseSingleValueSpanModifier<T> {
// ===========================================================
// Constants
// ===========================================================
// ===========================================================
// Fields
// ===========================================================
private float mFromValueB;
private float mValueSpanB;
// ===========================================================
// Constructors
// ===========================================================
public BaseDoubleValueSpanModifier(final float pDuration, final float pFromValueA, final float pToValueA, final float pFromValueB, final float pToValueB) {
this(pDuration, pFromValueA, pToValueA, pFromValueB, pToValueB, null, EaseLinear.getInstance());
}
public BaseDoubleValueSpanModifier(final float pDuration, final float pFromValueA, final float pToValueA, final float pFromValueB, final float pToValueB, final IEaseFunction pEaseFunction) {
this(pDuration, pFromValueA, pToValueA, pFromValueB, pToValueB, null, pEaseFunction);
}
public BaseDoubleValueSpanModifier(final float pDuration, final float pFromValueA, final float pToValueA, final float pFromValueB, final float pToValueB, final IModifierListener<T> pModifierListener) {
this(pDuration, pFromValueA, pToValueA, pFromValueB, pToValueB, pModifierListener, EaseLinear.getInstance());
}
public BaseDoubleValueSpanModifier(final float pDuration, final float pFromValueA, final float pToValueA, final float pFromValueB, final float pToValueB, final IModifierListener<T> pModifierListener, final IEaseFunction pEaseFunction) {
super(pDuration, pFromValueA, pToValueA, pModifierListener, pEaseFunction);
this.mFromValueB = pFromValueB;
this.mValueSpanB = pToValueB - pFromValueB;
}
protected BaseDoubleValueSpanModifier(final BaseDoubleValueSpanModifier<T> pBaseDoubleValueSpanModifier) {
super(pBaseDoubleValueSpanModifier);
this.mFromValueB = pBaseDoubleValueSpanModifier.mFromValueB;
this.mValueSpanB = pBaseDoubleValueSpanModifier.mValueSpanB;
}
// ===========================================================
// Getter & Setter
// ===========================================================
@Deprecated
public float getFromValue() {
return super.getFromValue();
}
@Deprecated
public float getToValue() {
return super.getToValue();
}
public float getFromValueA() {
return super.getFromValue();
}
public float getToValueA() {
return super.getToValue();
}
public float getFromValueB() {
return this.mFromValueB;
}
public float getToValueB() {
return this.mFromValueB + this.mValueSpanB;
}
// ===========================================================
// Methods for/from SuperClass/Interfaces
// ===========================================================
protected abstract void onSetInitialValues(final T pItem, final float pValueA, final float pValueB);
protected abstract void onSetValues(final T pItem, final float pPercentageDone, final float pValueA, final float pValueB);
@Override
protected void onSetInitialValue(final T pItem, final float pValueA) {
this.onSetInitialValues(pItem, pValueA, this.mFromValueB);
}
@Override
protected void onSetValue(final T pItem, final float pPercentageDone, final float pValueA) {
this.onSetValues(pItem, pPercentageDone, pValueA, this.mFromValueB + pPercentageDone * this.mValueSpanB);
}
@Override
@Deprecated
public void reset(final float pDuration, final float pFromValue, final float pToValue) {
super.reset(pDuration, pFromValue, pToValue);
}
// ===========================================================
// Methods
// ===========================================================
public void reset(final float pDuration, final float pFromValueA, final float pToValueA, final float pFromValueB, final float pToValueB) {
super.reset(pDuration, pFromValueA, pToValueA);
this.mFromValueB = pFromValueB;
this.mValueSpanB = pToValueB - pFromValueB;
}
// ===========================================================
// Inner and Anonymous Classes
// ===========================================================
// ===========================================================
// Constants
// ===========================================================
// ===========================================================
// Fields
// ===========================================================
private float mFromValueB;
private float mValueSpanB;
// ===========================================================
// Constructors
// ===========================================================
public BaseDoubleValueSpanModifier(final float pDuration, final float pFromValueA, final float pToValueA, final float pFromValueB, final float pToValueB) {
this(pDuration, pFromValueA, pToValueA, pFromValueB, pToValueB, null, EaseLinear.getInstance());
}
public BaseDoubleValueSpanModifier(final float pDuration, final float pFromValueA, final float pToValueA, final float pFromValueB, final float pToValueB, final IEaseFunction pEaseFunction) {
this(pDuration, pFromValueA, pToValueA, pFromValueB, pToValueB, null, pEaseFunction);
}
public BaseDoubleValueSpanModifier(final float pDuration, final float pFromValueA, final float pToValueA, final float pFromValueB, final float pToValueB, final IModifierListener<T> pModifierListener) {
this(pDuration, pFromValueA, pToValueA, pFromValueB, pToValueB, pModifierListener, EaseLinear.getInstance());
}
public BaseDoubleValueSpanModifier(final float pDuration, final float pFromValueA, final float pToValueA, final float pFromValueB, final float pToValueB, final IModifierListener<T> pModifierListener, final IEaseFunction pEaseFunction) {
super(pDuration, pFromValueA, pToValueA, pModifierListener, pEaseFunction);
this.mFromValueB = pFromValueB;
this.mValueSpanB = pToValueB - pFromValueB;
}
protected BaseDoubleValueSpanModifier(final BaseDoubleValueSpanModifier<T> pBaseDoubleValueSpanModifier) {
super(pBaseDoubleValueSpanModifier);
this.mFromValueB = pBaseDoubleValueSpanModifier.mFromValueB;
this.mValueSpanB = pBaseDoubleValueSpanModifier.mValueSpanB;
}
// ===========================================================
// Getter & Setter
// ===========================================================
@Deprecated
@Override
public float getFromValue() {
return super.getFromValue();
}
@Deprecated
@Override
public float getToValue() {
return super.getToValue();
}
public float getFromValueA() {
return super.getFromValue();
}
public float getToValueA() {
return super.getToValue();
}
public float getFromValueB() {
return this.mFromValueB;
}
public float getToValueB() {
return this.mFromValueB + this.mValueSpanB;
}
// ===========================================================
// Methods for/from SuperClass/Interfaces
// ===========================================================
protected abstract void onSetInitialValues(final T pItem, final float pValueA, final float pValueB);
protected abstract void onSetValues(final T pItem, final float pPercentageDone, final float pValueA, final float pValueB);
@Override
protected void onSetInitialValue(final T pItem, final float pValueA) {
this.onSetInitialValues(pItem, pValueA, this.mFromValueB);
}
@Override
protected void onSetValue(final T pItem, final float pPercentageDone, final float pValueA) {
this.onSetValues(pItem, pPercentageDone, pValueA, this.mFromValueB + (pPercentageDone * this.mValueSpanB));
}
@Override
@Deprecated
public void reset(final float pDuration, final float pFromValue, final float pToValue) {
super.reset(pDuration, pFromValue, pToValue);
}
// ===========================================================
// Methods
// ===========================================================
public void reset(final float pDuration, final float pFromValueA, final float pToValueA, final float pFromValueB, final float pToValueB) {
super.reset(pDuration, pFromValueA, pToValueA);
this.mFromValueB = pFromValueB;
this.mValueSpanB = pToValueB - pFromValueB;
}
// ===========================================================
// Inner and Anonymous Classes
// ===========================================================
}