/*!
 * SAP UI development toolkit for HTML5 (SAPUI5/OpenUI5)
 * (c) Copyright 2009-2015 SAP SE or an SAP affiliate company.
 * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
 */
sap.ui.define(['jquery.sap.global'],function(q){"use strict";var I={};I.render=function(r,i){r.write("<img");r.writeAttributeEscaped("src",i._getDensityAwareSrc());r.writeControlData(i);r.addClass("sapMImg");if(i.hasListeners("press")||i.hasListeners("tap")){r.addClass("sapMPointer");}if(i.getUseMap()||!i.getDecorative()){r.addClass("sapMImgFocusable");}r.writeClasses();var t=i.getTooltip_AsString();if(t){r.writeAttributeEscaped("title",t);}var u=i.getUseMap();if(u){if(!(q.sap.startsWith(u,"#"))){u="#"+u;}r.writeAttributeEscaped("useMap",u);}var m=0;if((i.getDecorative()&&(!u))){m=-1;r.writeAttribute("role","presentation");r.write(" alt=''");}else{if(i.getAlt()){r.writeAttributeEscaped("alt",i.getAlt()||t);}else if(t){r.writeAttributeEscaped("alt",t);}}r.writeAttribute("tabIndex",m);if(i.getWidth()&&i.getWidth()!=''){r.addStyle("width",i.getWidth());}if(i.getHeight()&&i.getHeight()!=''){r.addStyle("height",i.getHeight());}r.writeStyles();var T=i.getTooltip_AsString();if(T){r.writeAttributeEscaped("title",T);}r.write(" />");};return I;},true);
