Package com.inductiveautomation.rm.swing
Class RMShapeIcon
java.lang.Object
com.inductiveautomation.rm.swing.RMShapeIcon
- All Implemented Interfaces:
Icon
An icon to paint a shape.
-
Constructor Summary
ConstructorsConstructorDescriptionRMShapeIcon
(RMShape aShape) Creates a new ShapeIcon.RMShapeIcon
(RMShape aShape, double aWidth, double aHeight) Creates a new ShapeIcon.RMShapeIcon
(Object aSource, double aWidth, double aHeight) Creates a shape painter from any objects (assumed to be a document source). -
Method Summary
-
Constructor Details
-
RMShapeIcon
Creates a new ShapeIcon. -
RMShapeIcon
Creates a new ShapeIcon. -
RMShapeIcon
Creates a shape painter from any objects (assumed to be a document source).
-
-
Method Details
-
getShape
Returns the shape. -
setShape
Sets the shape. -
getIconWidth
public int getIconWidth()Returns width.- Specified by:
getIconWidth
in interfaceIcon
-
getIconHeight
public int getIconHeight()Returns height.- Specified by:
getIconHeight
in interfaceIcon
-
setSize
public void setSize(double aWidth, double aHeight) Sets the size. -
paintIcon
Paints the icon.
-