setNeedsRefresh(true);
    public void setDensityFunction(int densityFunction) {        if(densityFunction < 0 || densityFunction > 2) {            densityFunction = DF_LINEAR;        }        this.densityFunction = densityFunction;    }