public Paint transform(MyLink link) {
	            	if(link.getType() == 1){
		            	if(useAlphaApproach){
		            		float[] gray = Color.GRAY.getColorComponents(null);
		            		float alphaVal = 0.0f;
		            		if(link.getWeight() > 0.6667){
		            			alphaVal = 0.5f;
		            		}
		            		else if(link.getWeight() > 0.3333){
		            			alphaVal = 0.3f;
		            		}
		            		else{
		            			alphaVal = 0.1f;
		            		}
		            		return new Color(gray[0],gray[1],gray[2],alphaVal);
		            	}
		            	else {
		            		return new Color((float)(1.0*link.getWeight()),(float)(1.0*link.getWeight()),(float)(1.0*link.getWeight()));
		            	}
	            	}
	            	else {
	            		return Color.BLACK;
	            	}
	            }