public void setOflowColor(double frac) { int fc = cminfo.getFirstColor(); int lc = cminfo.getLastColor(); int color = (int) (fc + frac * (lc - fc) + 0.5); cminfo.setOflowColor(color); colorLookupTable.setOflowColor(color); }
public void setTopColorToUse(double frac) { topFrac = frac; int fc = cminfo.getFirstColor(); int lc = cminfo.getLastColor(); topColorToUse = (int) (fc + frac * (lc - fc) + 0.5); }
public void setBottomColorToUse(double frac) { bottomFrac = frac; int fc = cminfo.getFirstColor(); int lc = cminfo.getLastColor(); bottomColorToUse = (int) (fc + frac * (lc - fc) + 0.5); }