jTracer  1.03
Stack trace visualization tool
void org.libcsdbg.jtracer.StatusBar.setIndicator ( String  nm,
int  cnt 
)

Set one of the counter indicators.

Parameters
[in]nmthe indicator name ("session" or "trace")
[in]cntthe new value

Definition at line 152 of file StatusBar.java.

References org.libcsdbg.jtracer.Registry.get().

Referenced by org.libcsdbg.jtracer.StatusBar.setIndicators().

153  {
154  JLabel field = fields.get(nm + "Count");
155 
156  String text = cnt + " " + nm;
157  if (cnt != 1)
158  text += "s";
159  field.setText(text);
160 
161  Registry conf = Registry.getCurrent();
162  Color bg = null;
163  if (cnt > 0)
164  bg = (Color) conf.get("statusbar", "bgcolor-counter-active");
165  else
166  bg = (Color) conf.get("statusbar", "bgcolor");
167 
168  field.getParent().setBackground(bg);
169  }

+ Here is the call graph for this function:

+ Here is the caller graph for this function: