public class Iconizer extends Object
Modifier and Type | Field and Description |
---|---|
static String |
GENERIC_UNKNOWN
The Constant GENERIC_UNKNOWN representing the icon file for unknown file
types.
|
Constructor and Description |
---|
Iconizer() |
Modifier and Type | Method and Description |
---|---|
static void |
addDefaultCollection()
Add a default icon collection to the list of collections.
|
static void |
addIconCollection(IconCollection collection)
Adds a icon mapper to the Iconizer
|
File |
extractIconExample()
Example for extracting an icon.
|
static String |
formatToIcon(URI format)
Get an icon file name given a format, as it can be found in our jar
archive.
|
static InputStream |
formatToIconStream(URI format)
Get an icon stream given a format.
|
static URL |
formatToIconUrl(URI format)
Get a URL pointing to an icon in our archive.
|
static void |
removeCollections()
Remove all collections that we know so far.
|
static void |
resortCollections()
Resort known icon collections.
|
public static final String GENERIC_UNKNOWN
public static void addIconCollection(IconCollection collection)
collection
- the icon collection to be addedpublic static void addDefaultCollection()
public static void removeCollections()
public static void resortCollections()
public static String formatToIcon(URI format)
format
- the formatpublic static URL formatToIconUrl(URI format)
new ImageIcon (Iconizer.formatToIconUrl (SOME_FORMAT));
format
- the formatpublic static InputStream formatToIconStream(URI format)
format
- the formatpublic File extractIconExample() throws IOException, URISyntaxException
IOException
- Signals that an I/O exception has occurred.URISyntaxException
- the uRI syntax exceptionCopyright © 2018 SEMS project @ University of Rostock. All rights reserved.