Omaha #5597 Include update interval in lightning legend.

Former-commit-id: cd91988db55ace2d0f993a657d1f17338507b778
This commit is contained in:
Ben Steffensmeier 2016-04-26 11:59:20 -05:00
parent 78016e80e7
commit 3b6a0ddfd3

View file

@ -95,6 +95,7 @@ import com.raytheon.viz.lightning.cache.LightningFrameRetriever;
* Jul 01, 2015 4597 bclement reworked resource name using DisplayType
* Sep 10, 2015 4856 njensen synchronize in remove(DataTime)
* Sep 25, 2015 4605 bsteffen repeat binning
* Apr 26, 2016 5597 bsteffen Include update interval in legend.
*
* </pre>
*
@ -183,6 +184,9 @@ public class LightningResource extends
int absTimeInterval = Math.abs(resourceData.getRepeatingBinOffset()
.getInterval());
int updateInterval = Math
.abs(resourceData.getBinOffset().getInterval());
// If a virtual offset is provided, it is aged lightning, so use
// the virtual offset to provide the "Old" time
int virtualOffset = resourceData.getBinOffset().getVirtualOffset();
@ -200,6 +204,9 @@ public class LightningResource extends
if (source != null) {
rval += source + ' ';
}
if (updateInterval != absTimeInterval) {
rval += convertTimeIntervalToString(updateInterval) + "Update ";
}
return rval;
}