当前位置: 首页>>代码示例>>Java>>正文


Java Property类代码示例

本文整理汇总了Java中com.nineoldandroids.util.Property的典型用法代码示例。如果您正苦于以下问题:Java Property类的具体用法?Java Property怎么用?Java Property使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


Property类属于com.nineoldandroids.util包,在下文中一共展示了Property类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setProperty

import com.nineoldandroids.util.Property; //导入依赖的package包/类
/**
 * Sets the property that will be animated. Property objects will take precedence over
 * properties specified by the {@link #setPropertyName(String)} method. Animations should
 * be set up to use one or the other, not both.
 *
 * @param property The property being animated. Should not be null.
 */
public void setProperty(Property property) {
    // mValues could be null if this is being constructed piecemeal. Just record the
    // propertyName to be used later when setValues() is called if so.
    if (mValues != null) {
        PropertyValuesHolder valuesHolder = mValues[0];
        String oldName = valuesHolder.getPropertyName();
        valuesHolder.setProperty(property);
        mValuesMap.remove(oldName);
        mValuesMap.put(mPropertyName, valuesHolder);
    }
    if (mProperty != null) {
        mPropertyName = property.getName();
    }
    mProperty = property;
    // New property/values/target should cause re-initialization prior to starting
    mInitialized = false;
}
 
开发者ID:junchenChow,项目名称:exciting-app,代码行数:25,代码来源:ObjectAnimator.java

示例2: setProperty

import com.nineoldandroids.util.Property; //导入依赖的package包/类
public void setProperty(Property property)
{
    if (k != null)
    {
        PropertyValuesHolder propertyvaluesholder = k[0];
        String s = propertyvaluesholder.getPropertyName();
        propertyvaluesholder.setProperty(property);
        l.remove(s);
        l.put(p, propertyvaluesholder);
    }
    if (q != null)
    {
        p = property.getName();
    }
    q = property;
    j = false;
}
 
开发者ID:vishnudevk,项目名称:MiBandDecompiled,代码行数:18,代码来源:ObjectAnimator.java

示例3: ofKeyframe

import com.nineoldandroids.util.Property; //导入依赖的package包/类
public static transient PropertyValuesHolder ofKeyframe(Property property, Keyframe akeyframe[])
{
    k k1 = com.nineoldandroids.animation.k.a(akeyframe);
    if (k1 instanceof g)
    {
        return new B(property, (g)k1);
    }
    if (k1 instanceof f)
    {
        return new A(property, (f)k1);
    } else
    {
        PropertyValuesHolder propertyvaluesholder = new PropertyValuesHolder(property);
        propertyvaluesholder.d = k1;
        propertyvaluesholder.c = akeyframe[0].getType();
        return propertyvaluesholder;
    }
}
 
开发者ID:vishnudevk,项目名称:MiBandDecompiled,代码行数:19,代码来源:PropertyValuesHolder.java

示例4: PropertyValuesHolder

import com.nineoldandroids.util.Property; //导入依赖的package包/类
/**
 * Internal utility constructor, used by the factory methods to set the property.
 * @param property The property for this holder.
 */
private PropertyValuesHolder(Property property) {
    mProperty = property;
    if (property != null) {
        mPropertyName = property.getName();
    }
}
 
开发者ID:junchenChow,项目名称:exciting-app,代码行数:11,代码来源:PropertyValuesHolder.java

示例5: IntPropertyValuesHolder

import com.nineoldandroids.util.Property; //导入依赖的package包/类
public IntPropertyValuesHolder(Property property, IntKeyframeSet keyframeSet) {
    super(property);
    mValueType = int.class;
    mKeyframeSet = keyframeSet;
    mIntKeyframeSet = (IntKeyframeSet) mKeyframeSet;
    if (property instanceof  IntProperty) {
        mIntProperty = (IntProperty) mProperty;
    }
}
 
开发者ID:junchenChow,项目名称:exciting-app,代码行数:10,代码来源:PropertyValuesHolder.java

示例6: FloatPropertyValuesHolder

import com.nineoldandroids.util.Property; //导入依赖的package包/类
public FloatPropertyValuesHolder(Property property, FloatKeyframeSet keyframeSet) {
    super(property);
    mValueType = float.class;
    mKeyframeSet = keyframeSet;
    mFloatKeyframeSet = (FloatKeyframeSet) mKeyframeSet;
    if (property instanceof FloatProperty) {
        mFloatProperty = (FloatProperty) mProperty;
    }
}
 
开发者ID:junchenChow,项目名称:exciting-app,代码行数:10,代码来源:PropertyValuesHolder.java

示例7: setProperty

