Package org.pdfbox.pdmodel.graphics

Examples of org.pdfbox.pdmodel.graphics.PDLineDashPattern


     *
     * @return The line dash pattern.
     */
    public PDLineDashPattern getLineDashPattern()
    {
        PDLineDashPattern pattern = null;
        COSArray d = (COSArray)dictionary.getDictionaryObject( "D" );
        if( d == null )
        {
            d = new COSArray();
            d.add( new COSInteger(3) );
            dictionary.setItem( "D", d );
        }
        COSArray lineArray = new COSArray();
        lineArray.add( d );
        //dash phase is not specified and assumed to be zero.
        lineArray.add( new COSInteger( 0 ) );
        pattern = new PDLineDashPattern( lineArray );
        return pattern;
    }
View Full Code Here


        {
            d = new COSArray();
            d.add( new COSInteger( 3 ) );
            getDictionary().setItem( "D", d );
        }
        return new PDLineDashPattern( d, 0 );
    }
View Full Code Here

TOP

Related Classes of org.pdfbox.pdmodel.graphics.PDLineDashPattern

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.