Package com.inductiveautomation.rm.swing
Class RMIconUtils.LabelIcon
- java.lang.Object
-
- com.inductiveautomation.rm.swing.RMIconUtils.LabelIcon
-
- All Implemented Interfaces:
javax.swing.Icon
- Enclosing class:
- RMIconUtils
public static class RMIconUtils.LabelIcon extends java.lang.Object implements javax.swing.IconAn icon implementation that uses a JLabel.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetIconHeight()Returns the height of icon1.intgetIconWidth()Returns the width of icon1.javax.swing.JLabelgetLabel()Returns the JLabel.voidpaintIcon(java.awt.Component aComponent, java.awt.Graphics aGraphics, int x, int y)Paints the icons.
-
-
-
Method Detail
-
getLabel
public javax.swing.JLabel getLabel()
Returns the JLabel.
-
getIconWidth
public int getIconWidth()
Returns the width of icon1.- Specified by:
getIconWidthin interfacejavax.swing.Icon
-
getIconHeight
public int getIconHeight()
Returns the height of icon1.- Specified by:
getIconHeightin interfacejavax.swing.Icon
-
paintIcon
public void paintIcon(java.awt.Component aComponent, java.awt.Graphics aGraphics, int x, int y)Paints the icons.- Specified by:
paintIconin interfacejavax.swing.Icon
-
-