java.lang.Object
java.util.AbstractMap<K,V>
java.util.TreeMap<Integer,StyleDeclarations>
com.inductiveautomation.perspective.common.config.styles.KeyFramesConfig
All Implemented Interfaces:
Serializable, Cloneable, Map<Integer,StyleDeclarations>, NavigableMap<Integer,StyleDeclarations>, SortedMap<Integer,StyleDeclarations>

public class KeyFramesConfig extends TreeMap<Integer,StyleDeclarations>
See Also:
  • Constructor Details

    • KeyFramesConfig

      public KeyFramesConfig()
      Makes a new, empty (invalid) keyframe config
    • KeyFramesConfig

      public KeyFramesConfig(KeyFramesConfig copy)
      Makes a deep copy
    • KeyFramesConfig

      public KeyFramesConfig(com.inductiveautomation.ignition.common.gson.JsonObject obj, KeyStyle keyStyle)
      Parses the keyframe config from its json storage format.
  • Method Details

    • asJsonObject

      public com.inductiveautomation.ignition.common.gson.JsonObject asJsonObject(KeyStyle keyStyle)
    • isValid

      public boolean isValid()
      Returns:
      true if this keyframe config contains an entry for zero and 100, which are both required for a valid keyframe config.