// put back the width/height properties if there were some
if (heightValue != null)
propertyMap.put("height", heightValue);
if (widthValue != null)
propertyMap.put("width", widthValue);
icon = new TextIcon(text, text, null,
propertyMap.isEmpty() ? null : new UnmodifiableStyle(propertyMap));
}
else if (uri != null)
{
// A URIImageIcon url starts with '/' or 'http:',