public abstract class AbstractIconSet extends Object implements IconSet, Overwriting, Cloneable, Serializable
IconSet
common method implementations.IconSet
,
IconManager
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected Map<String,Icon> |
cache
Loaded
Icon s cache. |
protected Map<String,IconSource> |
iconsData
IconSource cache used for loading icons lazily. |
protected String |
id
Unique
IconSet identifier. |
Constructor and Description |
---|
AbstractIconSet(String id)
Constructs new
AbstractIconSet . |
Modifier and Type | Method and Description |
---|---|
void |
addIcon(IconSource icon)
Adds new
Icon referenced by specified IconSource into the set. |
Icon |
findIcon(String id)
Returns
Icon for the specified identifier. |
String |
getId() |
List<String> |
getIds()
Returns identifiers of all
Icon s in the set. |
boolean |
isOverwrite() |
@NotNull protected final Map<String,IconSource> iconsData
@Nullable @OmitOnClone @OmitOnMerge protected transient Map<String,Icon> cache
public AbstractIconSet(@NotNull String id)
AbstractIconSet
.id
- unique IconSet
identifier@NotNull public String getId()
getId
in interface Identifiable
getId
in interface IconSet
public boolean isOverwrite()
isOverwrite
in interface Overwriting
@NotNull public List<String> getIds()
IconSet
Icon
s in the set.public void addIcon(@NotNull IconSource icon)
IconSet
Icon
referenced by specified IconSource
into the set.addIcon
in interface IconSet
icon
- IconSource
of the Icon
to addCopyright © 2020. All rights reserved.