Code example for URI

Methods: equals

0
	protected void setSvgURI(URI uri)
	{	 
		if(_uri == uri)
			return; //already set 
		 
		if(_uri != null && _uri.equals(uri))
			return; //already set 
		 
		_uri = uri;
		repaint(); 
	} 
	 
	@Override 
	public void paintComponent(Graphics g)
	{ 
		super.paintComponent(g);
		 
		Image image = SVGHandler.getImage(getSvgURI(), isEnabled(), getWidth(), getHeight());
 
		if(image == null)
		{