Package org.pdfbox.pdmodel.common

Examples of org.pdfbox.pdmodel.common.PDRange


     * @return The range for this component.
     */
    public PDRange getRangeForComponent( int n )
    {
        COSArray rangeArray = getRangeArray( n );
        return new PDRange( rangeArray, n );
    }
View Full Code Here


     * @return The a range.
     */
    public PDRange getARange()
    {
        COSArray range = getRangeArray();
        return new PDRange( range, 0 );
    }
View Full Code Here

     * @return The b range.
     */
    public PDRange getBRange()
    {
        COSArray range = getRangeArray();
        return new PDRange( range, 1 );
    }
View Full Code Here

     *
     * @return The encode parameter range or null if none is set.
     */
    public PDRange getEncodeForParameter( int paramNum )
    {
        PDRange retval = null;
        COSArray encode = (COSArray)getCOSStream().getDictionaryObject( "Encode" );
        if( encode != null && encode.size() >= paramNum*2+1 )
        {
            retval = new PDRange(encode, paramNum );
        }
        return retval;
    }
View Full Code Here

     *
     * @return The decode parameter range or null if none is set.
     */
    public PDRange getDecodeForParameter( int paramNum )
    {
        PDRange retval = null;
        COSArray encode = (COSArray)getCOSStream().getDictionaryObject( "Decode" );
        if( encode != null && encode.size() >= paramNum*2+1 )
        {
            retval = new PDRange(encode, paramNum );
        }
        return retval;
    }
View Full Code Here

     *
     * @return The fractional space to allocate.
     */
    public PDRange getFractionalSpaceToAllocate()
    {
        PDRange retval = null;
        COSArray array = (COSArray)fit.getDictionaryObject( "A" );
        if( array == null )
        {
            retval = new PDRange();
            retval.setMin( .5f );
            retval.setMax( .5f );
            setFractionalSpaceToAllocate( retval );
        }
        else
        {
            retval = new PDRange( array );
        }
        return retval;
    }
View Full Code Here

     * {@inheritDoc}
     */
    public PDRange getRangeForOutput( int n )
    {
        COSArray rangeArray = getRangeArray( "Range", n );
        return new PDRange( rangeArray, n );
    }
View Full Code Here

     * {@inheritDoc}
     */
    public PDRange getDomainForInput( int n )
    {
        COSArray rangeArray = getRangeArray( "Domain", n );
        return new PDRange( rangeArray, n );
    }
View Full Code Here

     * @return The range for this component.
     */
    public PDRange getRangeForOutput( int n )
    {
        COSArray rangeArray = getRangeArray( "Range", n );
        return new PDRange( rangeArray, n );
    }
View Full Code Here

     * @return The domain range for this component.
     */
    public PDRange getDomainForInput( int n )
    {
        COSArray rangeArray = getRangeArray( "Domain", n );
        return new PDRange( rangeArray, n );
    }
View Full Code Here

TOP

Related Classes of org.pdfbox.pdmodel.common.PDRange

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.