blob: 85b955e25eefea7d099a06b8fb8d475dfd249b00 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
/* */ package NET.worlds.console;
/* */
/* */ import java.awt.Dimension;
/* */ import java.awt.Event;
/* */ import java.awt.Frame;
/* */ import java.awt.GridBagConstraints;
/* */ import java.awt.GridBagLayout;
/* */ import java.awt.List;
/* */ import java.awt.Point;
/* */ import java.awt.Window;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class StatisticsWindow
/* */ extends Frame
/* */ implements MainCallback, MainTerminalCallback, TreeCallback
/* */ {
/* */ private static final long serialVersionUID = 2184104724858956037L;
/* 36 */ Tree _tree = new Tree(this);
/* 37 */ List _list = new List(10, false);
/* */ StatMan _lastStat;
/* */
/* */ public StatisticsWindow(Window parent) {
/* 41 */ super("Statistics Manager");
/* */
/* 43 */ GridBagLayout gbag = new GridBagLayout();
/* 44 */ setLayout(gbag);
/* 45 */ GridBagConstraints c = new GridBagConstraints();
/* 46 */ c.fill = 1;
/* 47 */ c.weightx = 0.4D;
/* 48 */ c.weighty = 1.0D;
/* 49 */ c.gridwidth = 1;
/* 50 */ c.gridheight = 0;
/* 51 */ gbag.setConstraints(this._tree, c);
/* 52 */ add(this._tree);
/* 53 */ c.weightx = 0.6D;
/* 54 */ c.gridwidth = 0;
/* 55 */ gbag.setConstraints(this._list, c);
/* 56 */ add(this._list);
/* */
/* */
/* 59 */ pack();
/* 60 */ Point loc = parent.getLocation();
/* 61 */ Dimension size = parent.getSize();
/* 62 */ setBounds(loc.x + (size.width - 512) / 2,
/* 63 */ loc.y + (size.height - 240) / 2, 512, 240);
/* */
/* 65 */ setVisible(true);
/* 66 */ StatisticsRoot root = StatisticsRoot.getNode();
/* 67 */ root.setTree(this._tree);
/* 68 */ StatTreeNode rootNode = new StatTreeNode(root, null);
/* 69 */ this._tree.change(rootNode, rootNode.getObject());
/* */
/* */
/* 72 */ StatMemNode.getNode();
/* 73 */ StatNetRefNode.getNode();
/* */
/* */
/* */
/* 77 */ this._tree.change(rootNode, StatRateNode.getNode());
/* */
/* 79 */ Main.register(this);
/* */ }
/* */
/* */ @Deprecated
/* */ public boolean handleEvent(Event ev)
/* */ {
/* 85 */ switch (ev.id) {
/* */ case 201:
/* 87 */ if (this._lastStat != null)
/* 88 */ this._lastStat.releaseList(false);
/* 89 */ this._lastStat = null;
/* 90 */ dispose();
/* 91 */ return true;
/* */ }
/* 93 */ return super.handleEvent(ev);
/* */ }
/* */
/* */
/* */ public void treeChange(Object obj)
/* */ {
/* 99 */ if (this._lastStat != null)
/* 100 */ this._lastStat.releaseList(false);
/* 101 */ this._lastStat = ((StatMan)obj);
/* 102 */ this._lastStat.grabList(this._list);
/* */ }
/* */
/* */
/* */
/* */ public void treeFocusChanged(boolean hasFocus) {}
/* */
/* */
/* */ public void mainCallback() {}
/* */
/* */
/* */ public void terminalCallback()
/* */ {
/* 115 */ if (this._lastStat != null)
/* 116 */ this._lastStat.releaseList(true);
/* 117 */ this._lastStat = null;
/* 118 */ Main.unregister(this);
/* */ }
/* */ }
/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\console\StatisticsWindow.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|