コード例 #1
0
ファイル: VsFunction.java プロジェクト: timburrow/OpenVnmrJ
 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);
 }
コード例 #2
0
ファイル: VsFunction.java プロジェクト: timburrow/OpenVnmrJ
 public void setTopColorToUse(double frac) {
   topFrac = frac;
   int fc = cminfo.getFirstColor();
   int lc = cminfo.getLastColor();
   topColorToUse = (int) (fc + frac * (lc - fc) + 0.5);
 }
コード例 #3
0
ファイル: VsFunction.java プロジェクト: timburrow/OpenVnmrJ
 public void setBottomColorToUse(double frac) {
   bottomFrac = frac;
   int fc = cminfo.getFirstColor();
   int lc = cminfo.getLastColor();
   bottomColorToUse = (int) (fc + frac * (lc - fc) + 0.5);
 }