}
    public void paint(Graphics g)    {	if ( getLayer() != LozengePanel.getPaintLayerNow() )	    return;	Graphics2D g2 = (Graphics2D) g;	if (g2 == null) return;	// If the decorator is lying right on the lozenge's line,	// there's no need for a connector.	if (Math.abs(cx1 - cx2) > (mySize / 2.0f)) {	    // Debug.out("LD:paint connector: " + cx1 + ", " + cy + " to " + cx2 + ", " + cy);	    Line2D.Float connector = new Line2D.Float(cx1, cy, cx2, cy);	    g2.setColor(loz.getOutlineColor());	    g2.draw(connector);	}	Shape s = GanttChart.decShapes[decoratorType];	if ( warning )	    g2.setColor(Color.red);	else	    g2.setColor(Color.cyan);	g2.translate(cx1, cy);	g2.fill(s);	g2.setColor(loz.getOutlineColor());	g2.draw(s);	g2.translate(-cx1, -cy);    }