/** * Sets the orientation of sample axes. * @param orientation the orientation. */ public void setOrientation(Orientation orientation) { if (_orientation!=orientation) { _orientation = orientation; updateSampling(); repaint(); } }
/** * Sets the method for interpolation between samples. * @param interpolation the interpolation method. */ public void setInterpolation(Interpolation interpolation) { if (_interpolation!=interpolation) { _interpolation = interpolation; updateBestProjectors(); repaint(); } }
/** * Sets the percentiles for the specified color component. * @param ic the index (0, 1, 2, or 3) of the color component. * @param percMin the percentile corresponding to clipMin. * @param percMax the percentile corresponding to clipMax. */ public void setPercentiles(int ic, float percMin, float percMax) { _clips[ic].setPercentiles(percMin,percMax); repaint(); }
/** * Sets the index color model for this view. For three or four color * components, a direct color model is used instead of this index color * model. The default color model is a black-to-white gray model. * @param colorModel the index color model. */ public void setColorModel(IndexColorModel colorModel) { if (_nc==1) { _colorMap.setColorModel(colorModel); repaint(); } }
/** * Sets the clips for the specified color component. * @param ic the index (0, 1, 2, or 3) of the color component. * @param clipMin the sample value corresponding to byte value 0. * @param clipMax the sample value corresponding to byte value 255. */ public void setClips(int ic, float clipMin, float clipMax) { checkComponent(ic); _clips[ic].setClips(clipMin,clipMax); repaint(); }
_clipMax = null; updateSampling(); repaint();