java.lang.Object
org.autogui.swing.icons.GuiSwingIcons
an
Icon factory-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classan action button with the customized borderstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Iconprotected static GuiSwingIconsstatic Stringprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIconWords(String... names) voidaddSynonym(String name, String... synonyms) getDefaultIcon(String name) static GuiSwingIconsgetPressedIcon(String name) returns a gray version of the icon obtained by getIcon(name).getPressedIcon(String prefix, String name, int width, int height) voidloadIconOrDefault(String name) loadPressedIcon(String name) loadPressedIcon(Icon icon) manually sets the icon for the nameputIconAction(String name, Icon icon) manually sets the icon for "action-" + name
-
Field Details
-
instance
-
iconMap
-
pressedIconMap
-
iconWords
-
synonyms
-
defaultIcon
-
suffix
-
PRESSED_ICON_KEY
-
-
Constructor Details
-
GuiSwingIcons
public GuiSwingIcons()
-
-
Method Details
-
getInstance
-
putIcon
manually sets the icon for the name- Parameters:
prefix- a prefix of the namename- the name of the iconicon- the icon instance- Returns:
- this
- Since:
- 1.2
-
putIconAction
manually sets the icon for "action-" + name- Parameters:
name- the name of the iconicon- the icon instance- Returns:
- this
- Since:
- 1.2
-
getIcon
-
getIcon
-
loadIconOrDefault
-
loadIcon
-
loadIcon
-
getDefaultIcon
-
addSynonym
-
addIconWords
-
getIconWords
-
getIconMap
- Returns:
- loaded icon entries. initially, empty
-
getPressedIconMap
-
getSynonyms
-
getPressedIcon
returns a gray version of the icon obtained by getIcon(name). this can be set for the pressed icon of a button:button.setPressedIcon(icons.getPressedIcon(name));Default impl. of some UI automatically generates the pressed icon for an ImageIcon, but does not for another icon type.- Parameters:
name- the action icon name- Returns:
- the pressed icon for the name
-
loadPressedIcon
-
loadPressedIcon
-
getPressedIcon
-
getAcceptIcon
-
getAddIcon
-
getAdjustIcon
-
getApplyIcon
-
getBindIcon
-
getBuildIcon
-
getCalculateIcon
-
getCallIcon
-
getChangeIcon
-
getCheckIcon
-
getClearIcon
-
getCloseIcon
-
getCollectIcon
-
getCommitIcon
-
getCompareIcon
-
getCompleteIcon
-
getComposeIcon
-
getConfigureIcon
-
getConnectIcon
-
getConvertIcon
-
getCopyIcon
-
getCountIcon
-
getCreateIcon
-
getDeactivateIcon
-
getDecodeIcon
-
getDefineIcon
-
getDeleteIcon
-
getDeriveIcon
-
getDivideIcon
-
getDownIcon
-
getDrawIcon
-
getEncodeIcon
-
getEnsureIcon
-
getExportIcon
-
getExtractIcon
-
getFillIcon
-
getFindIcon
-
getFocusIcon
-
getGetIcon
-
getHandleIcon
-
getHelpIcon
-
getHideIcon
-
getListIcon
-
getLoadIcon
-
getLockIcon
-
getMapIcon
-
getMarkIcon
-
getMergeIcon
-
getMinusIcon
-
getMoveIcon
-
getMultiplyIcon
-
getNegateIcon
-
getNextIcon
-
getNormalizeIcon
-
getNotifyIcon
-
getPaintIcon
-
getPeekIcon
-
getPlusIcon
-
getPreviousIcon
-
getPrintIcon
-
getProvideIcon
-
getPublishIcon
-
getPutIcon
-
getReadIcon
-
getReceiveIcon
-
getReduceIcon
-
getRegisterIcon
-
getReleaseIcon
-
getRemoveIcon
-
getRenameIcon
-
getReplaceIcon
-
getRequestIcon
-
getResizeIcon
-
getResolveIcon
-
getRetainIcon
-
getReverseIcon
-
getRotateIcon
-
getSaveIcon
-
getScheduleIcon
-
getScrollIcon
-
getSelectIcon
-
getSetIcon
-
getShiftIcon
-
getShowIcon
-
getSkipIcon
-
getSliceIcon
-
getSortIcon
-
getSplitIcon
-
getStartIcon
-
getStopIcon
-
getSyncIcon
-
getTrimIcon
-
getTryIcon
-
getUndoIcon
-
getUnlockIcon
-
getUnregisterIcon
-
getUnwrapIcon
-
getUpIcon
-
getUpdateIcon
-
getUseIcon
-
getWaitIcon
-
getWrapIcon
-
getWriteIcon
-
initSynonyms
public void initSynonyms()
-