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

Change-Id: I3f6395fa143a9ff54b748490795ecffb2cc35979

Former-commit-id: 763f8876c8 [formerly 02ed7390d2] [formerly c9eabcc1d4 [formerly ab9de202c00d86fba4851a733c9b6977eccf73d1]]
Former-commit-id: c9eabcc1d4
Former-commit-id: 74fc60a2fa
This commit is contained in:
Jordan Gerth 2014-12-05 15:21:17 -06:00
parent fb612114f7
commit bfdffbf940

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
* Aug 14, 2014 3523 mapeters Updated deprecated {@link DrawableString#textStyle}
* assignments.
* Dec 5, 2014 DR14944 jgerth Only set outline width when there is no existing capability
*
* </pre>
*
@ -177,7 +178,9 @@ public abstract class AbstractWWAResource extends
super(data, props);
this.recordsToLoad = new ArrayList<AbstractWarningRecord>();
resourceData.addChangeListener(this);
getCapability(OutlineCapability.class).setOutlineWidth(2);
if (!hasCapability(OutlineCapability.class)) {
getCapability(OutlineCapability.class).setOutlineWidth(2);
}
color = getCapability((ColorableCapability.class)).getColor();
this.entryMap = new ConcurrentHashMap<String, WarningEntry>();
}