public Point getLegendPosition ( int lineNr , int chainNr ) { int x = DEFAULT_X_SPACE ; int y = lineNr * DEFAULT_Y_STEP + DEFAULT_Y_SPACE ; y += chainNr * DEFAULT_LINE_SEPARATION ; Point p = new Point ( x , y ) ; return p ; }
provide the coordinates for where to draw the legend for line X and if it is chain 1 or 2