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 TypeMethodDescriptionint
Returns height.int
Returns width.void
Paints 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:
getIconWidth
in interfaceIcon
-
getIconHeight
public int getIconHeight()Returns height.- Specified by:
getIconHeight
in interfaceIcon
-
paintIcon
Paints the icon.
-