parentBoardItem.unFoldChild();
}
- final DAChartBoardItem curBoard = processChartboardMap.get(pid);
-
+ DAChartBoardItem curBoard = null;
+ int selectedPID = Toolbar.INSTANCE.getSelectedPid();
+ // Case : Pass unselected process.
+ if (selectedPID > 0 && selectedPID != pid) {
+ continue;
+ }
+ // Show a selected process on parent chartboardItem.
+ else if (selectedPID > 0 && selectedPID == pid) {
+ curBoard = parentBoardItem;
+ parentBoardItem.hideChildItems();
+ parentBoardItem.getItemCell().hideChildFoldToggleButton();
+ curBoard.getChart().getPlot().setAxisEndY(0);
+ }
+ // Show All processes on one's chartboardItem.
+ else {
+ curBoard = processChartboardMap.get(pid);
+ parentBoardItem.showChildItems();
+ parentBoardItem.getItemCell().showChildFoldToggleButton();
+ }
+
String oldProcessName = processNameMap.get(pid);
- final String processName = AnalyzerUtil.getProcessName(pid.intValue());
if (oldProcessName == null || !oldProcessName.equals(processName)) {
curBoard.getChart().setInformation(processName + " / PID : " + pid.intValue());
}