Package com.inductiveautomation.rm.swing
Class RMIconUtils.LabelIcon
java.lang.Object
com.inductiveautomation.rm.swing.RMIconUtils.LabelIcon
- All Implemented Interfaces:
Icon
- Enclosing class:
- RMIconUtils
An icon implementation that uses a JLabel.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the height of icon1.int
Returns the width of icon1.getLabel()
Returns the JLabel.void
Paints the icons.
-
Constructor Details
-
LabelIcon
Creates a new label icon. -
LabelIcon
Creates a label icon for a button.
-
-
Method Details
-
getLabel
Returns the JLabel. -
getIconWidth
public int getIconWidth()Returns the width of icon1.- Specified by:
getIconWidth
in interfaceIcon
-
getIconHeight
public int getIconHeight()Returns the height of icon1.- Specified by:
getIconHeight
in interfaceIcon
-
paintIcon
Paints the icons.
-