Package resources
Class Icons
java.lang.Object
resources.Icons
A class to get generic icons for standard actions. All methods in this class return an
icon that is 16x16 unless the method name ends in another size.'
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Icon
static final Icon
static final Icon
static final Icon
static final Icon
static final Icon
static final Icon
static final Icon
static final Icon
static final Icon
static final Icon
static final Icon
static final Icon
static final Icon
static final Icon
static final Icon
static final Icon
static final Icon
An version of the LEFT_ICON with a different colorstatic final Icon
static final Icon
static final Icon
static final Icon
static final Icon
static final Icon
static final Icon
static final Icon
static final Icon
An version of the RIGHT_ICON with a different colorstatic final Icon
static final Icon
static final Icon
static final Icon
static final Icon
static final Icon
static final Icon
static final Icon
static final Icon
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImageIcon
Gets the icon for the given icon path.static ImageIcon
Gets the icon for the given icon path and scale it to the specified width and height.static IconProvider
getIconForIconsReference
(String snippet) Returns anIconProvider
for the given string value, which is usually the 'src' attribute of an IMG tagstatic boolean
isIconsReference
(String snippet) Returns true if the given string is a Java code snippet that references this class
-
Field Details
-
EMPTY_ICON
-
HELP_ICON
-
ADD_ICON
-
COPY_ICON
-
CUT_ICON
-
PASTE_ICON
-
COLLAPSE_ALL_ICON
-
EXPAND_ALL_ICON
-
CONFIGURE_FILTER_ICON
-
CLEAR_ICON
-
DELETE_ICON
-
ERROR_ICON
-
HOME_ICON
-
NAVIGATE_ON_INCOMING_EVENT_ICON
-
NAVIGATE_ON_OUTGOING_EVENT_ICON
-
NOT_ALLOWED_ICON
-
OPEN_FOLDER_ICON
-
CLOSED_FOLDER_ICON
-
REFRESH_ICON
-
SORT_ASCENDING_ICON
-
SORT_DESCENDING_ICON
-
STOP_ICON
-
STRONG_WARNING_ICON
-
WARNING_ICON
-
INFO_ICON
-
LEFT_ICON
-
RIGHT_ICON
-
UP_ICON
-
DOWN_ICON
-
LEFT_ALTERNATE_ICON
An version of the LEFT_ICON with a different color -
RIGHT_ALTERNATE_ICON
An version of the RIGHT_ICON with a different color -
SAVE_ICON
-
SAVE_AS_ICON
-
MAKE_SELECTION_ICON
-
ARROW_DOWN_RIGHT_ICON
-
ARROW_UP_LEFT_ICON
-
-
Method Details
-
isIconsReference
Returns true if the given string is a Java code snippet that references this class- Parameters:
snippet
- the string to check- Returns:
- true if the given string is a Java code snippet that references this class
-
getIconForIconsReference
Returns anIconProvider
for the given string value, which is usually the 'src' attribute of an IMG tag- Parameters:
snippet
- the snippet- Returns:
- the icon provider
-
get
Gets the icon for the given icon path. The given path should be relative to the classpath. If an icon by that name can't be found, the default "bomb" icon is returned instead.For example, an icon named foo.png would typically be stored in the module at "{modulePath}/src/main/resources/image/foo.png". To reference that icon, use the path "images/foo.png", since "{modulePath}/src/main/resources" is in the classpath.
- Parameters:
iconPath
- the icon path (relative to the classpath)- Returns:
- The icon referenced by that path.
-
get
Gets the icon for the given icon path and scale it to the specified width and height. The given path should be relative to the classpath. If an icon by that name can't be found, the default "bomb" icon is returned instead.For example, an icon named foo.png would typically be stored in the module at "{modulePath}/src/main/resources/image/foo.png". To reference that icon, use the path "images/foo.png", since "{modulePath}/src/main/resources" is in the classpath.
- Parameters:
iconPath
- the icon path (relative to the classpath)width
- the desired width after scalingheight
- the desired height after scaling- Returns:
- The icon referenced by that path.
-