Package com.inductiveautomation.rm.swing
Class RMIconUtils.CompositeIcon
- java.lang.Object
-
- com.inductiveautomation.rm.swing.RMIconUtils.CompositeIcon
-
- All Implemented Interfaces:
javax.swing.Icon
- Enclosing class:
- RMIconUtils
public static class RMIconUtils.CompositeIcon extends java.lang.Object implements javax.swing.Icon
An icon implementation that draws two icons.
-
-
Constructor Summary
Constructors Constructor Description CompositeIcon(javax.swing.Icon anIcon1, javax.swing.Icon anIcon2)
Creates a new CompositeIcon.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getIconHeight()
Returns the height of icon1.int
getIconWidth()
Returns the width of icon1.void
paintIcon(java.awt.Component aComponent, java.awt.Graphics aGraphics, int x, int y)
Paints the icons.
-
-
-
Method Detail
-
getIconWidth
public int getIconWidth()
Returns the width of icon1.- Specified by:
getIconWidth
in interfacejavax.swing.Icon
-
getIconHeight
public int getIconHeight()
Returns the height of icon1.- Specified by:
getIconHeight
in interfacejavax.swing.Icon
-
paintIcon
public void paintIcon(java.awt.Component aComponent, java.awt.Graphics aGraphics, int x, int y)
Paints the icons.- Specified by:
paintIcon
in interfacejavax.swing.Icon
-
-