public void paintShape(Graphics2D g2)
	    {
	        if (color != null)
	        {
	            label.setForeground(new java.awt.Color((int) color.getRed(), (int) color.getGreen(), (int) color.getBlue()));
	            Dimension dim = label.getPreferredSize();
	            if (dim.width > 0 && dim.height > 0)
	            {
	                label.setBounds(0, 0, dim.width, dim.height);
	                g2.translate(getX(), getY());
	                g2.scale(getWidth() / dim.width, getHeight() / dim.height);
	                label.paint(g2);
	            }
	        }
	    }