PDF Clown
0.1.2

org.pdfclown.objects
Class PdfReal

java.lang.Object
  extended by org.pdfclown.objects.PdfObject
      extended by org.pdfclown.objects.PdfDataObject
          extended by org.pdfclown.objects.PdfDirectObject
              extended by org.pdfclown.objects.PdfSimpleObject<TValue>
                  extended by org.pdfclown.objects.PdfNumber<Double>
                      extended by org.pdfclown.objects.PdfReal
All Implemented Interfaces:
Cloneable, Comparable<PdfDirectObject>, IVisitable

public final class PdfReal
extends PdfNumber<Double>

PDF real number object [PDF:1.6:3.2.2].

Version:
0.1.2, 12/21/12
Author:
Stefano Chizzolini (http://www.stefanochizzolini.it)

Constructor Summary
PdfReal(double value)
           
 
Method Summary
 PdfObject accept(IVisitor visitor, Object data)
          Accepts a visit.
static PdfReal get(Number value)
          Gets the object equivalent to the given value.
 double getDoubleValue()
          Gets the double-precision floating-point representation of the value.
 float getFloatValue()
          Gets the floating-point representation of the value.
 int getIntValue()
          Gets the integer representation of the value.
 Double getValue()
          Gets the high-level representation of the value.
protected  void setValue(Object value)
           
 void writeTo(IOutputStream stream, File context)
          Serializes this object to the specified stream.
 
Methods inherited from class org.pdfclown.objects.PdfNumber
compareTo, equals, hashCode
 
Methods inherited from class org.pdfclown.objects.PdfSimpleObject
clone, get, getParent, getRawValue, getValue, getValue, isUpdateable, isUpdated, isVirtual, setRawValue, setUpdateable, setUpdated, setVirtual, swap, toString
 
Methods inherited from class org.pdfclown.objects.PdfObject
clone, clone, getContainer, getDataContainer, getFile, getIndirectObject, getReference, resolve, resolve, unresolve, unresolve, update
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PdfReal

public PdfReal(double value)
Method Detail

get

public static PdfReal get(Number value)
Gets the object equivalent to the given value.


accept

public PdfObject accept(IVisitor visitor,
                        Object data)
Description copied from interface: IVisitable
Accepts a visit.

Parameters:
visitor - Visiting object.
data - Supplemental data.
Returns:
Result object.

getDoubleValue

public double getDoubleValue()
Description copied from class: PdfNumber
Gets the double-precision floating-point representation of the value.

Specified by:
getDoubleValue in class PdfNumber<Double>

getFloatValue

public float getFloatValue()
Description copied from class: PdfNumber
Gets the floating-point representation of the value.

Specified by:
getFloatValue in class PdfNumber<Double>

getIntValue

public int getIntValue()
Description copied from class: PdfNumber
Gets the integer representation of the value.

Specified by:
getIntValue in class PdfNumber<Double>

getValue

public Double getValue()
Description copied from class: PdfSimpleObject
Gets the high-level representation of the value.

Overrides:
getValue in class PdfNumber<Double>

writeTo

public void writeTo(IOutputStream stream,
                    File context)
Description copied from class: PdfObject
Serializes this object to the specified stream.

Specified by:
writeTo in class PdfObject
Parameters:
stream - Target stream.
context - File context.

setValue

protected void setValue(Object value)
Overrides:
setValue in class PdfSimpleObject<Double>
See Also:
PdfSimpleObject.getValue()

PDF Clown
0.1.2

Project home page

Copyright © 2006-2013 Stefano Chizzolini. Some Rights Reserved.
This documentation is available under the terms of the GNU Free Documentation License.