Exemplo n.º 1
0
 /** Increments the value of the <CODE>PdfNumber</CODE>-object by 1. */
 public void increment() {
   value += 1.0;
   setContent(ByteBuffer.formatDouble(value));
 }
Exemplo n.º 2
0
 /**
  * Constructs a new <CODE>PdfNumber</CODE>-object of type real.
  *
  * @param value value of the new <CODE>PdfNumber</CODE>-object
  */
 public PdfNumber(double value) {
   super(NUMBER);
   this.value = value;
   setContent(ByteBuffer.formatDouble(value));
 }