View Javadoc

1   package com.cosylab.gui.components;
2   
3   import java.awt.BorderLayout;
4   import javax.swing.JPanel;
5   import javax.swing.JFrame;
6   
7   public class DialKnobTester extends JFrame {
8   
9   	private static final long serialVersionUID = 1L;
10  
11  	private JPanel jContentPane = null;
12  
13  	private DialKnob dialKnob = null;
14  
15  	/**
16  	 * This is the default constructor
17  	 */
18  	public DialKnobTester() {
19  		super();
20  		initialize();
21  	}
22  
23  	/**
24  	 * This method initializes this
25  	 * 
26  	 * @return void
27  	 */
28  	private void initialize() {
29  		this.setSize(380, 248);
30  		this.setContentPane(getJContentPane());
31  		this.setTitle("JFrame");
32  	}
33  
34  	/**
35  	 * This method initializes jContentPane
36  	 * 
37  	 * @return javax.swing.JPanel
38  	 */
39  	private JPanel getJContentPane() {
40  		if (jContentPane == null) {
41  			jContentPane = new JPanel();
42  			jContentPane.setLayout(new BorderLayout());
43  			jContentPane.add(getDialKnob(), BorderLayout.CENTER);
44  		}
45  		return jContentPane;
46  	}
47  
48  	/**
49  	 * This method initializes dialKnob
50  	 * 
51  	 * @return com.cosylab.gui.components.DialKnob
52  	 */
53  	private DialKnob getDialKnob() {
54  		if (dialKnob == null) {
55  			dialKnob = new DialKnob();
56  			dialKnob.setTitle("Helloqqq!");
57  
58  			dialKnob.setTitleVisible(true);  // Generated
59  			dialKnob.setLowWarningLimit(0.1233D);  // Generated
60  //			dialKnob.setState(UNABLE TO DETERMINE INITIALIZATION STRING);  // Generated
61  		}
62  		return dialKnob;
63  	}
64  
65  } // @jve:decl-index=0:visual-constraint="10,10"