/** * Set the page number for a remote destination. For an internal destination, call * {@link #setPage(PDPage) setPage(PDPage page)}. * * @param pageNumber The page for a remote destination. */ public void setPageNumber( int pageNumber ) { array.set( 0, pageNumber ); }
/** * This will set the font for this font setting. * * @param font The new font. */ public void setFont( PDFont font ) { fontSetting.set( 0, font ); }
/** * This will set the tint transform function. * * @param tint The tint transform function. */ public void setTintTransform(PDFunction tint) { tintTransform = tint; array.set(TINT_TRANSFORM, tint); }
/** * Sets the highest value that is allowed. This cannot be higher than 255. * @param high the highest value for the lookup table */ public void setHighValue(int high) { array.set(2, high); }
/** * This will set the lower left y coordinate. * * @param value The lower left y. */ public void setLowerLeftY(float value) { rectArray.set(1, new COSFloat( value ) ); }
/** * This will set the upper right x coordinate. * * @param value The upper right x . */ public void setUpperRightX(float value) { rectArray.set(2, new COSFloat( value ) ); }
/** * Sets the g value of the tristimulus. * @param g the g value for the tristimulus */ public void setG(float g) { values.set(1, new COSFloat(g)); }
/** * Set the value in the array as an integer. * * @param index The index into the array. * @param value The value to set. */ public void setInt( int index, int value ) { set( index, COSInteger.get( value ) ); }
/** * Sets the x value of the tristimulus. * @param x the x value for the tristimulus */ public void setX(float x) { values.set(0, new COSFloat(x)); }
/** * Sets the y value of the tristimulus. * @param y the y value for the tristimulus */ public void setY(float y) { values.set(1, new COSFloat(y)); }
/** * Sets the list of colorants * @param names the list of colorants */ public void setColorantNames(List<String> names) { COSArray namesArray = COSArrayList.convertStringListToCOSNameCOSArray(names); array.set(COLORANT_NAMES, namesArray); }
/** * This will set the minimum value for the range. * * @param min The new minimum for the range. */ public void setMin( float min ) { rangeArray.set( startingIndex*2, new COSFloat( min ) ); }
/** * This will set the lower left x coordinate. * * @param value The lower left x. */ public void setLowerLeftX(float value) { rectArray.set(0, new COSFloat( value ) ); }
/** * This will set the upper right y coordinate. * * @param value The upper right y. */ public void setUpperRightY(float value) { rectArray.set(3, new COSFloat( value ) ); }
/** * Sets the colorant name. * @param name the name of the colorant */ public void setColorantName(String name) { array.set(1, COSName.getPDFName(name)); }
/** * This will set the maximum value for the range. * * @param max The new maximum for the range. */ public void setMax( float max ) { rangeArray.set( startingIndex*2+1, new COSFloat( max ) ); }
/** * This will set the size of the font. * * @param size The new size of the font. */ public void setFontSize( float size ) { fontSetting.set( 1, new COSFloat( size ) ); } }
/** * Sets the r value of the tristimulus. * @param r the r value for the tristimulus */ public void setR(float r) { values.set(0, new COSFloat(r)); }
/** * Sets the b value of the tristimulus. * @param b he b value for the tristimulus */ public void setB(float b) { values.set(2, new COSFloat(b)); } }
/** * Set the value in the array as a name. * @param index The index into the array. * @param name The name to set in the array. */ public void setName( int index, String name ) { set( index, COSName.getPDFName( name ) ); }