public void updateState(int state)
    {
        if(state == 0 || state == 14 || state == 6 || state == 7)
        {
            //length shown
            parent.ToggleDial(1);
        }
        else
        {
            parent.ToggleDial(0);
            //tension
        }
        stateLabel.setIcon(statePics.get(state));
    }