public class FwkIconFile extends Fwk implements FwkInterface
Property Keyword | Datatype | Default | Description |
---|---|---|---|
Icon.Path | classname | com.highqsoft.fwk.images | The path to find the icons. |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
extension |
static java.lang.String[] |
HEX
String array for HEX dump.
|
protected static java.util.HashMap |
iconCache |
protected static java.util.HashMap |
iconNotFoundCache |
static java.lang.String |
version |
Constructor and Description |
---|
FwkIconFile() |
Modifier and Type | Method and Description |
---|---|
static void |
dumpIcon(java.lang.String key,
java.lang.String sep)
This method dumps the icon data to the standard out.
|
static FwkIconInterface |
getIcon(byte[] arr)
This method returns an FwkIcon according to the given byte array.
|
static FwkIconInterface |
getIcon(java.lang.ClassLoader loader,
java.lang.String key)
Get an icon that is specified viea the property key and is located by the given class loader.
|
static FwkIconInterface |
getIcon(java.lang.String key)
This method returns an FwkIcon according to the given property keyword.
|
static java.net.URL |
getURL(java.lang.String path)
This method determines the URL belongs to the given path and filename.
|
java.lang.String |
getVersion()
Return the version string of the FWK component.
|
static void |
main(java.lang.String[] args)
The program to dump icons to a java usable code fragment.
|
getNiceVersion, release
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
release
public static final java.lang.String version
protected static java.util.HashMap iconCache
protected static java.util.HashMap iconNotFoundCache
public static final java.lang.String[] HEX
public static final java.lang.String extension
public java.lang.String getVersion()
FwkInterface
getVersion
in interface FwkInterface
getVersion
in class Fwk
public static java.net.URL getURL(java.lang.String path)
file:
.path
- The path specificationfName
- The filename.public static FwkIconInterface getIcon(java.lang.String key)
key
- The Property keyword.public static FwkIconInterface getIcon(java.lang.ClassLoader loader, java.lang.String key)
key
- The property keyword.public static FwkIconInterface getIcon(byte[] arr)
key
- The byte array of the icon.public static void dumpIcon(java.lang.String key, java.lang.String sep)
key
- The Property keyword.sep
- The separator string.public static void main(java.lang.String[] args)
Keyword | Description |
---|---|
IMAGE_KEY | specifies the keyword to find the file. |
DOS_LINE | Switch to separate the line with a DOS line break. |
ONE_LINE | Switch to use no line break. |