Package com.inductiveautomation.rm.swing
Class RMIconUtils.BorderIcon
java.lang.Object
com.inductiveautomation.rm.swing.RMIconUtils.BorderIcon
- All Implemented Interfaces:
Icon
- Enclosing class:
- RMIconUtils
An icon implementation that renders a border on another icon.
-
Constructor Summary
ConstructorsConstructorDescriptionBorderIcon(Color aColor, Icon anIcon, int aWidth, int aHeight) Creates a new BorderIcon with line border in given color.BorderIcon(Border aBorder, Icon anIcon, int aWidth, int aHeight) Creates a new BorderIcon.BorderIcon(Icon anIcon, int aWidth, int aHeight) Creates a new BorderIcon with black line border. -
Method Summary
Modifier and TypeMethodDescriptionintReturns height.intReturns width.voidPaints the icon.
-
Constructor Details
-
BorderIcon
Creates a new BorderIcon with black line border. -
BorderIcon
Creates a new BorderIcon with line border in given color. -
BorderIcon
Creates a new BorderIcon.
-
-
Method Details
-
getIconWidth
public int getIconWidth()Returns width.- Specified by:
getIconWidthin interfaceIcon
-
getIconHeight
public int getIconHeight()Returns height.- Specified by:
getIconHeightin interfaceIcon
-
paintIcon
Paints the icon.
-