public interface IconHolder
Component classes that can display an icon.  E.g. Label, SpanLabel, SpanButton, etc..| Modifier and Type | Method and Description | 
|---|---|
| int | getGap()Returns the gap in pixels between the icon/text to the Label boundaries | 
| Image | getIcon()Returns the labels icon | 
| Component | getIconStyleComponent()Gets the component that should be used for styling material the material icon. | 
| String | getIconUIID()Gets the UIID used for styling material icons on this component. | 
| int | getTextPosition()Returns The position of the text relative to the icon | 
| void | setFontIcon(Font font,
           char c,
           float size)This method is shorthand for  FontImage.setFontIcon(com.codename1.ui.Label, com.codename1.ui.Font, char, float) | 
| void | setGap(int gap)Set the gap in pixels between the icon/text to the Label boundaries | 
| void | setIcon(Image icon)Sets the Label icon, if the icon is unmodified a repaint would not be triggered | 
| void | setIconUIID(String uiid)Sets a UIID to be used for the material icon style. | 
| void | setMaterialIcon(char c,
               float size)This method is shorthand for  FontImage.setMaterialIcon(com.codename1.ui.Label, char, float) | 
| void | setTextPosition(int textPosition)Sets the position of the text relative to the icon if exists | 
Image getIcon()
void setIcon(Image icon)
icon - the image that the label presents.void setGap(int gap)
gap - the gap in pixelsint getGap()
void setTextPosition(int textPosition)
textPosition - alignment value (LEFT, RIGHT, BOTTOM or TOP)#LEFT, 
#RIGHT, 
#BOTTOM, 
#TOPint getTextPosition()
#LEFT, 
#RIGHT, 
#BOTTOM, 
#TOPvoid setIconUIID(String uiid)
uiid - The uiid to use for the material icon style.String getIconUIID()
Component getIconStyleComponent()
setIconUIID(java.lang.String) has been used
 to set a custom UIID for the icon, then this will return a component with that UIID.  Otherwise this will just return this component
 itself.void setMaterialIcon(char c,
                     float size)
FontImage.setMaterialIcon(com.codename1.ui.Label, char, float)c - one of the constants from FontImagesize - the size of the icon in millimetersvoid setFontIcon(Font font, char c, float size)
FontImage.setFontIcon(com.codename1.ui.Label, com.codename1.ui.Font, char, float)c - one of the constants from the fontsize - the size of the icon in millimeters