public void setWidth (int width) {
        this.width = width;
        radius = (width/2) - 10;
        setSize(width + 12, height + 102);
        canvas.setSize(width,height);
        doLayout();
    }