| | |
| | | monitoringLabels.add(Utilities.createDefaultLabel()); |
| | | } |
| | | } |
| | | private ArrayList<JLabel> labels = new ArrayList<JLabel>(); |
| | | { |
| | | for (int i=0; i<ngOperations.size(); i++) |
| | | { |
| | | labels.add(Utilities.createPrimaryLabel(getLabel(ngOperations.get(i)))); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Default constructor. |
| | |
| | | gbc.gridwidth = 1; |
| | | for (int i=0; i<ngOperations.size(); i++) |
| | | { |
| | | JLabel l = Utilities.createPrimaryLabel(getLabel(ngOperations.get(i))); |
| | | gbc.gridy ++; |
| | | gbc.insets.left = 0; |
| | | gbc.gridx = 0; |
| | | gbc.weightx = 0.0; |
| | | gbc.gridwidth = 1; |
| | | add(l, gbc); |
| | | add(labels.get(i), gbc); |
| | | gbc.insets.left = 10; |
| | | gbc.gridx = 1; |
| | | gbc.gridwidth = 2; |
| | |
| | | if (csr != null) |
| | | { |
| | | updateMonitoringInfo(ngOperations, monitoringLabels, csr); |
| | | int index = 0; |
| | | for (MonitoringAttributes attr : ngOperations) |
| | | { |
| | | if (Utilities.getFirstMonitoringValue(csr, attr.getAttributeName()) |
| | | == null) |
| | | { |
| | | monitoringLabels.get(index).setVisible(false); |
| | | labels.get(index).setVisible(false); |
| | | } |
| | | index ++; |
| | | } |
| | | revalidate(); |
| | | repaint(); |
| | | } |
| | | else |
| | | { |