Package com.inmethod.icon
Class PackageIcon
- java.lang.Object
-
- com.inmethod.icon.PackageIcon
-
- All Implemented Interfaces:
Icon
,Serializable
public class PackageIcon extends Object implements Icon
Simple icon implementation that uses images in classpath or aResourceReference
as icon source.- Author:
- Matej Knopp
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PackageIcon(Class<?> scope, String name)
Creates a new icon instance.PackageIcon(ResourceReference reference)
Creates a new icon instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getHeight()
Returns the icon height.CharSequence
getUrl()
Returns the URL of icon image.int
getWidth()
Returns the icon width.
-
-
-
Constructor Detail
-
PackageIcon
public PackageIcon(ResourceReference reference)
Creates a new icon instance.- Parameters:
reference
- resource reference that can be used to get the icon
-
-
Method Detail
-
getHeight
public int getHeight()
Returns the icon height.
-
getWidth
public int getWidth()
Returns the icon width.
-
getUrl
public CharSequence getUrl()
Returns the URL of icon image.
-
-