public void createSelections()
    {
        List <string> attributes = layer.getMapAttributes();
        int           count      = 0;

        foreach (string attStr in attributes)
        {
            SelectionMetaphor sm = new SelectionMetaphor(this, -0.7f, attStr);
            //sm.rotateBy(30 * count);
            sm.pushTo(-0.7f - 0.4f * count);
            selectionObjects.Add(sm);
            count++;
        }
    }
    public void createSelections(string selectionStr)
    {
        removeSelections();
        List <string> attributes = new List <string>();

        if (selectionStr == "COLOR")
        {
            attributes.Add("Red");
            attributes.Add("Yellow");
            attributes.Add("Blue");
        }
        else if (selectionStr == "TRANSPARENCY")
        {
            attributes.Add("25");
            attributes.Add("50");
            attributes.Add("75");
            attributes.Add("100");
        }
        else if (_oldVersion)
        {
            if (selectionStr == "RED")
            {
                layer.setColor(Color.red);
            }
            else if (selectionStr == "YELLOW")
            {
                layer.setColor(Color.yellow);
            }
            else if (selectionStr == "BLUE")
            {
                layer.setColor(Color.blue);
            }
            else if (selectionStr == "25")
            {
                layer.setTransparency(25);
            }
            else if (selectionStr == "25")
            {
                layer.setTransparency(25);
            }
            else if (selectionStr == "50")
            {
                layer.setTransparency(50);
            }
            else if (selectionStr == "100")
            {
                layer.setTransparency(100);
            }
            endSelectState();
            unselectActions();
            LayerManager.goSelected = null;
        }
        else
        {
            MapARLayerDup layerdup = layer.getDuplication();
            if (selectionStr == "RED")
            {
                layerdup.setColor(Color.red);
            }
            else if (selectionStr == "YELLOW")
            {
                layerdup.setColor(Color.yellow);
            }
            else if (selectionStr == "BLUE")
            {
                layerdup.setColor(Color.blue);
            }
            else if (selectionStr == "25")
            {
                layerdup.setTransparency(25);
            }
            else if (selectionStr == "25")
            {
                layerdup.setTransparency(25);
            }
            else if (selectionStr == "50")
            {
                layerdup.setTransparency(50);
            }
            else if (selectionStr == "100")
            {
                layerdup.setTransparency(100);
            }
            endSelectState();
            unselectActions();
            LayerManager.goSelected = null;
        }
        int count = 0;

        foreach (string attStr in attributes)
        {
            SelectionMetaphor sm = new SelectionMetaphor(this, -0.7f, attStr);
            //sm.rotateBy(30 * count);
            sm.pushTo(-0.7f - 0.4f * count);
            selectionObjects.Add(sm);
            count++;
        }
    }