public final class IconInfo
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable, com.alee.api.Identifiable
IconManager,
Serialized Form| Constructor and Description |
|---|
IconInfo()
Constructs new empty icon information.
|
IconInfo(java.lang.String id,
java.lang.Class<? extends javax.swing.Icon> type,
java.lang.Class nearClass,
java.lang.String path)
Constructs new icon information.
|
IconInfo(java.lang.String id,
java.lang.Class<? extends javax.swing.Icon> type,
java.lang.String path)
Constructs new icon information.
|
| Modifier and Type | Method and Description |
|---|---|
IconInfo |
clone() |
java.lang.String |
getId() |
java.lang.Class |
getNearClass()
Returns class which specified path is relative to.
|
java.lang.String |
getPath()
Returns icon file path.
|
java.lang.Class<? extends javax.swing.Icon> |
getType()
Returns icon class type.
|
void |
setId(java.lang.String id)
Sets unique icon ID.
|
void |
setNearClass(java.lang.Class nearClass)
Sets class which specified path is relative to.
|
void |
setPath(java.lang.String path)
Sets icon file path.
|
void |
setType(java.lang.Class<? extends javax.swing.Icon> type)
Sets icon class type.
|
public IconInfo()
public IconInfo(java.lang.String id,
java.lang.Class<? extends javax.swing.Icon> type,
java.lang.String path)
id - unique icon IDtype - icon typepath - icon pathpublic IconInfo(java.lang.String id,
java.lang.Class<? extends javax.swing.Icon> type,
java.lang.Class nearClass,
java.lang.String path)
id - unique icon IDtype - icon typenearClass - class which specified path is relative topath - icon pathpublic java.lang.String getId()
getId in interface com.alee.api.Identifiablepublic void setId(java.lang.String id)
id - unique icon IDpublic java.lang.Class<? extends javax.swing.Icon> getType()
public void setType(java.lang.Class<? extends javax.swing.Icon> type)
type - icon class typepublic java.lang.Class getNearClass()
public void setNearClass(java.lang.Class nearClass)
nearClass - class which specified path is relative topublic java.lang.String getPath()
public void setPath(java.lang.String path)
path - icon file pathpublic IconInfo clone()
clone in class java.lang.Object