Package com.inductiveautomation.rm.swing
Class RMIconUtils.ShapeIcon
- java.lang.Object
- 
- com.inductiveautomation.rm.swing.RMIconUtils.ShapeIcon
 
- 
- All Implemented Interfaces:
- javax.swing.Icon
 - Enclosing class:
- RMIconUtils
 
 public static class RMIconUtils.ShapeIcon extends java.lang.Object implements javax.swing.IconA simple icon implementation to draw a given shape in a given color in a given size.
- 
- 
Constructor SummaryConstructors Constructor Description ShapeIcon(java.awt.Shape aShape, java.awt.Color aColor, int aWidth, int aHeight)Creates a new ShapeIcon.
 - 
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.
 
- 
- 
- 
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
 
 
- 
 
-