code: public void resolve(Diagram diagram) {
  		if (ref == null) {
  			return;
  		}
  		
  		Gradient other = diagram.getGradient(ref);
  		
  		for (int i=0;i<other.steps.size();i++) {
  			steps.add(other.steps.get(i));
  		}
  	}
docs: Resolve the gradient reference
  
  @param diagram The diagram to resolve against