Clover coverage report - PMD - 3.7 Coverage timestamp: Wed May 31 2006 09:25:59 EDT FRAMES NO FRAMES |
file stats: | LOC: | 30 |  | Methods: | 2
| NCLOC: | 24 |  | Classes: | 1
Source file | Conditionals | Statements | Methods | TOTAL
JSmartPanel.java | - | 0% | 0% | 0% |

1 |  | package net.sourceforge.pmd.util.designer;
2 |  |
3 |  | import javax.swing.*;
4 |  | import java.awt.Component;
5 |  | import java.awt.GridBagConstraints;
6 |  | import java.awt.GridBagLayout;
7 |  | import java.awt.Insets;
8 |  |
9 |  | public class JSmartPanel extends JPanel {
10 |  |
11 |  | private GridBagConstraints constraints = new GridBagConstraints();
12 |  |
13 | 0 | public JSmartPanel() {
14 | 0 | super(new GridBagLayout());
15 |  | }
16 |  |
17 | 0 | public void add(Component comp, int gridx, int gridy, int gridwidth, int gridheight, double weightx, double weighty, int anchor, int fill, Insets insets) {
18 | 0 | constraints.gridx = gridx;
19 | 0 | constraints.gridy = gridy;
20 | 0 | constraints.gridwidth = gridwidth;
21 | 0 | constraints.gridheight = gridheight;
22 | 0 | constraints.weightx = weightx;
23 | 0 | constraints.weighty = weighty;
24 | 0 | constraints.anchor = anchor;
25 | 0 | constraints.fill = fill;
26 | 0 | constraints.insets = insets;
27 | 0 | add(comp, constraints);
28 |  | }
29 |  | }
30 |  |