|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.inmethod.icon.PackageIcon
public class PackageIcon
Simple icon implementation that uses images in classpath or a ResourceReference as icon
source.
| Constructor Summary | |
|---|---|
PackageIcon(Class<?> scope,
String name)
Creates a new icon instance. |
|
PackageIcon(ResourceReference reference)
Creates a new icon instance. |
|
| Method Summary | |
|---|---|
int |
getHeight()
Returns the icon height. |
CharSequence |
getUrl()
Returns the URL of icon image. |
int |
getWidth()
Returns the icon width. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PackageIcon(ResourceReference reference)
reference - resource reference that can be used to get the icon
public PackageIcon(Class<?> scope,
String name)
scope - Class relative to which the icon is placed in classpathname - Icon name relative to the scope class| Method Detail |
|---|
public int getHeight()
getHeight in interface Iconpublic int getWidth()
getWidth in interface Iconpublic CharSequence getUrl()
getUrl in interface Icon
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||