public class IconDescriptor extends Object
IconDescriptor
is an image resource that needs to be processed
by higher level classes that can read, modify and display the image data.
IconDescriptor
can be very expensive, is highly
recommended to cache the result when possible.Constructor and Description |
---|
IconDescriptor(ByteBuffer data) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
ByteBuffer |
getData() |
int |
hashCode() |
static IconDescriptor |
loadIcon(ClassLoader classloader,
String resource)
Loads an icon by calling from the given resource file and
ClassLoader . |
static IconDescriptor |
loadIcon(File resource)
Loads an icon from a file.
|
static IconDescriptor |
loadIcon(InputStream stream)
Loads an icon from the given
InputStream . |
public IconDescriptor(ByteBuffer data)
public ByteBuffer getData()
public static IconDescriptor loadIcon(InputStream stream) throws IOException
InputStream
.IOException
public static IconDescriptor loadIcon(File resource) throws IOException
IOException
public static IconDescriptor loadIcon(ClassLoader classloader, String resource) throws IOException
ClassLoader
.IOException
Copyright © 2014. All rights reserved.