Issue #2060 fix auto-update errors with grids in non-map displays

Change-Id: Id99693f6fd54d56a4a1255f7ee5e2308e2f5d9de

Former-commit-id: a139113883f69be89a0e0a771f8d6f48d3948686
This commit is contained in:
Nate Jensen 2014-05-08 14:01:54 -05:00
parent 0308147ad4
commit 3e3035b6f1
4 changed files with 26 additions and 5 deletions

View file

@ -41,6 +41,7 @@ import javax.xml.bind.annotation.XmlElement;
import com.raytheon.uf.common.dataplugin.PluginDataObject;
import com.raytheon.uf.common.time.DataTime;
import com.raytheon.uf.common.time.DataTime.FLAG;
import com.raytheon.uf.viz.core.alerts.DataCubeAlertMessageParser;
import com.raytheon.uf.viz.core.exception.VizException;
import com.raytheon.uf.viz.core.rsc.AbstractRequestableResourceData;
import com.raytheon.uf.viz.core.rsc.AbstractVizResource;
@ -60,6 +61,7 @@ import com.vividsolutions.jts.geom.Coordinate;
* Apr 12, 2011 bsteffen Initial creation
* May 31, 2013 1847 bsteffen D2D nsharp will now format Lat/Lons as
* stationId like NC ncharp.
* May 08, 2014 2060 njensen Constructor sets alert parser
*
* </pre>
*
@ -81,6 +83,7 @@ public abstract class D2DNSharpResourceData extends
public D2DNSharpResourceData() {
super();
this.setAlertParser(new DataCubeAlertMessageParser());
}
public D2DNSharpResourceData(String soundingType) {

View file

@ -40,6 +40,7 @@ import org.eclipse.core.runtime.Platform;
import com.raytheon.uf.common.dataplugin.PluginDataObject;
import com.raytheon.uf.common.time.DataTime;
import com.raytheon.uf.viz.core.RecordFactory;
import com.raytheon.uf.viz.core.alerts.DataCubeAlertMessageParser;
import com.raytheon.uf.viz.core.drawables.IDescriptor;
import com.raytheon.uf.viz.core.exception.VizException;
import com.raytheon.uf.viz.core.rsc.AbstractRequestableResourceData;
@ -59,6 +60,7 @@ import com.raytheon.uf.viz.xy.crosssection.display.CrossSectionDescriptor;
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* Feb 17, 2009 njensen Initial creation
* May 08, 2014 2060 njensen Constructor sets alert parser
*
* </pre>
*
@ -88,6 +90,10 @@ public class CrossSectionResourceData extends AbstractRequestableResourceData {
private Set<DataTime> blackListedTimes = new HashSet<DataTime>();
public CrossSectionResourceData() {
this.setAlertParser(new DataCubeAlertMessageParser());
}
@Override
public AbstractVizResource<?, ?> construct(LoadProperties loadProperties,
IDescriptor descriptor) throws VizException {

View file

@ -35,6 +35,7 @@ import org.eclipse.core.runtime.Platform;
import com.raytheon.uf.common.dataplugin.PluginDataObject;
import com.raytheon.uf.viz.core.RecordFactory;
import com.raytheon.uf.viz.core.alerts.DataCubeAlertMessageParser;
import com.raytheon.uf.viz.core.drawables.IDescriptor;
import com.raytheon.uf.viz.core.exception.VizException;
import com.raytheon.uf.viz.core.rsc.AbstractRequestableResourceData;
@ -55,6 +56,7 @@ import com.vividsolutions.jts.geom.Coordinate;
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* Feb 23, 2009 njensen Initial creation
* May 08, 2014 2060 njensen Constructor sets alert parser
*
* </pre>
*
@ -107,6 +109,10 @@ public class TimeSeriesResourceData extends AbstractRequestableResourceData
private AbstractVizResource<?, ?> secondaryResource;
public TimeSeriesResourceData() {
this.setAlertParser(new DataCubeAlertMessageParser());
}
/*
* (non-Javadoc)
*
@ -255,10 +261,12 @@ public class TimeSeriesResourceData extends AbstractRequestableResourceData
this.source = source;
}
@Override
public String getPointLetter() {
return pointLetter;
}
@Override
public void setPointLetter(String pointLetter) {
this.pointLetter = pointLetter;
}

View file

@ -37,6 +37,7 @@ import com.raytheon.uf.common.dataplugin.PluginDataObject;
import com.raytheon.uf.common.geospatial.ISpatialEnabled;
import com.raytheon.uf.common.time.DataTime;
import com.raytheon.uf.viz.core.RecordFactory;
import com.raytheon.uf.viz.core.alerts.DataCubeAlertMessageParser;
import com.raytheon.uf.viz.core.drawables.IDescriptor;
import com.raytheon.uf.viz.core.exception.VizException;
import com.raytheon.uf.viz.core.rsc.AbstractRequestableResourceData;
@ -49,7 +50,7 @@ import com.raytheon.viz.core.rsc.ICombinedResourceData;
import com.vividsolutions.jts.geom.Coordinate;
/**
* TODO Add Description
* Resource data for var height displays
*
* <pre>
*
@ -59,6 +60,7 @@ import com.vividsolutions.jts.geom.Coordinate;
* Feb 20, 2009 njensen Initial creation
* Aug 15, 2013 2258 bsteffen Convert profiler sounding to var height
* with hodo.
* May 08, 2014 2060 njensen Constructor sets alert parser
*
* </pre>
*
@ -95,6 +97,10 @@ public class VarHeightResourceData extends AbstractRequestableResourceData
private AbstractVizResource<?, ?> secondaryResource;
public VarHeightResourceData() {
this.setAlertParser(new DataCubeAlertMessageParser());
}
/*
* (non-Javadoc)
*
@ -155,10 +161,6 @@ public class VarHeightResourceData extends AbstractRequestableResourceData
rsc.addRecord(rec);
}
return rsc;
} else {
throw new VizException(
"No resource type available for record type: "
+ pdo.getClass().getName());
}
}
throw new VizException(
@ -351,10 +353,12 @@ public class VarHeightResourceData extends AbstractRequestableResourceData
this.point = pointCoordinate;
}
@Override
public String getPointLetter() {
return pointLetter;
}
@Override
public void setPointLetter(String pointLetter) {
this.pointLetter = pointLetter;
}