Issue #2160 - Fix for MPE display 7x7 dialog, field changes
Change-Id: Ib428d1aab246863bfdbbb271d27a4687197a3ebe Former-commit-id: 1fbaa2721a4b2d79a06c1d4d8b8526b5b25150a9
This commit is contained in:
parent
37042f0b2a
commit
655d9eb928
4 changed files with 62 additions and 23 deletions
|
@ -102,6 +102,7 @@ import com.raytheon.viz.ui.editor.IMultiPaneEditor;
|
|||
* Mar 14, 2013 1457 mpduff Reset the gages on the resource.
|
||||
* Apr 18, 2013 1920 mpduff Added updateGages method to reload the gage data,
|
||||
* fix formatting of legend for Base field Height.
|
||||
* Jul 02, 2013 2160 mpduff Initialize newly displayed resources.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -728,6 +729,19 @@ public class MPEDisplayManager {
|
|||
new LoadProperties());
|
||||
list.add(displayedFieldResource);
|
||||
|
||||
IDisplayPaneContainer container = display.getContainer();
|
||||
for (IDisplayPane pane : container.getDisplayPanes()) {
|
||||
if (pane.getRenderableDisplay() == display) {
|
||||
try {
|
||||
displayedFieldResource.init(pane.getTarget());
|
||||
break;
|
||||
} catch (VizException e) {
|
||||
Activator.statusHandler.handle(Priority.PROBLEM,
|
||||
e.getLocalizedMessage(), e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (oldField != fieldToDisplay) {
|
||||
List<IDisplayFieldChangedListener> listeners = new ArrayList<IDisplayFieldChangedListener>();
|
||||
synchronized (fieldChangedListeners) {
|
||||
|
|
|
@ -68,11 +68,12 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
|
|||
* SOFTWARE HISTORY
|
||||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* Sep 2, 2008 randerso Initial creation
|
||||
* Sep 02, 2008 randerso Initial creation
|
||||
* May 01, 2013 15920 lbousaidi gages get updated after clicking on
|
||||
* Regenerate Hour Fields without closing 7x7 Gui.
|
||||
* Jun 05, 2013 15961 lbousaidi added routines for set Bad/set not bad buttons
|
||||
* to reflect the state of the gages.
|
||||
* Jul 02, 2013 2160 mpduff Changed to not call deprecated resource.getData() method.
|
||||
* </pre>
|
||||
*
|
||||
* @author randerso
|
||||
|
@ -131,7 +132,7 @@ public class Display7x7Dialog extends CaveSWTDialog {
|
|||
|
||||
private ColorMapParameters parameters;
|
||||
|
||||
private DisplayFieldData[] displayTypes = MPEDisplayManager.mpe_qpe_fields;
|
||||
private final DisplayFieldData[] displayTypes = MPEDisplayManager.mpe_qpe_fields;
|
||||
|
||||
private Combo prodSetCbo;
|
||||
|
||||
|
@ -268,7 +269,9 @@ public class Display7x7Dialog extends CaveSWTDialog {
|
|||
}
|
||||
|
||||
try {
|
||||
short[] xmData = resource.getData();
|
||||
short[] xmData = resource.getData(MPEDisplayManager
|
||||
.getCurrent().getCurrentDisplayedDate());
|
||||
|
||||
for (int i = 0; i < 7; ++i) {
|
||||
for (int j = 0; j < 7; ++j) {
|
||||
short val = -999;
|
||||
|
|
|
@ -21,6 +21,7 @@ package com.raytheon.viz.mpe.ui.rsc;
|
|||
|
||||
import java.awt.Rectangle;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
|
@ -64,7 +65,8 @@ import com.vividsolutions.jts.geom.Coordinate;
|
|||
*
|
||||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* Dec 6, 2012 mschenke Initial creation
|
||||
* Dec 06, 2012 mschenke Initial creation.
|
||||
* Jul 02, 2013 2160 mpduff Added convenience method getData(Date)
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -297,11 +299,31 @@ public abstract class AbstractGriddedMPEResource<T extends AbstractMPEGriddedRes
|
|||
return getData(lastPainted);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the data.
|
||||
*
|
||||
* @param time
|
||||
* date of the data
|
||||
* @return the Data
|
||||
* @throws VizException
|
||||
*/
|
||||
public short[] getData(DataTime time) throws VizException {
|
||||
Frame frame = getFrame(time);
|
||||
return frame.data;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the data.
|
||||
*
|
||||
* @param date
|
||||
* date of the data
|
||||
* @return the Data
|
||||
* @throws VizException
|
||||
*/
|
||||
public short[] getData(Date date) throws VizException {
|
||||
return getData(new DataTime(date));
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the hrap subgrid extent
|
||||
*
|
||||
|
|
|
@ -73,8 +73,8 @@ import com.raytheon.viz.mpe.ui.rsc.MPEFieldResourceData.MPEFieldFrame;
|
|||
*
|
||||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* Nov 29, 2012 mschenke Initial creation
|
||||
*
|
||||
* Nov 29, 2012 mschenke Initial creation.
|
||||
* Jul 02, 2013 2160 mpduff Changed how edited data are called for return.
|
||||
* </pre>
|
||||
*
|
||||
* @author mschenke
|
||||
|
@ -242,7 +242,7 @@ public class MPEFieldResource extends
|
|||
@Override
|
||||
public short[] getData(DataTime time) throws VizException {
|
||||
MPEFieldFrame frame = getFrame(time);
|
||||
return frame.getEditedData();
|
||||
return getEditedData(frame);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue