Revision 10116
trunk/extensions/extWFS2/src/com/iver/cit/gvsig/gui/panels/WFSAreaPanel.java | ||
---|---|---|
29 | 29 |
|
30 | 30 |
import javax.swing.JButton; |
31 | 31 |
|
32 |
import org.gvsig.gui.beans.comboBoxItemsSeeker.JComboBoxItemsSeekerConfigurable; |
|
32 |
import org.gvsig.gui.beans.swing.jComboBoxWithImageIconItems.ImageIconItemInfo; |
|
33 |
import org.gvsig.gui.beans.swing.jComboBoxWithImageIconItems.JPanelWithJComboBoxImageIconItems; |
|
33 | 34 |
import org.gvsig.gui.beans.swing.jTextFieldWithSpecificCaretPosition.JTextFieldWithSpecificCaretPosition; |
34 | 35 |
|
35 | 36 |
|
... | ... | |
78 | 79 |
* |
79 | 80 |
* $Id$ |
80 | 81 |
* $Log$ |
81 |
* Revision 1.9 2007-02-02 12:22:03 ppiqueras |
|
82 |
* Revision 1.10 2007-02-05 13:49:26 ppiqueras |
|
83 |
* Mejorada la interfaz y a?adidos componentes de tipo lista desplegable con iconos como ?tems. |
|
84 |
* |
|
85 |
* Revision 1.9 2007/02/02 12:22:03 ppiqueras |
|
82 | 86 |
* Mejorada la interfaz. |
83 | 87 |
* |
84 | 88 |
* Revision 1.8 2007/01/26 14:23:56 ppiqueras |
... | ... | |
107 | 111 |
* |
108 | 112 |
* |
109 | 113 |
*/ |
114 |
|
|
110 | 115 |
/** |
111 | 116 |
* This panel allows user to select the area he/she wants to get in the view. |
112 | 117 |
* There are two options to do this: |
... | ... | |
122 | 127 |
private final Rectangle DEFAULT_AREA_MAPCONTROL_PANEL_RECTANGLE = new Rectangle(8, 115, 481, 265); |
123 | 128 |
|
124 | 129 |
// private final Rectangle DEFAULT_COORDINATES_CHECKBOX_RECTANGLE = new Rectangle(6, 19, 445, 20); |
125 |
private final Rectangle DEFAULT_ERASER_ICON_BUTTON_RECTANGLE = new Rectangle (270, 85, 25 , 25);
|
|
126 |
private final Rectangle DEFAULT_PAN_ICON_BUTTON_RECTANGLE = new Rectangle(270, 85, 25, 25);
|
|
127 |
private final Rectangle DEFAULT_ZOOMINANDOUT_JCOMBOBOX_RECTANGLE = new Rectangle(297, 85, 32 , 25);
|
|
128 |
private final Rectangle DEFAULT_TOOL_JCOMBOBOX_RECTANGLE = new Rectangle(10, 87, 250, 21);
|
|
130 |
private final Rectangle DEFAULT_ERASER_ICON_BUTTON_RECTANGLE = new Rectangle (250, 85, 25, 25);
|
|
131 |
private final Rectangle DEFAULT_PAN_ICON_BUTTON_RECTANGLE = new Rectangle(250, 85, 25, 25);
|
|
132 |
private final Rectangle DEFAULT_TOOL_JCOMBOBOX_RECTANGLE = new Rectangle(10, 87, 230, 21);
|
|
133 |
private final Rectangle DEFAULT_ZOOMINANDOUT_JCOMBOBOX_RECTANGLE = new Rectangle(277, 85, 47, 25);
|
|
129 | 134 |
// private final Rectangle DEFAULT_ZOOMIN_ICON_BUTTON_RECTANGLE = new Rectangle(297,100,25,25); |
130 | 135 |
// private final Rectangle DEFAULT_ZOOMOUT_ICON_BUTTON_RECTANGLE = new Rectangle(324,100,25,25); |
131 |
private final Rectangle DEFAULT_ZOOMRECTANGLESELECTION_ICON_BUTTON_RECTANGLE = new Rectangle(331, 85, 25, 25);
|
|
132 |
private final Rectangle DEFAULT_ZOOMPREVIOUS_ICON_BUTTON_RECTANGLE = new Rectangle(358, 85, 25, 25);
|
|
133 |
private final Rectangle DEFAULT_ZOOMCOMPLETE_ICON_BUTTON_RECTANGLE = new Rectangle(385, 85, 25, 25);
|
|
134 |
private final Rectangle DEFAULT_ZOOMINANDOUTVIEWCENTERED_COMBOBOX_RECTANGLE = new Rectangle(412, 85, 32, 25);
|
|
136 |
private final Rectangle DEFAULT_ZOOMRECTANGLESELECTION_ICON_BUTTON_RECTANGLE = new Rectangle(326, 85, 25, 25);
|
|
137 |
private final Rectangle DEFAULT_ZOOMPREVIOUS_ICON_BUTTON_RECTANGLE = new Rectangle(353, 85, 25, 25);
|
|
138 |
private final Rectangle DEFAULT_ZOOMCOMPLETE_ICON_BUTTON_RECTANGLE = new Rectangle(380, 85, 25, 25);
|
|
139 |
private final Rectangle DEFAULT_ZOOMINANDOUTVIEWCENTERED_JCOMBOBOX_RECTANGLE = new Rectangle(407, 85, 47, 25);
|
|
135 | 140 |
// private final Rectangle DEFAULT_ZOOMINVIEWCENTERED_ICON_BUTTON_RECTANGLE = new Rectangle(378,100,25,25); |
136 | 141 |
// private final Rectangle DEFAULT_ZOOMOUTVIEWCENTERED_ICON_BUTTON_RECTANGLE = new Rectangle(405,100,25,25); |
137 |
private final Rectangle DEFAULT_INFO_ICON_BUTTON_RECTANGLE_V1 = new Rectangle(297, 85, 25, 25);
|
|
138 |
private final Rectangle DEFAULT_INFO_ICON_BUTTON_RECTANGLE_V2 = new Rectangle(446, 85, 25, 25);
|
|
142 |
private final Rectangle DEFAULT_INFO_ICON_BUTTON_RECTANGLE_V1 = new Rectangle(277, 85, 25, 25);
|
|
143 |
private final Rectangle DEFAULT_INFO_ICON_BUTTON_RECTANGLE_V2 = new Rectangle(456, 85, 25, 25);
|
|
139 | 144 |
// private final Rectangle DEFAULT_TOOLS_ICON_BUTTON_RECTANGLE = new Rectangle(459,100,25,25); |
140 | 145 |
|
141 | 146 |
private final int DISABLED_OPERATION = 0; |
... | ... | |
158 | 163 |
// private JButton jButtonZoomOutViewCentered = null; |
159 | 164 |
private JButton jButtonInfo = null; |
160 | 165 |
// private JButton jButtonTools = null; |
161 |
private JComboBox jComboBoxZoomInAndOut = null;
|
|
162 |
private JComboBox jComboBoxZoomInAndOutViewCentered = null;
|
|
166 |
private JPanelWithJComboBoxImageIconItems jComboBoxZoomInAndOut = null;
|
|
167 |
private JPanelWithJComboBoxImageIconItems jComboBoxZoomInAndOutViewCentered = null;
|
|
163 | 168 |
|
164 | 169 |
/** |
165 | 170 |
* This method initializes |
... | ... | |
239 | 244 |
if (jComboBoxToolSelection == null) { |
240 | 245 |
jComboBoxToolSelection = new JComboBox(); |
241 | 246 |
jComboBoxToolSelection.setBounds(DEFAULT_TOOL_JCOMBOBOX_RECTANGLE); |
247 |
jComboBoxToolSelection.setToolTipText(PluginServices.getText(this, "select_a_tool")); |
|
242 | 248 |
jComboBoxToolSelection.setEditable(false); |
243 | 249 |
jComboBoxToolSelection.addItem(new ItemOperation(PluginServices.getText(this, "disabled"), this.DISABLED_OPERATION)); |
244 | 250 |
jComboBoxToolSelection.addItem(new ItemOperation(PluginServices.getText(this, "define_absolute_coordinates"), this.SELECTION_BY_COORDINATES_OPERATION)); |
... | ... | |
401 | 407 |
/** |
402 | 408 |
* This method initializes jComboBoxZoomInAndOut |
403 | 409 |
* |
404 |
* @return javax.swing.JComboBox
|
|
410 |
* @return |
|
405 | 411 |
*/ |
406 |
private JComboBox getJComboBoxZoomInAndOut() {
|
|
412 |
private JPanelWithJComboBoxImageIconItems getJComboBoxZoomInAndOut() {
|
|
407 | 413 |
if (jComboBoxZoomInAndOut == null) { |
408 |
jComboBoxZoomInAndOut = new JComboBox();
|
|
414 |
jComboBoxZoomInAndOut = new JPanelWithJComboBoxImageIconItems();
|
|
409 | 415 |
jComboBoxZoomInAndOut.setBounds(DEFAULT_ZOOMINANDOUT_JCOMBOBOX_RECTANGLE); |
410 |
// jComboBoxZoomInAndOut.setIcon(new ImageIcon(getClass().getClassLoader().getResource("images/Pan.png"))); |
|
416 |
jComboBoxZoomInAndOut.addImageIcon(new ImageIconItemInfo("images/ZoomIn.png", new ImageIcon(getClass().getClassLoader().getResource("images/ZoomIn.png")), PluginServices.getText(this, "Zoom_Mas"))); |
|
417 |
jComboBoxZoomInAndOut.addImageIcon(new ImageIconItemInfo("images/ZoomOut.png", new ImageIcon(getClass().getClassLoader().getResource("images/ZoomOut.png")), PluginServices.getText(this, "Zoom_Menos"))); |
|
411 | 418 |
} |
412 | 419 |
return jComboBoxZoomInAndOut; |
413 | 420 |
} |
... | ... | |
516 | 523 |
/** |
517 | 524 |
* This method initializes jComboBoxZoomInAndOut |
518 | 525 |
* |
519 |
* @return javax.swing.JComboBox
|
|
526 |
* @return |
|
520 | 527 |
*/ |
521 |
private JComboBox getJComboBoxZoomInAndOutViewCentered() {
|
|
528 |
private JPanelWithJComboBoxImageIconItems getJComboBoxZoomInAndOutViewCentered() {
|
|
522 | 529 |
if (jComboBoxZoomInAndOutViewCentered == null) { |
523 |
jComboBoxZoomInAndOutViewCentered = new JComboBoxItemsSeekerConfigurable(); |
|
524 |
jComboBoxZoomInAndOutViewCentered.setBounds(DEFAULT_ZOOMINANDOUTVIEWCENTERED_COMBOBOX_RECTANGLE); |
|
525 |
// jComboBoxZoomInAndOut.setIcon(new ImageIcon(getClass().getClassLoader().getResource("images/Pan.png"))); |
|
530 |
jComboBoxZoomInAndOutViewCentered = new JPanelWithJComboBoxImageIconItems(); |
|
531 |
jComboBoxZoomInAndOutViewCentered.setBounds(DEFAULT_ZOOMINANDOUTVIEWCENTERED_JCOMBOBOX_RECTANGLE); |
|
532 |
jComboBoxZoomInAndOutViewCentered.addImageIcon(new ImageIconItemInfo("images/zoommas.png", new ImageIcon(getClass().getClassLoader().getResource("images/zoommas.png")), PluginServices.getText(this, "Zoom_Acercar"))); |
|
533 |
jComboBoxZoomInAndOutViewCentered.addImageIcon(new ImageIconItemInfo("images/ZoomOut.png", new ImageIcon(getClass().getClassLoader().getResource("images/zoommenos.png")), PluginServices.getText(this, "Zoom_Alejar"))); |
|
526 | 534 |
} |
527 | 535 |
return jComboBoxZoomInAndOutViewCentered; |
528 | 536 |
} |
Also available in: Unified diff