Package com.inductiveautomation.rm.swing
Class RMIconUtils.BorderIcon
- java.lang.Object
- 
- com.inductiveautomation.rm.swing.RMIconUtils.BorderIcon
 
- 
- All Implemented Interfaces:
- javax.swing.Icon
 - Enclosing class:
- RMIconUtils
 
 public static class RMIconUtils.BorderIcon extends java.lang.Object implements javax.swing.IconAn icon implementation that renders a border on another icon.
- 
- 
Constructor SummaryConstructors Constructor Description BorderIcon(java.awt.Color aColor, javax.swing.Icon anIcon, int aWidth, int aHeight)Creates a new BorderIcon with line border in given color.BorderIcon(javax.swing.border.Border aBorder, javax.swing.Icon anIcon, int aWidth, int aHeight)Creates a new BorderIcon.BorderIcon(javax.swing.Icon anIcon, int aWidth, int aHeight)Creates a new BorderIcon with black line border.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetIconHeight()Returns height.intgetIconWidth()Returns width.voidpaintIcon(java.awt.Component aComponent, java.awt.Graphics aGraphics, int x, int y)Paints the icon.
 
- 
- 
- 
Constructor Detail- 
BorderIconpublic BorderIcon(javax.swing.Icon anIcon, int aWidth, int aHeight)Creates a new BorderIcon with black line border.
 - 
BorderIconpublic BorderIcon(java.awt.Color aColor, javax.swing.Icon anIcon, int aWidth, int aHeight)Creates a new BorderIcon with line border in given color.
 - 
BorderIconpublic BorderIcon(javax.swing.border.Border aBorder, javax.swing.Icon anIcon, int aWidth, int aHeight)Creates a new BorderIcon.
 
- 
 - 
Method Detail- 
getIconWidthpublic int getIconWidth() Returns width.- Specified by:
- getIconWidthin interface- javax.swing.Icon
 
 - 
getIconHeightpublic int getIconHeight() Returns height.- Specified by:
- getIconHeightin interface- javax.swing.Icon
 
 - 
paintIconpublic void paintIcon(java.awt.Component aComponent, java.awt.Graphics aGraphics, int x, int y)Paints the icon.- Specified by:
- paintIconin interface- javax.swing.Icon
 
 
- 
 
-