* DrawingAttributes can be used to add color/texture to the
* IconPart geometries.
*/
public static ImageIcon getIcon(int width, int height, IconPart geometry,
DrawingAttributes appDA) {
ImageIcon icon = createImageIcon(width, height);
Graphics2D g = (Graphics2D) icon.getImage().getGraphics();
g.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
geometry.render(g, width, height, appDA);
return icon;