public class IconSuite extends Object
Constructor and Description |
---|
IconSuite() |
Modifier and Type | Method and Description |
---|---|
BufferedImage |
getBestMatchingIcon(int width,
int height)
Returns the icon that mathces the given dimensions the closest.
|
BufferedImage |
getHugeIcon()
Returns the 'huge' icon or null if a 'huge' icon has not been set.
|
BufferedImage |
getLargeIcon()
Returns the 'large' icon or null if a 'large' icon has not been set.
|
BufferedImage |
getSmallIcon()
Returns the 'small' icon or null if a 'small' icon has not been set.
|
BufferedImage |
getThumbnailIcon()
Returns the thumbnail icon or null if a thumbnail icon has not been set.
|
void |
setHugeIcon(BufferedImage hugeIcon)
Sets the 'huge' icon.
|
void |
setLargeIcon(BufferedImage largeIcon)
Sets the 'large' icon.
|
void |
setSmallIcon(BufferedImage smallIcon)
Sets the 'small' icon.
|
void |
setThumbnailIcon(BufferedImage thumbnailIcon)
Sets the thumbnail icon.
|
public BufferedImage getBestMatchingIcon(int width, int height)
public BufferedImage getThumbnailIcon()
public void setThumbnailIcon(BufferedImage thumbnailIcon)
public BufferedImage getHugeIcon()
public void setHugeIcon(BufferedImage hugeIcon)
public BufferedImage getLargeIcon()
public void setLargeIcon(BufferedImage largeIcon)
public BufferedImage getSmallIcon()
public void setSmallIcon(BufferedImage smallIcon)
Copyright © 2015–2021 Fiji. All rights reserved.