jTracer  1.03
Stack trace visualization tool
void org.libcsdbg.jtracer.SessionManager.setClientPosition ( int  index)

Position a client frame to its default coordinates.

Parameters
[in]indexthe frame index
Note
$ x(i) = baseX + step * (i\; \% \;rowSize) $
$ y(i) = baseY + step * (row + (i\; \% \;rowSize)) $
Todo:
Consider making the presets configurable

Definition at line 210 of file SessionManager.java.

Referenced by org.libcsdbg.jtracer.SessionManager.cascade(), and org.libcsdbg.jtracer.SessionManager.register().

211  {
213  int rowsz = 6;
214  int step = 40;
215  int basex = 100;
216  int basey = 50;
217 
218  int row = (index + rowsz) / rowsz;
219  int mod = index % rowsz;
220  int x = basex + step * mod;
221  int y = basey + step * (row + mod);
222 
223  sessions.get(index).setLocation(x, y);
224  }

+ Here is the caller graph for this function: