Package resources
Class Icons
- java.lang.Object
-
- resources.Icons
-
public class Icons extends java.lang.Object
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
Fields Modifier and Type Field Description static javax.swing.ImageIcon
ADD_ICON
static javax.swing.ImageIcon
APPLY_BLOCKED_MATCH_ICON
static javax.swing.ImageIcon
ARROW_DOWN_RIGHT_ICON
static javax.swing.ImageIcon
ARROW_UP_LEFT_ICON
static javax.swing.ImageIcon
COLLAPSE_ALL_ICON
static javax.swing.ImageIcon
CONFIGURE_FILTER_ICON
static javax.swing.ImageIcon
DELETE_ICON
static javax.swing.ImageIcon
EMPTY_ICON
static javax.swing.ImageIcon
ERROR_ICON
static javax.swing.ImageIcon
EXPAND_ALL_ICON
static javax.swing.ImageIcon
FILTER_NOT_ACCEPTED_ICON
static javax.swing.ImageIcon
HELP_ICON
static javax.swing.ImageIcon
LEFT_ALTERNATE_ICON
An version of the LEFT_ICON with a different colorstatic javax.swing.ImageIcon
LEFT_ICON
static javax.swing.ImageIcon
MAKE_SELECTION_ICON
static javax.swing.ImageIcon
NAVIGATE_ON_INCOMING_EVENT_ICON
static javax.swing.ImageIcon
NAVIGATE_ON_OUTGOING_EVENT_ICON
static javax.swing.ImageIcon
NOT_ALLOWED_ICON
static javax.swing.ImageIcon
OPEN_FOLDER_ICON
static javax.swing.ImageIcon
REFRESH_ICON
static javax.swing.ImageIcon
RIGHT_ALTERNATE_ICON
An version of the RIGHT_ICON with a different colorstatic javax.swing.ImageIcon
RIGHT_ICON
static javax.swing.ImageIcon
SAVE_AS
static javax.swing.ImageIcon
SORT_ASCENDING_ICON
static javax.swing.ImageIcon
SORT_DESCENDING_ICON
static javax.swing.ImageIcon
STOP_ICON
static javax.swing.ImageIcon
STRONG_WARNING_ICON
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static javax.swing.ImageIcon
get(java.lang.String iconPath)
Gets the icon for the given icon path.static javax.swing.ImageIcon
get(java.lang.String iconPath, int width, int height)
Gets the icon for the given icon path and scale it to the specifed width and height.static IconProvider
getIconForIconsReference(java.lang.String snippet)
Returns anIconProvider
for the given string value, which is usually the 'src' attribute of an IMG tagstatic boolean
isIconsReference(java.lang.String snippet)
Returns true if the given string is a Java code snippet that references this class
-
-
-
Field Detail
-
EMPTY_ICON
public static final javax.swing.ImageIcon EMPTY_ICON
-
HELP_ICON
public static final javax.swing.ImageIcon HELP_ICON
-
ADD_ICON
public static final javax.swing.ImageIcon ADD_ICON
-
COLLAPSE_ALL_ICON
public static final javax.swing.ImageIcon COLLAPSE_ALL_ICON
-
EXPAND_ALL_ICON
public static final javax.swing.ImageIcon EXPAND_ALL_ICON
-
CONFIGURE_FILTER_ICON
public static final javax.swing.ImageIcon CONFIGURE_FILTER_ICON
-
DELETE_ICON
public static final javax.swing.ImageIcon DELETE_ICON
-
ERROR_ICON
public static final javax.swing.ImageIcon ERROR_ICON
-
NAVIGATE_ON_INCOMING_EVENT_ICON
public static final javax.swing.ImageIcon NAVIGATE_ON_INCOMING_EVENT_ICON
-
NAVIGATE_ON_OUTGOING_EVENT_ICON
public static final javax.swing.ImageIcon NAVIGATE_ON_OUTGOING_EVENT_ICON
-
NOT_ALLOWED_ICON
public static final javax.swing.ImageIcon NOT_ALLOWED_ICON
-
OPEN_FOLDER_ICON
public static final javax.swing.ImageIcon OPEN_FOLDER_ICON
-
REFRESH_ICON
public static final javax.swing.ImageIcon REFRESH_ICON
-
SORT_ASCENDING_ICON
public static final javax.swing.ImageIcon SORT_ASCENDING_ICON
-
SORT_DESCENDING_ICON
public static final javax.swing.ImageIcon SORT_DESCENDING_ICON
-
STOP_ICON
public static final javax.swing.ImageIcon STOP_ICON
-
STRONG_WARNING_ICON
public static final javax.swing.ImageIcon STRONG_WARNING_ICON
-
LEFT_ICON
public static final javax.swing.ImageIcon LEFT_ICON
-
RIGHT_ICON
public static final javax.swing.ImageIcon RIGHT_ICON
-
LEFT_ALTERNATE_ICON
public static final javax.swing.ImageIcon LEFT_ALTERNATE_ICON
An version of the LEFT_ICON with a different color
-
RIGHT_ALTERNATE_ICON
public static final javax.swing.ImageIcon RIGHT_ALTERNATE_ICON
An version of the RIGHT_ICON with a different color
-
SAVE_AS
public static final javax.swing.ImageIcon SAVE_AS
-
MAKE_SELECTION_ICON
public static final javax.swing.ImageIcon MAKE_SELECTION_ICON
-
ARROW_DOWN_RIGHT_ICON
public static final javax.swing.ImageIcon ARROW_DOWN_RIGHT_ICON
-
ARROW_UP_LEFT_ICON
public static final javax.swing.ImageIcon ARROW_UP_LEFT_ICON
-
FILTER_NOT_ACCEPTED_ICON
public static final javax.swing.ImageIcon FILTER_NOT_ACCEPTED_ICON
-
APPLY_BLOCKED_MATCH_ICON
public static final javax.swing.ImageIcon APPLY_BLOCKED_MATCH_ICON
-
-
Method Detail
-
isIconsReference
public static boolean isIconsReference(java.lang.String snippet)
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
public static IconProvider getIconForIconsReference(java.lang.String snippet)
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
public static javax.swing.ImageIcon get(java.lang.String iconPath)
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
public static javax.swing.ImageIcon get(java.lang.String iconPath, int width, int height)
Gets the icon for the given icon path and scale it to the specifed 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.
-
-