public void update(Fill fill_, Feature feature) {
// Provisory hack to have 3D style (see Styles3D)
if (fill_.getClass().getName().equalsIgnoreCase(FillImpl3D.class.getName())) {
FillImpl3D fill = (FillImpl3D) fill_;
if (fill.getDiffuseColor() != null) {
String value = getExpressionValue(fill.getDiffuseColor(),
feature);
if (value != null) {
this.diffuseColor.setValue(value);
}
}
if (fill.getTextureUrl() != null) {
String value = getExpressionValue(fill.getTextureUrl(), feature);
if (value != null) {
this.url.setValue(value);
this.imageTexture.setValid(true);
this.material.setValid(false);
}
}
if (fill.getEmissiveColor() != null) {
String value = getExpressionValue(fill.getEmissiveColor(),
feature);
if (value != null) {
this.emissiveColor.setValue(value);
}
}