int minPosition = horPositions[0];  for(int i=0; i<horPositions.length; i++) if(horPositions[i]<minPosition) minPosition=horPositions[i]; if(minPosition<0) { minPosition = minPosition*-1; for(int i=0; i<horPositions.length; i++){  horPositions[i]+=minPosition;  } }   for(int i=0, temp=0; i<nodeLevels.length; i++) { for(int j=0; j<nodeLevels[i].length; j++) { temp=nodeLevels[i][j];  GraphNode n = (GraphNode)m_nodes.elementAt(temp); n.x = horPositions[temp]*m_nodeWidth; n.y = i*3*m_nodeHeight; }  }
int minPosition = horPositions[0];  for(int i=0; i<horPositions.length; i++) if(horPositions[i]<minPosition) minPosition=horPositions[i]; if(minPosition<0) { minPosition = minPosition*-1; for(int i=0; i<horPositions.length; i++){  horPositions[i]+=minPosition;  }
    private void tempMethod(int horPositions[]) {		int minPosition = horPositions[0];		for(int i=0; i<horPositions.length; i++)	    if(horPositions[i]<minPosition)		minPosition=horPositions[i];	if(minPosition<0) {	    minPosition = minPosition*-1;	    for(int i=0; i<horPositions.length; i++){		//System.out.print(horPositions[i]);		horPositions[i]+=minPosition;		//System.out.println(">"+horPositions[i]); 	    }	}		//int nodeHeight = m_nodeHeight*2; //m_fm.getHeight()*2;	for(int i=0, temp=0; i<nodeLevels.length; i++) {	    for(int j=0; j<nodeLevels[i].length; j++) {		temp=nodeLevels[i][j];		//horPositions[temp]=j;		GraphNode n = (GraphNode)m_nodes.elementAt(temp);		n.x = horPositions[temp]*m_nodeWidth;		n.y = i*3*m_nodeHeight;	    }	    	}    }