Class MotionKey

    • Constructor Detail

      • MotionKey

        public MotionKey()
    • Method Detail

      • getAttributeNames

        public abstract void getAttributeNames​(java.util.HashSet<java.lang.String> attributes)
      • addValues

        public abstract void addValues​(java.util.HashMap<java.lang.String,​SplineSet> splines)
        Defines method to add a a view to splines derived form this key frame. The values are written to the spline
        Parameters:
        splines - splines to write values to
      • setInterpolation

        public void setInterpolation​(java.util.HashMap<java.lang.String,​java.lang.Integer> interpolation)
        Key frame can specify the type of interpolation it wants on various attributes For each string it set it to -1, CurveFit.LINEAR or CurveFit.SPLINE
      • clone

        public abstract MotionKey clone()
        Overrides:
        clone in class java.lang.Object
      • setViewId

        public MotionKey setViewId​(int id)
      • setFramePosition

        public void setFramePosition​(int pos)
        sets the frame position
      • getFramePosition

        public int getFramePosition()
        Gets the current frame position
      • setValue

        public boolean setValue​(int type,
                                int value)
        Description copied from interface: TypedValues
        Used to set integer values
        Specified by:
        setValue in interface TypedValues
        Returns:
        true if it accepted the value
      • setValue

        public boolean setValue​(int type,
                                float value)
        Description copied from interface: TypedValues
        Used to set float values
        Specified by:
        setValue in interface TypedValues
        Returns:
        true if it accepted the value
      • setValue

        public boolean setValue​(int type,
                                java.lang.String value)
        Description copied from interface: TypedValues
        Used to set String values
        Specified by:
        setValue in interface TypedValues
        Returns:
        true if it accepted the value
      • setValue

        public boolean setValue​(int type,
                                boolean value)
        Description copied from interface: TypedValues
        Used to set boolean values
        Specified by:
        setValue in interface TypedValues
        Returns:
        true if it accepted the value
      • setCustomAttribute

        public void setCustomAttribute​(java.lang.String name,
                                       int type,
                                       float value)
      • setCustomAttribute

        public void setCustomAttribute​(java.lang.String name,
                                       int type,
                                       int value)
      • setCustomAttribute

        public void setCustomAttribute​(java.lang.String name,
                                       int type,
                                       boolean value)
      • setCustomAttribute

        public void setCustomAttribute​(java.lang.String name,
                                       int type,
                                       java.lang.String value)