Class Property


  • public abstract class Property
    extends java.lang.Object
    Class to hold user-defined properties.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Property​(A3DObject owner, java.lang.String name)
      Initializes a new instance of the Property class.
    • Method Summary

      Modifier and Type Method Description
      Curve getCurve​(AnimationNode anim, boolean create)
      Gets the curve on specified animation instance.
      CurveMapping getCurveMapping​(AnimationNode anim, boolean create)
      Gets the curve mapping on specified animation instance.
      java.lang.String getName()
      Gets the name of the property
      abstract java.lang.Object getValue()
      Gets the value.
      abstract java.lang.Class<?> getValueType()
      Gets the type of the property value.
      abstract void setValue​(java.lang.Object value)
      Sets the value.
      java.lang.String toString()
      Returns a string that represents the current Property.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Property

        protected Property​(A3DObject owner,
                           java.lang.String name)
        Initializes a new instance of the Property class.
        Parameters:
        owner - Owner.
        name - Name.
    • Method Detail

      • getValue

        public abstract java.lang.Object getValue()
        Gets the value.
      • setValue

        public abstract void setValue​(java.lang.Object value)
        Sets the value.
        Parameters:
        value - New value
      • getName

        public java.lang.String getName()
        Gets the name of the property
      • getValueType

        public abstract java.lang.Class<?> getValueType()
        Gets the type of the property value.
      • getCurveMapping

        public CurveMapping getCurveMapping​(AnimationNode anim,
                                            boolean create)
        Gets the curve mapping on specified animation instance.
        Parameters:
        anim - On which animation to create the curve mapping.
        create - Create the curve mapping if it's not found.
        Returns:
        The curve mapping on specified animation instance
      • getCurve

        public Curve getCurve​(AnimationNode anim,
                              boolean create)
        Gets the curve on specified animation instance.
        Parameters:
        anim - On which animation to create the curve.
        create - Create the curve if it's not found.
        Returns:
        The curve on specified animation instance
      • toString

        public java.lang.String toString()
        Returns a string that represents the current Property.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string that represents the current Property.