It looks the the IDV display controls are pretty good about using the sampling mode from the user's preferences…the code for doing so is a little clunky, but it should be as simple as including the following:

```java
        Real r = GridUtil.sampleToReal(
                     currentSlice, el, animationValue,
                     getSamplingModeValue(
                         getObjectStore().get(
                             PREF_SAMPLING_MODE, DEFAULT_SAMPLING_MODE)));
```