gvsig-3d / 2.0 / trunk / org.gvsig.gvsig3d.app / org.gvsig.gvsig3d.app.extension / src / main / java / org / gvsig / gvsig3d / app / gui / styling / PictureSymbolTab.java @ 328
History | View | Annotate | Download (3.75 KB)
1 |
package org.gvsig.gvsig3d.app.gui.styling; |
---|---|
2 |
|
3 |
import java.awt.Component; |
4 |
import java.awt.FlowLayout; |
5 |
import java.awt.GridBagConstraints; |
6 |
import java.awt.GridBagLayout; |
7 |
import java.awt.GridLayout; |
8 |
import java.awt.Insets; |
9 |
|
10 |
import javax.swing.JButton; |
11 |
import javax.swing.JComboBox; |
12 |
import javax.swing.JInternalFrame; |
13 |
import javax.swing.JLabel; |
14 |
import javax.swing.JPanel; |
15 |
import javax.swing.JRadioButton; |
16 |
import javax.swing.JSpinner; |
17 |
import javax.swing.JTabbedPane; |
18 |
import javax.swing.JTextField; |
19 |
import javax.swing.border.TitledBorder; |
20 |
|
21 |
import org.gvsig.gvsig3d.symbology3d.I3DSymbol; |
22 |
|
23 |
public class PictureSymbolTab extends JPanel implements ISymbolSelectorTab{ |
24 |
/**
|
25 |
*
|
26 |
*/
|
27 |
private static final long serialVersionUID = -967291574626881727L; |
28 |
private JTextField textField; |
29 |
|
30 |
private I3DSymbol _symbol;
|
31 |
|
32 |
/**
|
33 |
* Create the panel.
|
34 |
*/
|
35 |
public PictureSymbolTab(Component parent) { |
36 |
FlowLayout flowLayout_1 = (FlowLayout) getLayout(); |
37 |
|
38 |
JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP); |
39 |
add(tabbedPane); |
40 |
|
41 |
JPanel panel = new JPanel(); |
42 |
tabbedPane.addTab("Properties", null, panel, null); |
43 |
GridBagLayout gbl_panel = new GridBagLayout(); |
44 |
gbl_panel.columnWidths = new int[]{352, 84, 0}; |
45 |
gbl_panel.rowHeights = new int[]{100, 0}; |
46 |
gbl_panel.columnWeights = new double[]{0.0, 0.0, Double.MIN_VALUE}; |
47 |
gbl_panel.rowWeights = new double[]{0.0, Double.MIN_VALUE}; |
48 |
panel.setLayout(gbl_panel); |
49 |
|
50 |
JPanel panel_1 = new JPanel(); |
51 |
panel_1.setBorder(new TitledBorder(null, "Properties", TitledBorder.LEADING, TitledBorder.TOP, null, null)); |
52 |
GridBagConstraints gbc_panel_1 = new GridBagConstraints(); |
53 |
gbc_panel_1.anchor = GridBagConstraints.NORTHWEST;
|
54 |
gbc_panel_1.insets = new Insets(0, 0, 0, 5); |
55 |
gbc_panel_1.gridx = 0;
|
56 |
gbc_panel_1.gridy = 0;
|
57 |
panel.add(panel_1, gbc_panel_1); |
58 |
panel_1.setLayout(new GridLayout(0, 3, 0, 0)); |
59 |
|
60 |
JLabel lblNewLabel_1 = new JLabel("Ruta:"); |
61 |
panel_1.add(lblNewLabel_1); |
62 |
|
63 |
textField = new JTextField(); |
64 |
textField.setEditable(false);
|
65 |
panel_1.add(textField); |
66 |
textField.setColumns(10);
|
67 |
|
68 |
JButton btnBrowse = new JButton("Browse"); |
69 |
panel_1.add(btnBrowse); |
70 |
|
71 |
JLabel lblSize = new JLabel("Size:"); |
72 |
panel_1.add(lblSize); |
73 |
|
74 |
JSpinner spinner = new JSpinner(); |
75 |
panel_1.add(spinner); |
76 |
|
77 |
JPanel panel_3 = new JPanel(); |
78 |
panel_1.add(panel_3); |
79 |
|
80 |
JLabel lblUnits = new JLabel("Units"); |
81 |
panel_1.add(lblUnits); |
82 |
|
83 |
JComboBox comboBox = new JComboBox(); |
84 |
panel_1.add(comboBox); |
85 |
|
86 |
JComboBox comboBox_1 = new JComboBox(); |
87 |
panel_1.add(comboBox_1); |
88 |
|
89 |
JPanel panel_2 = new JPanel(); |
90 |
FlowLayout flowLayout = (FlowLayout) panel_2.getLayout(); |
91 |
panel_2.setBorder(new TitledBorder(null, "Preview", TitledBorder.LEADING, TitledBorder.TOP, null, null)); |
92 |
GridBagConstraints gbc_panel_2 = new GridBagConstraints(); |
93 |
gbc_panel_2.anchor = GridBagConstraints.WEST;
|
94 |
gbc_panel_2.gridx = 1;
|
95 |
gbc_panel_2.gridy = 0;
|
96 |
panel.add(panel_2, gbc_panel_2); |
97 |
|
98 |
JInternalFrame internalFrame_1 = new JInternalFrame("New JInternalFrame"); |
99 |
panel_2.add(internalFrame_1); |
100 |
|
101 |
JPanel panel_4 = new JPanel(); |
102 |
tabbedPane.addTab("Collection", null, panel_4, null); |
103 |
panel_4.setLayout(new GridLayout(3, 4, 0, 0)); |
104 |
|
105 |
JRadioButton rdbtnNewRadioButton = new JRadioButton("New radio button"); |
106 |
panel_4.add(rdbtnNewRadioButton); |
107 |
|
108 |
JPanel panel_5 = new JPanel(); |
109 |
panel_4.add(panel_5); |
110 |
|
111 |
JRadioButton rdbtnNewRadioButton_1 = new JRadioButton("New radio button"); |
112 |
panel_4.add(rdbtnNewRadioButton_1); |
113 |
|
114 |
JPanel panel_6 = new JPanel(); |
115 |
panel_4.add(panel_6); |
116 |
|
117 |
JRadioButton rdbtnNewRadioButton_2 = new JRadioButton("New radio button"); |
118 |
panel_4.add(rdbtnNewRadioButton_2); |
119 |
|
120 |
JPanel panel_7 = new JPanel(); |
121 |
panel_4.add(panel_7); |
122 |
|
123 |
internalFrame_1.setVisible(true);
|
124 |
|
125 |
} |
126 |
|
127 |
public I3DSymbol getNewSymbol() {
|
128 |
// TODO Auto-generated method stub
|
129 |
return _symbol;
|
130 |
} |
131 |
} |