import com.nineoldandroids.util.Property; //导入依赖的package包/类
public void setProperty(Property property) {
    if (this.mValues != null) {
        PropertyValuesHolder valuesHolder = this.mValues[0];
        String oldName = valuesHolder.getPropertyName();
        valuesHolder.setProperty(property);
        this.mValuesMap.remove(oldName);
        this.mValuesMap.put(this.mPropertyName, valuesHolder);
    }
    if (this.mProperty != null) {
        this.mPropertyName = property.getName();
    }
    this.mProperty = property;
    this.mInitialized = false;
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:15,代码来源:ObjectAnimator.java

示例8: ofObject

import com.nineoldandroids.util.Property; //导入依赖的package包/类
public static <T, V> ObjectAnimator ofObject(T target, Property<T, V> property,
                                             TypeEvaluator<V> evaluator, V... values) {
    ObjectAnimator anim = new ObjectAnimator((Object) target, (Property) property);
    anim.setObjectValues(values);
    anim.setEvaluator(evaluator);
    return anim;
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:8,代码来源:ObjectAnimator.java

示例9: initAnimation

import com.nineoldandroids.util.Property; //导入依赖的package包/类
void initAnimation() {
    if (!this.mInitialized) {
        if (this.mProperty == null && AnimatorProxy.NEEDS_PROXY && (this.mTarget instanceof
                View) && PROXY_PROPERTIES.containsKey(this.mPropertyName)) {
            setProperty((Property) PROXY_PROPERTIES.get(this.mPropertyName));
        }
        for (PropertyValuesHolder propertyValuesHolder : this.mValues) {
            propertyValuesHolder.setupSetterAndGetter(this.mTarget);
        }
        super.initAnimation();
    }
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:13,代码来源:ObjectAnimator.java

示例10: FloatPropertyValuesHolder

import com.nineoldandroids.util.Property; //导入依赖的package包/类
public FloatPropertyValuesHolder(Property property, FloatKeyframeSet keyframeSet) {
    super(property);
    this.mValueType = Float.TYPE;
    this.mKeyframeSet = keyframeSet;
    this.mFloatKeyframeSet = (FloatKeyframeSet) this.mKeyframeSet;
    if (property instanceof FloatProperty) {
        this.mFloatProperty = (FloatProperty) this.mProperty;
    }
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:10,代码来源:PropertyValuesHolder.java

示例11: IntPropertyValuesHolder

import com.nineoldandroids.util.Property; //导入依赖的package包/类
public IntPropertyValuesHolder(Property property, IntKeyframeSet keyframeSet) {
    super(property);
    this.mValueType = Integer.TYPE;
    this.mKeyframeSet = keyframeSet;
    this.mIntKeyframeSet = (IntKeyframeSet) this.mKeyframeSet;
    if (property instanceof IntProperty) {
        this.mIntProperty = (IntProperty) this.mProperty;
    }
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:10,代码来源:PropertyValuesHolder.java

示例12: PropertyValuesHolder

import com.nineoldandroids.util.Property; //导入依赖的package包/类
private PropertyValuesHolder(Property property) {
    this.mSetter = null;
    this.mGetter = null;
    this.mKeyframeSet = null;
    this.mPropertyMapLock = new ReentrantReadWriteLock();
    this.mTmpValueArray = new Object[1];
    this.mProperty = property;
    if (property != null) {
        this.mPropertyName = property.getName();
    }
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:12,代码来源:PropertyValuesHolder.java

示例13: ofObject

import com.nineoldandroids.util.Property; //导入依赖的package包/类
public static <V> PropertyValuesHolder ofObject(Property property, TypeEvaluator<V>
        evaluator, V... values) {
    PropertyValuesHolder pvh = new PropertyValuesHolder(property);
    pvh.setObjectValues(values);
    pvh.setEvaluator(evaluator);
    return pvh;
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:8,代码来源:PropertyValuesHolder.java

示例14: ofKeyframe

import com.nineoldandroids.util.Property; //导入依赖的package包/类
public static PropertyValuesHolder ofKeyframe(Property property, Keyframe... values) {
    KeyframeSet keyframeSet = KeyframeSet.ofKeyframe(values);
    if (keyframeSet instanceof IntKeyframeSet) {
        return new IntPropertyValuesHolder(property, (IntKeyframeSet) keyframeSet);
    }
    if (keyframeSet instanceof FloatKeyframeSet) {
        return new FloatPropertyValuesHolder(property, (FloatKeyframeSet) keyframeSet);
    }
    PropertyValuesHolder pvh = new PropertyValuesHolder(property);
    pvh.mKeyframeSet = keyframeSet;
    pvh.mValueType = values[0].getType();
    return pvh;
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:14,代码来源:PropertyValuesHolder.java


注:本文中的com.nineoldandroids.util.Property类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。