PDF Clown
0.0.8

it.stefanochizzolini.clown.objects
Class PdfReal

java.lang.Object
  extended by it.stefanochizzolini.clown.objects.PdfObject
      extended by it.stefanochizzolini.clown.objects.PdfDataObject
          extended by it.stefanochizzolini.clown.objects.PdfDirectObject
              extended by it.stefanochizzolini.clown.objects.PdfAtomicObject<Double>
                  extended by it.stefanochizzolini.clown.objects.PdfReal
All Implemented Interfaces:
IPdfNumber, Cloneable, Comparable<PdfDirectObject>

public class PdfReal
extends PdfAtomicObject<Double>
implements IPdfNumber

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

Version:
0.0.8
Author:
Stefano Chizzolini (http://www.stefanochizzolini.it)

Field Summary
protected static DecimalFormat formatter
           
 
Constructor Summary
PdfReal(double value)
           
 
Method Summary
 Object clone(File context)
          Gets the clone of the object, registered inside the given file context.
 int compareTo(PdfDirectObject obj)
           
static PdfReal get(Double value)
          Gets the object equivalent to the given value.
 double getNumberValue()
           
 void setNumberValue(double value)
           
 void translateNumberValue(double value)
           
 void writeTo(IOutputStream stream)
          Serializes the object to the given stream.
 
Methods inherited from class it.stefanochizzolini.clown.objects.PdfAtomicObject
clone, getRawValue, getValue, setRawValue, setValue, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

formatter

protected static final DecimalFormat formatter
Constructor Detail

PdfReal

public PdfReal(double value)
Method Detail

get

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


clone

public Object clone(File context)
Description copied from class: PdfObject
Gets the clone of the object, registered inside the given file context.

Specified by:
clone in class PdfObject

compareTo

public int compareTo(PdfDirectObject obj)
Specified by:
compareTo in interface Comparable<PdfDirectObject>
Specified by:
compareTo in class PdfDirectObject

writeTo

public void writeTo(IOutputStream stream)
Description copied from class: PdfObject
Serializes the object to the given stream.

Specified by:
writeTo in class PdfObject

getNumberValue

public double getNumberValue()
Specified by:
getNumberValue in interface IPdfNumber

setNumberValue

public void setNumberValue(double value)
Specified by:
setNumberValue in interface IPdfNumber

translateNumberValue

public void translateNumberValue(double value)
Specified by:
translateNumberValue in interface IPdfNumber

PDF Clown
0.0.8

Project home page

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