code: static String extractStyle(String style, String attribute) {
  		if (style == null) {
  			return "";
  		}
  		
  		StringTokenizer tokens = new StringTokenizer(style,";");
  		
  		while (tokens.hasMoreTokens()) {
  			String token = tokens.nextToken();
  			String key = token.substring(0,token.indexOf(':'));
  			if (key.equals(attribute)) {
  				return token.substring(token.indexOf(':')+1);
  			}
  		}
  		
  		return "";
  	}
docs: Extract the style value from a Inkscape encoded string
  
  @param style The style string to be decoded
  @param attribute The style attribute to retrieve
  @return The value for the given attribute