package cnp.ew.diagram;

import java.awt.*;
import java.util.*;

public class CpBackgroundLc extends CpAbstractDiagrammableLc
{
    Vector handles;

    public CpBackgroundLc(int x, int y, int w, int h)
    {
        super(x, y, w, h);
        setForeground(Color.gray);
    }

	public Vector getHandles()
	{
	    if (handles == null) {
    	    handles = new Vector();
	    	handles.addElement(new CpSizingHandle(this, CpBasicLocator.rightBottomLocator, CpBasicLocator.leftTopLocator, true));
	    }
	    return handles;
	}

    public boolean insideDiagram(int x, int y)
    {
        return false;
    }

	public CpHandle getDefaultHandle()
	{
	    return new CpDoNothingHandle(this, null);
	}

	public boolean isTransparent()
	{
	    return true;
	}

	public boolean canBeSelected()
	{
   	    return false;
	}
}