src/share/classes/java/awt/image/renderable/ParameterBlock.java

Print this page




 353 
 354     /**
 355      * Adds a Short to the list of parameters.
 356      * @param s the short to add to the
 357      *            <code>parameters</code> <code>Vector</code>
 358      * @return a new <code>ParameterBlock</code> containing
 359      *         the specified parameter.
 360      */
 361     public ParameterBlock add(short s) {
 362         return add(Short.valueOf(s));
 363     }
 364 
 365     /**
 366      * Adds a Integer to the list of parameters.
 367      * @param i the int to add to the
 368      *            <code>parameters</code> <code>Vector</code>
 369      * @return a new <code>ParameterBlock</code> containing
 370      *         the specified parameter.
 371      */
 372     public ParameterBlock add(int i) {
 373         return add(new Integer(i));
 374     }
 375 
 376     /**
 377      * Adds a Long to the list of parameters.
 378      * @param l the long to add to the
 379      *            <code>parameters</code> <code>Vector</code>
 380      * @return a new <code>ParameterBlock</code> containing
 381      *         the specified parameter.
 382      */
 383     public ParameterBlock add(long l) {
 384         return add(Long.valueOf(l));
 385     }
 386 
 387     /**
 388      * Adds a Float to the list of parameters.
 389      * @param f the float to add to the
 390      *            <code>parameters</code> <code>Vector</code>
 391      * @return a new <code>ParameterBlock</code> containing
 392      *         the specified parameter.
 393      */


 472      * @return a new <code>ParameterBlock</code> containing
 473      *        the specified parameter.
 474      */
 475     public ParameterBlock set(short s, int index) {
 476         return set(Short.valueOf(s), index);
 477     }
 478 
 479     /**
 480      * Replaces an Object in the list of parameters with an Integer.
 481      * If the index lies beyond the current source list,
 482      * the list is extended with nulls as needed.
 483      * @param i the parameter that replaces the
 484      *        parameter at the specified index in the
 485      *        <code>parameters</code> <code>Vector</code>
 486      * @param index the index of the parameter to be
 487      *        replaced with the specified parameter
 488      * @return a new <code>ParameterBlock</code> containing
 489      *        the specified parameter.
 490      */
 491     public ParameterBlock set(int i, int index) {
 492         return set(new Integer(i), index);
 493     }
 494 
 495     /**
 496      * Replaces an Object in the list of parameters with a Long.
 497      * If the index lies beyond the current source list,
 498      * the list is extended with nulls as needed.
 499      * @param l the parameter that replaces the
 500      *        parameter at the specified index in the
 501      *        <code>parameters</code> <code>Vector</code>
 502      * @param index the index of the parameter to be
 503      *        replaced with the specified parameter
 504      * @return a new <code>ParameterBlock</code> containing
 505      *        the specified parameter.
 506      */
 507     public ParameterBlock set(long l, int index) {
 508         return set(Long.valueOf(l), index);
 509     }
 510 
 511     /**
 512      * Replaces an Object in the list of parameters with a Float.




 353 
 354     /**
 355      * Adds a Short to the list of parameters.
 356      * @param s the short to add to the
 357      *            <code>parameters</code> <code>Vector</code>
 358      * @return a new <code>ParameterBlock</code> containing
 359      *         the specified parameter.
 360      */
 361     public ParameterBlock add(short s) {
 362         return add(Short.valueOf(s));
 363     }
 364 
 365     /**
 366      * Adds a Integer to the list of parameters.
 367      * @param i the int to add to the
 368      *            <code>parameters</code> <code>Vector</code>
 369      * @return a new <code>ParameterBlock</code> containing
 370      *         the specified parameter.
 371      */
 372     public ParameterBlock add(int i) {
 373         return add(i);
 374     }
 375 
 376     /**
 377      * Adds a Long to the list of parameters.
 378      * @param l the long to add to the
 379      *            <code>parameters</code> <code>Vector</code>
 380      * @return a new <code>ParameterBlock</code> containing
 381      *         the specified parameter.
 382      */
 383     public ParameterBlock add(long l) {
 384         return add(Long.valueOf(l));
 385     }
 386 
 387     /**
 388      * Adds a Float to the list of parameters.
 389      * @param f the float to add to the
 390      *            <code>parameters</code> <code>Vector</code>
 391      * @return a new <code>ParameterBlock</code> containing
 392      *         the specified parameter.
 393      */


 472      * @return a new <code>ParameterBlock</code> containing
 473      *        the specified parameter.
 474      */
 475     public ParameterBlock set(short s, int index) {
 476         return set(Short.valueOf(s), index);
 477     }
 478 
 479     /**
 480      * Replaces an Object in the list of parameters with an Integer.
 481      * If the index lies beyond the current source list,
 482      * the list is extended with nulls as needed.
 483      * @param i the parameter that replaces the
 484      *        parameter at the specified index in the
 485      *        <code>parameters</code> <code>Vector</code>
 486      * @param index the index of the parameter to be
 487      *        replaced with the specified parameter
 488      * @return a new <code>ParameterBlock</code> containing
 489      *        the specified parameter.
 490      */
 491     public ParameterBlock set(int i, int index) {
 492         return set(i, index);
 493     }
 494 
 495     /**
 496      * Replaces an Object in the list of parameters with a Long.
 497      * If the index lies beyond the current source list,
 498      * the list is extended with nulls as needed.
 499      * @param l the parameter that replaces the
 500      *        parameter at the specified index in the
 501      *        <code>parameters</code> <code>Vector</code>
 502      * @param index the index of the parameter to be
 503      *        replaced with the specified parameter
 504      * @return a new <code>ParameterBlock</code> containing
 505      *        the specified parameter.
 506      */
 507     public ParameterBlock set(long l, int index) {
 508         return set(Long.valueOf(l), index);
 509     }
 510 
 511     /**
 512      * Replaces an Object in the list of parameters with a Float.