/** * Notifies this panel that values in the referenced 3D array have changed. */ public void update() { _texturesDirty = true; dirtyDraw(); }
/** * Sets the index color model for this panel. * The default color model is a black-to-white gray model. * @param colorModel the index color model. */ public void setColorModel(IndexColorModel colorModel) { _colorMap.setColorModel(colorModel); _texturesDirty = true; dirtyDraw(); }
/** * Sets the percentiles used to compute clips for this panel. The default * percentiles are 0 and 100, which correspond to the minimum and maximum * array values. * <p> * Calling this method enables the computation of clips from percentiles. * Any clip values specified or computed previously will be forgotten. * @param percMin the percentile corresponding to clipMin. * @param percMax the percentile corresponding to clipMax. */ public void setPercentiles(double percMin, double percMax) { _clips.setPercentiles(percMin,percMax); _texturesDirty = true; dirtyDraw(); }
/** * Sets the clips for this panel. An image panel maps array values * to bytes, which are then used as indices into a specified color * model. This mapping from array values to byte indices is linear, * and so depends on only these two clip values. The minimum clip * value corresponds to byte index 0, and the maximum clip value * corresponds to byte index 255. Array values outside of the range * [clipMin,clipMax] are clipped to lie inside this range. * <p> * Calling this method disables the computation of clips from percentiles. * Any clip values computed or specified previously will be forgotten. * @param clipMin the sample value corresponding to color model index 0. * @param clipMax the sample value corresponding to color model index 255. */ public void setClips(double clipMin, double clipMax) { _clips.setClips(clipMin,clipMax); _texturesDirty = true; dirtyDraw(); }