public class IconManager extends UIProperties<Icon,DockIcon,DockIconBridge>
priorities, only the icon with the highest priority
will be returned.DockIcon in order to read values from this
manager.DropDownIcon.ICON_KEY: this icon is painted for DropDownActions, it is
a small triangle pointing downwards. DockUI.OVERFLOW_MENU_ICON: the icon used for the menu that is created if there are too many buttons
of actions in a row.| Modifier and Type | Field and Description |
|---|---|
static PropertyKey<Dimension> |
MINIMUM_ICON_SIZE
What size the framework should expect the smallest icon to be.
|
| Constructor and Description |
|---|
IconManager(DockController controller)
Creates a new
IconManager. |
| Modifier and Type | Method and Description |
|---|---|
void |
setIcon(String key,
Priority priority,
Icon icon)
Stores an icon.
|
void |
setIconClient(String key,
Icon icon)
Sets an icon with client-priority.
|
void |
setIconDefault(String key,
Icon icon)
Sets an icon with default-priority.
|
void |
setIconTheme(String key,
Icon icon)
Sets an icon with theme-priority.
|
add, clear, get, get, getBridge, getBridgeFor, getController, getScheme, isObserved, isObserved, isStored, lockUpdate, publish, put, remove, setScheme, unlockUpdate, unpublish, unpublishpublic static final PropertyKey<Dimension> MINIMUM_ICON_SIZE
Components. This is not a hard boundary, just expect any
icon smaller than this constant to be surrounded by some additional empty space. The default size
is 16x16 pixels.public IconManager(DockController controller)
IconManager.controller - the owner of this mappublic void setIcon(String key, Priority priority, Icon icon)
key - the key of the iconpriority - the priority, where Priority.CLIENT is the
highest, Priority.DEFAULT the lowest. Icons stored with the
same key but another priority are not deleted.icon - the icon, null if the icon should be removedpublic void setIconDefault(String key, Icon icon)
key - the key of the iconicon - the icon or nullpublic void setIconTheme(String key, Icon icon)
key - the key of the iconicon - the icon or nullCopyright © 2017 Docking Frames. All rights reserved.