if(attributeName == null || elementName == null) { return; }
    private void recalibrateScale()    {        if(currentScaleName.equals(Scale.LINEAR_SCALE))        {            currentScale = new LinearScale(gradient.getMin(),gradient.getMax());        }        else if(currentScaleName.equals(Scale.LOGARITHMIC_SCALE))        {            currentScale = new LogarithmicScale(gradient.getMin(),gradient.getMax());        }    }