@Override
public void paintIcon(java.awt.Component c, Graphics g,
int x, int y) {
// draw tool icon
Graphics gIcon = g.create();
ComponentDrawContext context = new ComponentDrawContext(c, null, null, g, gIcon);
comp.getFactory().paintIcon(context, x, y, comp.getAttributeSet());
gIcon.dispose();
if (triangleState != TRIANGLE_NONE) {
int[] xp;