Package com.github.weisj.darklaf.icons
Interface MutableThemedIcon
-
- All Superinterfaces:
DynamicIcon,Icon,ThemedIcon
- All Known Implementing Classes:
CustomThemedIcon
public interface MutableThemedIcon extends ThemedIcon
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Map<Object,Object>getContextProperties()Map<Object,Object>getProperties()default ObjectgetProperty(Object key)Get a property.default <T> TgetPropertyOfType(Object key, Class<T> type)Get a property of a given type.voidsetContextProperties(Map<Object,Object> props)voidsetProperties(Map<Object,Object> props)default voidsetProperty(Object key, Object value)Set a property if the underlying property map supports mutation.-
Methods inherited from interface javax.swing.Icon
getIconHeight, getIconWidth, paintIcon
-
-
-
-
Method Detail
-
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.
-
-