/** * Outputs a <CODE>double</CODE> into a format suitable for the PDF. * @param d a double * @return the <CODE>String</CODE> representation of the <CODE>double</CODE> */ public static String formatDouble(double d) { return formatDouble(d, null); }
/** * Outputs a <CODE>double</CODE> into a format suitable for the PDF. * @param d a double * @return the <CODE>String</CODE> representation of the <CODE>double</CODE> */ public static String formatDouble(double d) { return formatDouble(d, null); }
/** * Outputs a <CODE>double</CODE> into a format suitable for the PDF. * @param d a double * @return the <CODE>String</CODE> representation of the <CODE>double</CODE> */ public static String formatDouble(double d) { return formatDouble(d, null); }
/** * 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)); }
/** * Appends a string representation of a <CODE>double</CODE> according * to the Pdf conventions. * @param d the <CODE>double</CODE> to be appended * @return a reference to this <CODE>ByteBuffer</CODE> object */ public ByteBuffer append(double d) { append(formatDouble(d, this)); return this; }
/** * Appends a string representation of a <CODE>double</CODE> according * to the Pdf conventions. * @param d the <CODE>double</CODE> to be appended * @return a reference to this <CODE>ByteBuffer</CODE> object */ public ByteBuffer append(double d) { append(formatDouble(d, this)); return this; }
/** * Increments the value of the <CODE>PdfNumber</CODE>-object by 1. */ public void increment() { value += 1.0; setContent(ByteBuffer.formatDouble(value)); } }
/** * 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)); }
/** * Appends a string representation of a <CODE>double</CODE> according * to the Pdf conventions. * @param d the <CODE>double</CODE> to be appended * @return a reference to this <CODE>ByteBuffer</CODE> object */ public ByteBuffer append(double d) { append(formatDouble(d, this)); return this; }
/** * 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)); }
/** * Increments the value of the <CODE>PdfNumber</CODE>-object by 1. */ public void increment() { value += 1.0; setContent(ByteBuffer.formatDouble(value)); } }
/** * Increments the value of the <CODE>PdfNumber</CODE>-object by 1. */ public void increment() { value += 1.0; setContent(ByteBuffer.formatDouble(value)); } }
case 90: out.write(ROTATE90); out.write(DocWriter.getISOBytes(ByteBuffer.formatDouble(page.getTop()))); out.write(' '); out.write('0'); case 180: out.write(ROTATE180); out.write(DocWriter.getISOBytes(ByteBuffer.formatDouble(page.getRight()))); out.write(' '); out.write(DocWriter.getISOBytes(ByteBuffer.formatDouble(page.getTop()))); out.write(ROTATEFINAL); break; out.write('0'); out.write(' '); out.write(DocWriter.getISOBytes(ByteBuffer.formatDouble(page.getRight()))); out.write(ROTATEFINAL); break;
case 90: out.write(ROTATE90); out.write(DocWriter.getISOBytes(ByteBuffer.formatDouble(page.getTop()))); out.write(' '); out.write('0'); case 180: out.write(ROTATE180); out.write(DocWriter.getISOBytes(ByteBuffer.formatDouble(page.getRight()))); out.write(' '); out.write(DocWriter.getISOBytes(ByteBuffer.formatDouble(page.getTop()))); out.write(ROTATEFINAL); break; out.write('0'); out.write(' '); out.write(DocWriter.getISOBytes(ByteBuffer.formatDouble(page.getRight()))); out.write(ROTATEFINAL); break;
case 90: out.write(ROTATE90); out.write(DocWriter.getISOBytes(ByteBuffer.formatDouble(page.getTop()))); out.write(' '); out.write('0'); case 180: out.write(ROTATE180); out.write(DocWriter.getISOBytes(ByteBuffer.formatDouble(page.getRight()))); out.write(' '); out.write(DocWriter.getISOBytes(ByteBuffer.formatDouble(page.getTop()))); out.write(ROTATEFINAL); break; out.write('0'); out.write(' '); out.write(DocWriter.getISOBytes(ByteBuffer.formatDouble(page.getRight()))); out.write(ROTATEFINAL); break;