public final class PNGIconBundle extends Object implements IconBundle
Constructor and Description |
---|
PNGIconBundle(File file)
Create a new PNG icon bundle from a base image that will
be read from the specified file.
|
PNGIconBundle(ImageInputStream imageInputStream)
Create a new PNG icon bundle from a base image that will
be read from the specified image input stream.
|
PNGIconBundle(InputStream inputStream)
Create a new PNG icon bundle from a base image that will
be read from the specified input stream.
|
PNGIconBundle(String baseImageName)
Create a new PNG icon bundle from a base image name.
|
PNGIconBundle(URL url)
Create a new PNG icon bundle from a base image that will
be read from the specified URL.
|
public PNGIconBundle(File file)
file
- file, must not be nullpublic PNGIconBundle(InputStream inputStream)
inputStream
- input stream, must not be nullpublic PNGIconBundle(ImageInputStream imageInputStream)
imageInputStream
- image input stream, must not be nullpublic PNGIconBundle(URL url)
url
- URL, must not be nullpublic PNGIconBundle(String baseImageName)
baseImageName + iconSize.toString() + ".png"
.baseImageName
- base image name, must not be nullpublic Image getImage(Component component, IconTextDirection direction, IconState state, IconSize size)
getImage
in interface IconBundle
component
- AWT or Swing component hint, if anydirection
- icon text direction, must not be nullstate
- icon state, must not be nullsize
- icon size, must not be nullCopyright (c) 2003-2013 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).