Class VectorIcon
java.lang.Object
com.inductiveautomation.ignition.client.icons.VectorIcon
- All Implemented Interfaces:
- Icon
- Direct Known Subclasses:
- InteractiveVectorIcon
A 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
- 
Method SummaryModifier and TypeMethodDescriptioncopy()static VectorIconintintgetScaledInstance(int squareSize) voidscale(double scale) scaleToSize(int squareSize) setOffset(int x, int y) setOpacity(float opacity) voidvoidsetSize(int w, int h) 
- 
Constructor Details- 
VectorIcon
 
- 
- 
Method Details- 
fromPath
- 
paintIcon
- 
copy
- 
scale
- 
scaleToSize
- 
setOpacity
- 
setColor
- 
setOffset
- 
setShape
- 
setSizepublic void setSize(int w, int h) 
- 
getScaledInstance
- 
getIconWidthpublic int getIconWidth()- Specified by:
- getIconWidthin interface- Icon
 
- 
getIconHeightpublic int getIconHeight()- Specified by:
- getIconHeightin interface- Icon
 
 
-