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 Summary
Constructors -
Method Summary
Modifier 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
-
setSize
public void setSize(int w, int h) -
getScaledInstance
-
getIconWidth
public int getIconWidth()- Specified by:
getIconWidthin interfaceIcon
-
getIconHeight
public int getIconHeight()- Specified by:
getIconHeightin interfaceIcon
-