public class DefaultIconCollection extends IconCollection
| Modifier and Type | Field and Description |
|---|---|
protected Properties |
format2Icon
The format2 icon.
|
protected static int |
priority
priority for this icon collection
|
| Constructor and Description |
|---|
DefaultIconCollection()
Instantiates a new default icon mapper.
|
| Modifier and Type | Method and Description |
|---|---|
String |
formatToIconName(URI format)
Get an icon file name given a format, as it can be found in our jar
archive.
|
InputStream |
formatToIconStream(URI format)
Get an icon stream given a format.
|
URL |
formatToIconUrl(URI format)
Get a URL pointing to an icon in the archive.
|
Set<Object> |
getAvailableFormatIcons()
Get a list of formats for that we have an icon.
|
int |
getPriority()
Defines the priority of this collection.
|
boolean |
hasIcon(URI format)
Returns true, if the given format is available in this collection.
|
static void |
setPriority(int newPriority)
Sets the priority of this icon collection and triggers a resort of all
icon collection.
|
protected static int priority
protected Properties format2Icon
public DefaultIconCollection()
public static void setPriority(int newPriority)
newPriority - the new priority of this collectionpublic int getPriority()
IconCollectiongetPriority in class IconCollectionpublic boolean hasIcon(URI format)
IconCollectionhasIcon in class IconCollectionformat - the format URIpublic URL formatToIconUrl(URI format)
IconCollectionnull is supposed to be returned.formatToIconUrl in class IconCollectionformat - the format URIpublic InputStream formatToIconStream(URI format)
IconCollectionnull is supposed to be returned.formatToIconStream in class IconCollectionformat - the format URIpublic String formatToIconName(URI format)
IconCollectionnull is supposed to be returned.formatToIconName in class IconCollectionformat - the format URICopyright © 2018 SEMS project @ University of Rostock. All rights reserved.