Examples of floatValue()


Examples of org.pdfbox.cos.COSNumber.floatValue()

     */
    public void process(PDFOperator operator, List arguments)
    {
        //set word spacing
        COSNumber wordSpacing = (COSNumber)arguments.get( 0 );
        context.getGraphicsState().getTextState().setWordSpacing( wordSpacing.floatValue() );
    }

}
View Full Code Here

Examples of org.pdfbox.cos.COSNumber.floatValue()

     * @param arguments List
     */
    public void process(PDFOperator operator, List arguments)
    {
        COSNumber leading = (COSNumber)arguments.get( 0 );
        context.getGraphicsState().getTextState().setLeading( leading.floatValue() );
    }

}
View Full Code Here

Examples of org.pdfbox.cos.COSNumber.floatValue()

     * @throws IOException If an error occurs while processing the font.
     */
    public void process(PDFOperator operator, List arguments) throws IOException
    {
        COSNumber rise = (COSNumber)arguments.get(0);
        context.getGraphicsState().getTextState().setRise( rise.floatValue() );
    }
}
View Full Code Here

Examples of org.pdfbox.cos.COSNumber.floatValue()

        newMatrix.setValue(0, 0, a.floatValue());
        newMatrix.setValue(0, 1, b.floatValue());
        newMatrix.setValue(1, 0, c.floatValue());
        newMatrix.setValue(1, 1, d.floatValue());
        newMatrix.setValue(2, 0, e.floatValue());
        newMatrix.setValue(2, 1, f.floatValue());
   
        //this line has changed
        context.getGraphicsState().setCurrentTransformationMatrix(
                newMatrix.multiply( context.getGraphicsState().getCurrentTransformationMatrix() ) );
View Full Code Here

Examples of org.pdfbox.cos.COSNumber.floatValue()

        float x1f = x1.floatValue();
        float y1f = (float)drawer.fixY( x1f, y1.floatValue() );
        float x2f = x2.floatValue();
        float y2f = (float)drawer.fixY( x2f, y2.floatValue() );
        float x3f = x3.floatValue();
        float y3f = (float)drawer.fixY( x3f, y3.floatValue() );
        drawer.getLinePath().curveTo(x1f,y1f,x2f,y2f,x3f,y3f);
    }
}
View Full Code Here

Examples of org.pdfbox.cos.COSNumber.floatValue()

        COSNumber x3 = (COSNumber)arguments.get( 2 );
        COSNumber y3 = (COSNumber)arguments.get( 3 );
        float x2f = x2.floatValue();
        float y2f = (float)drawer.fixY( x2f, y2.floatValue() );
        float x3f = x3.floatValue();
        float y3f = (float)drawer.fixY( x3f, y3.floatValue() );
       
        GeneralPath path = drawer.getLinePath();
        Point2D currentPoint = path.getCurrentPoint();
        float currentX = (float)currentPoint.getX();
        float currentY = (float)currentPoint.getY();
View Full Code Here

Examples of org.pdfbox.cos.COSNumber.floatValue()

        super.process( operator, arguments );
        PageDrawer drawer = (PageDrawer)context;
        COSNumber r = (COSNumber)arguments.get( 0 );
        COSNumber g = (COSNumber)arguments.get( 1 );
        COSNumber b = (COSNumber)arguments.get( 2 );
        drawer.setNonStrokingColor( new Color( r.floatValue(), g.floatValue(), b.floatValue() ) );
    }
}
View Full Code Here

Examples of org.pdfbox.cos.COSNumber.floatValue()

        super.process( operator, arguments );
        PageDrawer drawer = (PageDrawer)context;
        COSNumber r = (COSNumber)arguments.get( 0 );
        COSNumber g = (COSNumber)arguments.get( 1 );
        COSNumber b = (COSNumber)arguments.get( 2 );
        drawer.setStrokingColor( new Color( r.floatValue(), g.floatValue(), b.floatValue() ) );
    }
}
View Full Code Here

Examples of org.pdfbox.cos.COSNumber.floatValue()

     * @return The min value.
     */
    public float getMin()
    {
        COSNumber min = (COSNumber)rangeArray.getObject( startingIndex*2 );
        return min.floatValue();
    }

    /**
     * This will set the minimum value for the range.
     *
 
View Full Code Here

Examples of org.pdfbox.cos.COSNumber.floatValue()

     * @return The max value.
     */
    public float getMax()
    {
        COSNumber max = (COSNumber)rangeArray.getObject( startingIndex*2+1 );
        return max.floatValue();
    }

    /**
     * This will set the maximum value for the range.
     *
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.