Package com.inductiveautomation.rm.swing
Class RMShapeIcon
- java.lang.Object
- 
- com.inductiveautomation.rm.swing.RMShapeIcon
 
- 
- All Implemented Interfaces:
- javax.swing.Icon
 
 public class RMShapeIcon extends java.lang.Object implements javax.swing.IconAn icon to paint a shape.
- 
- 
Constructor SummaryConstructors Constructor Description RMShapeIcon(RMShape aShape)Creates a new ShapeIcon.RMShapeIcon(RMShape aShape, double aWidth, double aHeight)Creates a new ShapeIcon.RMShapeIcon(java.lang.Object aSource, double aWidth, double aHeight)Creates a shape painter from any objects (assumed to be a document source).
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetIconHeight()Returns height.intgetIconWidth()Returns width.RMShapegetShape()Returns the shape.voidpaintIcon(java.awt.Component aComponent, java.awt.Graphics aGraphics, int x, int y)Paints the icon.voidsetShape(RMShape aShape)Sets the shape.voidsetSize(double aWidth, double aHeight)Sets the size.
 
- 
- 
- 
Constructor Detail- 
RMShapeIconpublic RMShapeIcon(RMShape aShape) Creates a new ShapeIcon.
 - 
RMShapeIconpublic RMShapeIcon(RMShape aShape, double aWidth, double aHeight) Creates a new ShapeIcon.
 - 
RMShapeIconpublic RMShapeIcon(java.lang.Object aSource, double aWidth, double aHeight)Creates a shape painter from any objects (assumed to be a document source).
 
- 
 - 
Method Detail- 
getShapepublic RMShape getShape() Returns the shape.
 - 
setShapepublic void setShape(RMShape aShape) Sets the shape.
 - 
getIconWidthpublic int getIconWidth() Returns width.- Specified by:
- getIconWidthin interface- javax.swing.Icon
 
 - 
getIconHeightpublic int getIconHeight() Returns height.- Specified by:
- getIconHeightin interface- javax.swing.Icon
 
 - 
setSizepublic void setSize(double aWidth, double aHeight)Sets the size.
 - 
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
 
 
- 
 
-