Class VectorIcon
- java.lang.Object
- 
- com.inductiveautomation.ignition.client.icons.VectorIcon
 
- 
- All Implemented Interfaces:
- javax.swing.Icon
 - Direct Known Subclasses:
- InteractiveVectorIcon
 
 public class VectorIcon extends java.lang.Object implements javax.swing.IconA Vector icon is an Icon implementation that uses Java2D to draw the icon from a Shape object, rather than using a raster image.The icon will use the component's foreground color as the fill color for the shape if the icon's color property is null. 
- 
- 
Constructor SummaryConstructors Constructor Description VectorIcon(java.awt.Shape shape, int width, int height, java.awt.Color color)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description VectorIconcopy()static VectorIconfromPath(java.lang.String path, int width, int height, double scale, java.awt.Color color)intgetIconHeight()intgetIconWidth()VectorIcongetScaledInstance(int squareSize)voidpaintIcon(java.awt.Component c, java.awt.Graphics graphics, int x, int y)VectorIconscale(double scale)VectorIconscaleToSize(int squareSize)VectorIconsetColor(java.awt.Color color)VectorIconsetOffset(int x, int y)VectorIconsetOpacity(float opacity)voidsetShape(java.awt.Shape shape)voidsetSize(int w, int h)
 
- 
- 
- 
Method Detail- 
fromPathpublic static VectorIcon fromPath(java.lang.String path, int width, int height, double scale, java.awt.Color color) 
 - 
paintIconpublic void paintIcon(java.awt.Component c, java.awt.Graphics graphics, int x, int y)- Specified by:
- paintIconin interface- javax.swing.Icon
 
 - 
copypublic VectorIcon copy() 
 - 
scalepublic VectorIcon scale(double scale) 
 - 
scaleToSizepublic VectorIcon scaleToSize(int squareSize) 
 - 
setOpacitypublic VectorIcon setOpacity(float opacity) 
 - 
setColorpublic VectorIcon setColor(java.awt.Color color) 
 - 
setOffsetpublic VectorIcon setOffset(int x, int y) 
 - 
setShapepublic void setShape(java.awt.Shape shape) 
 - 
setSizepublic void setSize(int w, int h)
 - 
getScaledInstancepublic VectorIcon getScaledInstance(int squareSize) 
 - 
getIconWidthpublic int getIconWidth() - Specified by:
- getIconWidthin interface- javax.swing.Icon
 
 - 
getIconHeightpublic int getIconHeight() - Specified by:
- getIconHeightin interface- javax.swing.Icon
 
 
- 
 
-