Class TransitionParser


  • public class TransitionParser
    extends java.lang.Object
    Contains code for Parsing Transitions
    • Constructor Detail

      • TransitionParser

        public TransitionParser()
    • Method Detail

      • parse

        public static void parse​(CLObject json,
                                 Transition transition,
                                 CorePixelDp dpToPixel)
                          throws CLParsingException
        Parse a JSON string of a Transition and insert it into the Transition object
        Parameters:
        json - Transition Object to parse.
        transition - Transition Object to write transition to
        Throws:
        CLParsingException
      • parseKeyFrames

        public static void parseKeyFrames​(CLObject transitionCLObject,
                                          Transition transition)
                                   throws CLParsingException
        Parses KeyFrames attributes from the CLObject into Transition.
        Parameters:
        transitionCLObject - the CLObject for the root transition json
        transition - core object that holds the state of the Transition
        Throws:
        CLParsingException