Interface MutableThemedIcon

All Superinterfaces:
DynamicIcon, Icon, ThemedIcon
All Known Implementing Classes:
CustomThemedIcon

public interface MutableThemedIcon extends ThemedIcon
  • Method Details

    • getProperties

      Map<Object,​Object> getProperties()
    • setProperties

      void setProperties(Map<Object,​Object> props)
    • getContextProperties

      Map<Object,​Object> getContextProperties()
    • setContextProperties

      void setContextProperties(Map<Object,​Object> props)
    • setProperty

      default void setProperty(Object key, Object value) throws UnsupportedOperationException
      Set a property if the underlying property map supports mutation.
      Parameters:
      key - the property key.
      value - the property value.
      Throws:
      UnsupportedOperationException - if the underlying property map doesnt support mutation.
    • getProperty

      default Object getProperty(Object key)
      Get a property.
      Parameters:
      key - the property key.
      Returns:
      the property value.
    • getPropertyOfType

      default <T> T getPropertyOfType(Object key, Class<T> type)
      Get a property of a given type.
      Type Parameters:
      T - the types type parameter.
      Parameters:
      key - the property key.
      type - the type.
      Returns:
      the property value if the type matches or null otherwise.