Package com.inductiveautomation.rm.swing
Class RMIconUtils.ShapeIcon
java.lang.Object
com.inductiveautomation.rm.swing.RMIconUtils.ShapeIcon
- All Implemented Interfaces:
Icon
- Enclosing class:
- RMIconUtils
A simple icon implementation to draw a given shape in a given color in a given size.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Returns height.int
Returns width.void
Paints the icon.
-
Constructor Details
-
ShapeIcon
Creates a new ShapeIcon.
-
-
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.
-