VLab Issue #5422 - Make warning polygon outline settable in bundle file

Change-Id: I3f6395fa143a9ff54b748490795ecffb2cc35979

Former-commit-id: ab9de202c00d86fba4851a733c9b6977eccf73d1
This commit is contained in:
Jordan Gerth 2014-12-05 15:21:17 -06:00
parent cbc28219f3
commit 02ed7390d2

View file

@ -87,6 +87,7 @@ import com.vividsolutions.jts.geom.prep.PreparedGeometryFactory;
* Mar 10, 2014 2832 njensen Moved duplicated subclass's disposeInternal() logic here * Mar 10, 2014 2832 njensen Moved duplicated subclass's disposeInternal() logic here
* Aug 14, 2014 3523 mapeters Updated deprecated {@link DrawableString#textStyle} * Aug 14, 2014 3523 mapeters Updated deprecated {@link DrawableString#textStyle}
* assignments. * assignments.
* Dec 5, 2014 DR14944 jgerth Only set outline width when there is no existing capability
* *
* </pre> * </pre>
* *
@ -177,7 +178,9 @@ public abstract class AbstractWWAResource extends
super(data, props); super(data, props);
this.recordsToLoad = new ArrayList<AbstractWarningRecord>(); this.recordsToLoad = new ArrayList<AbstractWarningRecord>();
resourceData.addChangeListener(this); resourceData.addChangeListener(this);
getCapability(OutlineCapability.class).setOutlineWidth(2); if (!hasCapability(OutlineCapability.class)) {
getCapability(OutlineCapability.class).setOutlineWidth(2);
}
color = getCapability((ColorableCapability.class)).getColor(); color = getCapability((ColorableCapability.class)).getColor();
this.entryMap = new ConcurrentHashMap<String, WarningEntry>(); this.entryMap = new ConcurrentHashMap<String, WarningEntry>();
} }