Class ShapeIcon
java.lang.Object
com.inductiveautomation.ignition.client.util.ShapeIcon
- All Implemented Interfaces:
- Icon
- Direct Known Subclasses:
- JsonEditor.HierarchyIcon
Handy class that lets you use a Shape as an icon. Will paint with anti-alias on.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncreateScaledInstance(double scale) static Path2D.DoublefromSvgPolygon(String polygonPoints) Creates a polygon path from a string which would be of the same format as an SVG polygon element's points attribute.intintvoidsetOffset(int x, int y) 
- 
Field Details- 
shape
- 
color
- 
offXprotected int offX
- 
offYprotected int offY
 
- 
- 
Constructor Details- 
ShapeIcon
- 
ShapeIcon
 
- 
- 
Method Details- 
paintIcon
- 
setColor
- 
setOffset
- 
getIconWidthpublic int getIconWidth()- Specified by:
- getIconWidthin interface- Icon
 
- 
getIconHeightpublic int getIconHeight()- Specified by:
- getIconHeightin interface- Icon
 
- 
createScaledInstance
- 
fromSvgPolygonCreates a polygon path from a string which would be of the same format as an SVG polygon element's points attribute. https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/points
 
-