Examples of floatValue()


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

                {
                    COSArray array = (COSArray)next;
                    for( int j=0; j<array.size(); j++ )
                    {
                        COSNumber width = (COSNumber)array.get( j );
                        totalWidths+=width.floatValue();
                        characterCount += 1;
                    }
                }
                else
                {
View Full Code Here

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

                }
                else
                {
                    i++;
                    COSNumber rangeWidth = (COSNumber)widths.getObject( i );
                    if( rangeWidth.floatValue() > 0 )
                    {
                        totalWidths += rangeWidth.floatValue();
                        characterCount += 1;
                    }
                }
View Full Code Here

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

                {
                    i++;
                    COSNumber rangeWidth = (COSNumber)widths.getObject( i );
                    if( rangeWidth.floatValue() > 0 )
                    {
                        totalWidths += rangeWidth.floatValue();
                        characterCount += 1;
                    }
                }
            }
        }
View Full Code Here

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

    {
        //move text position and set leading
        COSNumber y = (COSNumber)arguments.get( 1 );
       
        ArrayList args = new ArrayList();
        args.add(new COSFloat(-1*y.floatValue()));
        context.processOperator("TL", args);
        context.processOperator("Td", arguments);

    }
}
View Full Code Here

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

    {
        COSNumber x = (COSNumber)arguments.get( 0 );
        COSNumber y = (COSNumber)arguments.get( 1 );
        Matrix td = new Matrix();
        td.setValue( 2, 0, x.floatValue() );//.* textMatrix.getValue(0,0) );
        td.setValue( 2, 1, y.floatValue() );//* textMatrix.getValue(1,1) );
        //log.debug( "textLineMatrix before " + textLineMatrix );
        context.setTextLineMatrix( td.multiply( context.getTextLineMatrix() ) ); //textLineMatrix.multiply( td );
        //log.debug( "textLineMatrix after " + textLineMatrix );
        context.setTextMatrix( context.getTextLineMatrix().copy() );
    }
View Full Code Here

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

    {
        float retval = 1.0f;
        COSNumber gamma = (COSNumber)dictionary.getDictionaryObject( COSName.getPDFName( "Gamma" ) );
        if( gamma != null )
        {
            retval = gamma.floatValue();
        }
        return retval;
    }

    /**
 
View Full Code Here

Examples of org.robovm.apple.foundation.NSNumber.floatValue()

  @Override
  public float getFloat (String key) {
    NSNumber value = (NSNumber)nsDictionary.get(convertKey(key));
    if (value == null) return 0f;
    return value.floatValue();
  }

  @Override
  public String getString (String key) {
    NSString value = (NSString)nsDictionary.get(convertKey(key));
View Full Code Here

Examples of org.robovm.cocoatouch.foundation.NSNumber.floatValue()

  @Override
  public float getFloat (String key) {
    NSNumber value = (NSNumber)nsDictionary.get(convertKey(key));
    if (value == null) return 0f;
    return value.floatValue();
  }

  @Override
  public String getString (String key) {
    NSString value = (NSString)nsDictionary.get(convertKey(key));
View Full Code Here

Examples of org.rococoa.cocoa.foundation.NSNumber.floatValue()

  
    @Test public void testReturnTypes() {
        NSNumber e = NSNumber.CLASS.numberWithDouble(Math.E);
        assertEquals(2, e.intValue());
        assertEquals(2, e.longValue());
        assertEquals((float) Math.E, e.floatValue(), 0.001);
        assertEquals(Math.E, e.doubleValue(), 0.001);
    }
   
    @Test public void testPassOCObject() {
        NSNumber fortyTwo = NSNumber.CLASS.numberWithInt(42);   
View Full Code Here

Examples of ptolemy.math.Complex.floatValue()

                try {
                    x = token.image.toLowerCase();
                    len = x.length();
                    if (x.endsWith("f")) {
                        Float value = new Float(x.substring(0, len - 1));
                        jjtn002._ptToken = new FloatToken(value.floatValue());
                    } else if (x.endsWith("d") || x.endsWith("p")) {
                        // all floating point numbers are double
                        Double value = new Double(x.substring(0, len - 1));
                        if (x.endsWith("p")) {
                            jjtn002._ptToken = new PetiteToken(value
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.