Revision 9956 trunk/frameworks/_fwAndami/src/com/iver/andami/plugins/config/generate/ToolBar.java
ToolBar.java | ||
---|---|---|
80 | 80 |
*/ |
81 | 81 |
private java.util.Vector _comboScaleList; |
82 | 82 |
|
83 |
/** |
|
84 |
* Field _comboCoordsList |
|
85 |
*/ |
|
86 |
private java.util.Vector _comboCoordsList; |
|
83 | 87 |
|
88 |
|
|
84 | 89 |
//----------------/ |
85 | 90 |
//- Constructors -/ |
86 | 91 |
//----------------/ |
... | ... | |
91 | 96 |
_selectableToolList = new Vector(); |
92 | 97 |
_comboButtonList = new Vector(); |
93 | 98 |
_comboScaleList = new Vector(); |
99 |
_comboCoordsList = new Vector(); |
|
94 | 100 |
} //-- com.iver.andami.plugins.config.generate.ToolBar() |
95 | 101 |
|
96 | 102 |
|
... | ... | |
145 | 151 |
} //-- void addComboButton(int, com.iver.andami.plugins.config.generate.ComboButton) |
146 | 152 |
|
147 | 153 |
/** |
154 |
* Method addComboCoords |
|
155 |
* |
|
156 |
* @param vComboCoords |
|
157 |
*/ |
|
158 |
public void addComboCoords(com.iver.andami.plugins.config.generate.ComboCoords vComboCoords) |
|
159 |
throws java.lang.IndexOutOfBoundsException |
|
160 |
{ |
|
161 |
_comboCoordsList.addElement(vComboCoords); |
|
162 |
} //-- void addComboCoords(com.iver.andami.plugins.config.generate.ComboCoords) |
|
163 |
|
|
164 |
/** |
|
165 |
* Method addComboCoords |
|
166 |
* |
|
167 |
* @param index |
|
168 |
* @param vComboCoords |
|
169 |
*/ |
|
170 |
public void addComboCoords(int index, com.iver.andami.plugins.config.generate.ComboCoords vComboCoords) |
|
171 |
throws java.lang.IndexOutOfBoundsException |
|
172 |
{ |
|
173 |
_comboCoordsList.insertElementAt(vComboCoords, index); |
|
174 |
} //-- void addComboCoords(int, com.iver.andami.plugins.config.generate.ComboCoords) |
|
175 |
|
|
176 |
/** |
|
148 | 177 |
* Method addComboScale |
149 | 178 |
* |
150 | 179 |
* @param vComboScale |
... | ... | |
223 | 252 |
} //-- java.util.Enumeration enumerateComboButton() |
224 | 253 |
|
225 | 254 |
/** |
255 |
* Method enumerateComboCoords |
|
256 |
*/ |
|
257 |
public java.util.Enumeration enumerateComboCoords() |
|
258 |
{ |
|
259 |
return _comboCoordsList.elements(); |
|
260 |
} //-- java.util.Enumeration enumerateComboCoords() |
|
261 |
|
|
262 |
/** |
|
226 | 263 |
* Method enumerateComboScale |
227 | 264 |
*/ |
228 | 265 |
public java.util.Enumeration enumerateComboScale() |
... | ... | |
313 | 350 |
} //-- int getComboButtonCount() |
314 | 351 |
|
315 | 352 |
/** |
353 |
* Method getComboCoords |
|
354 |
* |
|
355 |
* @param index |
|
356 |
*/ |
|
357 |
public com.iver.andami.plugins.config.generate.ComboCoords getComboCoords(int index) |
|
358 |
throws java.lang.IndexOutOfBoundsException |
|
359 |
{ |
|
360 |
//-- check bounds for index |
|
361 |
if ((index < 0) || (index > _comboCoordsList.size())) { |
|
362 |
throw new IndexOutOfBoundsException(); |
|
363 |
} |
|
364 |
|
|
365 |
return (com.iver.andami.plugins.config.generate.ComboCoords) _comboCoordsList.elementAt(index); |
|
366 |
} //-- com.iver.andami.plugins.config.generate.ComboCoords getComboCoords(int) |
|
367 |
|
|
368 |
/** |
|
369 |
* Method getComboCoords |
|
370 |
*/ |
|
371 |
public com.iver.andami.plugins.config.generate.ComboCoords[] getComboCoords() |
|
372 |
{ |
|
373 |
int size = _comboCoordsList.size(); |
|
374 |
com.iver.andami.plugins.config.generate.ComboCoords[] mArray = new com.iver.andami.plugins.config.generate.ComboCoords[size]; |
|
375 |
for (int index = 0; index < size; index++) { |
|
376 |
mArray[index] = (com.iver.andami.plugins.config.generate.ComboCoords) _comboCoordsList.elementAt(index); |
|
377 |
} |
|
378 |
return mArray; |
|
379 |
} //-- com.iver.andami.plugins.config.generate.ComboCoords[] getComboCoords() |
|
380 |
|
|
381 |
/** |
|
382 |
* Method getComboCoordsCount |
|
383 |
*/ |
|
384 |
public int getComboCoordsCount() |
|
385 |
{ |
|
386 |
return _comboCoordsList.size(); |
|
387 |
} //-- int getComboCoordsCount() |
|
388 |
|
|
389 |
/** |
|
316 | 390 |
* Method getComboScale |
317 | 391 |
* |
318 | 392 |
* @param index |
... | ... | |
499 | 573 |
} //-- void removeAllComboButton() |
500 | 574 |
|
501 | 575 |
/** |
576 |
* Method removeAllComboCoords |
|
577 |
*/ |
|
578 |
public void removeAllComboCoords() |
|
579 |
{ |
|
580 |
_comboCoordsList.removeAllElements(); |
|
581 |
} //-- void removeAllComboCoords() |
|
582 |
|
|
583 |
/** |
|
502 | 584 |
* Method removeAllComboScale |
503 | 585 |
*/ |
504 | 586 |
public void removeAllComboScale() |
... | ... | |
527 | 609 |
} //-- com.iver.andami.plugins.config.generate.ComboButton removeComboButton(int) |
528 | 610 |
|
529 | 611 |
/** |
612 |
* Method removeComboCoords |
|
613 |
* |
|
614 |
* @param index |
|
615 |
*/ |
|
616 |
public com.iver.andami.plugins.config.generate.ComboCoords removeComboCoords(int index) |
|
617 |
{ |
|
618 |
java.lang.Object obj = _comboCoordsList.elementAt(index); |
|
619 |
_comboCoordsList.removeElementAt(index); |
|
620 |
return (com.iver.andami.plugins.config.generate.ComboCoords) obj; |
|
621 |
} //-- com.iver.andami.plugins.config.generate.ComboCoords removeComboCoords(int) |
|
622 |
|
|
623 |
/** |
|
530 | 624 |
* Method removeComboScale |
531 | 625 |
* |
532 | 626 |
* @param index |
... | ... | |
611 | 705 |
} //-- void setComboButton(com.iver.andami.plugins.config.generate.ComboButton) |
612 | 706 |
|
613 | 707 |
/** |
708 |
* Method setComboCoords |
|
709 |
* |
|
710 |
* @param index |
|
711 |
* @param vComboCoords |
|
712 |
*/ |
|
713 |
public void setComboCoords(int index, com.iver.andami.plugins.config.generate.ComboCoords vComboCoords) |
|
714 |
throws java.lang.IndexOutOfBoundsException |
|
715 |
{ |
|
716 |
//-- check bounds for index |
|
717 |
if ((index < 0) || (index > _comboCoordsList.size())) { |
|
718 |
throw new IndexOutOfBoundsException(); |
|
719 |
} |
|
720 |
_comboCoordsList.setElementAt(vComboCoords, index); |
|
721 |
} //-- void setComboCoords(int, com.iver.andami.plugins.config.generate.ComboCoords) |
|
722 |
|
|
723 |
/** |
|
724 |
* Method setComboCoords |
|
725 |
* |
|
726 |
* @param comboCoordsArray |
|
727 |
*/ |
|
728 |
public void setComboCoords(com.iver.andami.plugins.config.generate.ComboCoords[] comboCoordsArray) |
|
729 |
{ |
|
730 |
//-- copy array |
|
731 |
_comboCoordsList.removeAllElements(); |
|
732 |
for (int i = 0; i < comboCoordsArray.length; i++) { |
|
733 |
_comboCoordsList.addElement(comboCoordsArray[i]); |
|
734 |
} |
|
735 |
} //-- void setComboCoords(com.iver.andami.plugins.config.generate.ComboCoords) |
|
736 |
|
|
737 |
/** |
|
614 | 738 |
* Method setComboScale |
615 | 739 |
* |
616 | 740 |
* @param index |
Also available in: Unified diff