/** * _more_ * * @param visible _more_ * @throws Exception _more_ */ public void setPairProfilesVisibility(boolean visible) throws Exception { profilesVisibility = visible; Set s = getDataTimeSet(); int len = s.getLength(); if (len < 2) { // no pair do nothing return; } AnimationWidget aniWidget = this.getAnimationWidget(); // aniWidget.setBoxPanelVisible( !visible); // if (visible) { aniWidget.gotoIndex(0); aniWidget.setRunning(false); // } if (visible) { Set timeset = subSetProfilesTimeSet(s); dataNode.setOutputTimes((SampledSet) timeset); } else { Set timeset = getDataTimeSet(); dataNode.setOutputTimes((SampledSet) timeset); } // GuiUtils.enableTree(aniWidget.getContents(), !visible); // now update the display list label aeroDisplay.setProfilesVisibility(visible, 0); if (visible) { if (s != null) { double[][] samples = s.getDoubles(); DateTime dt = new DateTime(samples[0][1], s.getSetUnits()[0]); DateTime dt1 = new DateTime(samples[0][0], s.getSetUnits()[0]); listlabel = dt1.dateString() + ":" + dt1.timeString() + " and " + dt.dateString() + ":" + dt.timeString(); } } else { listlabel = null; } updateDisplayList(); updateHeaderLabel(); }