DynamicPDF by ceTe Software

com.cete.dynamicpdf.io
Class PageWriter

java.lang.Object
  |
  +--com.cete.dynamicpdf.Resource
        |
        +--com.cete.dynamicpdf.io.PageWriter

public class PageWriter
extends Resource

Represents a writer class for a page.


Method Summary
 void draw(DocumentWriter writer)
          Draws the resource to the given DocumentWriter object.
 PageAnnotationList getAnnotations()
          Gets a list of annotations used on the page.
 AreaDimensions getDimensions()
          Gets the dimensions of the current area.
 Document getDocument()
          Gets the Document object the page writer belongs to.
 DocumentWriter getDocumentWriter()
          Gets the DocumentWriter object the page writer is currently drawing to.
 Page getPage()
          Gets the Page object the page writer belongs to.
 int getPageNumber()
          Gets the total pages being drawn to the document.
 int getRequiredPdfObjects()
          Gets the number of PDF objects required by the resource.
 PageResources getResources()
           
 int getSectionPageNumber()
          Gets the current page being drawn the document.
 void growIf(int neededBytes)
          Grows the buffer is the given bytes will not fit in the buffer.
 void requireLicense()
          Specifies that a license is required.
 void requireLicense(int level)
          Specifies that a license is required.
 void setCharacterSpacing(float characterSpacing)
          Sets the character spacing for text on the page.
 void setColor(Color color, Apply apply)
          Sets the color for the page.
 void setDimensions(AreaDimensions value)
          Sets the dimensions of the current area.
 void setFont(Font font, float fontSize)
          Sets the font and font size for text on the page.
 void setGraphicsMode()
          Sets the page to graphics mode.
 void setHorizontalScaling(float horizontalScaling)
          Sets the horizontal scaling for text on the page.
 void setLeading(float leading)
          Sets the leading for text on the page.
 void setLineCap(LineCap lineCap)
          Sets the line cap style for paths on the page.
 void setLineJoin(LineJoin lineJoin)
          Sets the line join style for paths on the page.
 void setLineStyle(LineStyle lineStyle)
          Sets the line style for the page.
 void setLineWidth(float lineWidth)
          Sets the line width for the page.
 void setMiterLimit(float miterLimit)
          Sets the miterLimit for paths on the page.
 void setTextDefaults()
          Sets the text properties render mode, character space, word space, horizontal scale, and text rise to the defaults.
 void setTextMode()
          Sets the page to text mode.
 void setTextRenderingMode(TextRenderingMode textRenderingMode)
          Sets text rendering mode for text on the page.
 void setTextRise(float textRise)
          Sets text rise for text on the page.
 void setWordSpacing(float wordSpacing)
          Sets the word spacing for text on the page.
 void write_b_()
          Writes a PDF "b" operator to the page.
 void write_B()
          Writes a PDF "B" operator to the page.
 void write_BT()
          Writes a PDF "BT" operator to the page.
 void write_bx_()
          Writes a PDF "b*" operator to the page.
 void write_Bx()
          Writes a PDF "B*" operator to the page.
 void write_c(float x1, float y1, float x2, float y2, float x3, float y3)
          Writes a PDF "c" operator to the page.
 void write_cm(float angle)
          Writes a PDF "cm" operator to the page.
 void write_cm(float xOffset, float yOffset)
          Writes a PDF "cm" operator to the page.
 void write_cm(float angle, float xOffset, float yOffset)
          Writes a PDF "cm" operator to the page.
 void write_cm(float xX, float xY, float yX, float yY)
          Writes a PDF "cm" operator to the page.
 void write_cm(float a, float b, float c, float d, float e, float f)
          Writes a PDF "cm" operator to the page.
 void write_d(LineStyle lineStyle)
          Writes a PDF "d" operator to the page.
 void write_Do(Resource xObject)
          Writes a PDF "Do" operator to the page.
 void write_DQuote(float wordSpacing, float characterSpacing, char[] textArray, int start, int length, boolean rightToLeft)
          Writes a PDF Double Quote (""") operator to the page.
 void write_ET()
          Writes a PDF "ET" operator to the page.
 void write_f()
          Writes a PDF "f" operator to the page.
 void write_fx()
          Writes a PDF "f*" operator to the page.
 void write_g_(Grayscale color)
          Writes a PDF "g" operator to the page.
 void write_G(Grayscale color)
          Writes a PDF "G" operator to the page.
 void write_gs(Resource extGState)
          Writes a PDF "gs" operator to the page.
 void write_h()
          Writes a PDF "h" operator to the page.
 void write_j_(LineJoin lineJoin)
          Writes a PDF "j" operator to the page.
 void write_J(LineCap lineCap)
          Writes a PDF "J" operator to the page.
 void write_k_(CmykColor color)
          Writes a PDF "k" operator to the page.
 void write_K(CmykColor color)
          Writes a PDF "K" operator to the page.
 void write_l_(float x, float y)
          Writes a PDF "l" operator to the page.
 void write_m_(float x, float y)
          Writes a PDF "m" operator to the page.
 void write_M(float miterLimit)
          Writes a PDF "M" operator to the page.
 void write_n()
          Writes a PDF "n" operator to the page.
 void write_q_()
          Writes a PDF "q" operator to the page.
 void write_q_(boolean storeState)
          Writes a PDF "q" operator to the page.
 void write_Q()
          Writes a PDF "Q" operator to the page.
 void write_Q(boolean restoreState)
          Writes a PDF "G" operator to the page.
 void write_re(float x, float y, float width, float height)
          Writes a PDF "re" operator to the page.
 void write_rg_(RgbColor color)
          Writes a PDF "rg" operator to the page.
 void write_RG(RgbColor color)
          Writes a PDF "RG" operator to the page.
 void write_s_()
          Writes a PDF "s" operator to the page.
 void write_S()
          Writes a PDF "S" operator to the page.
 void write_SQuote(char[] textArray, int start, int length, boolean rightToLeft)
          Writes a PDF Single Quote ("'") operator to the page.
 void write_Tc(float characterSpacing)
          Writes a PDF "Tc" operator to the page.
 void write_Td_(float x, float y)
          Writes a PDF "Td" operator to the page.
 void write_TD(float x, float y)
          Writes a PDF "TD" operator to the page.
 void write_Tf(Font font, float fontSize)
          Writes a PDF "Tf" operator to the page.
 void write_Tj_(char[] text, boolean rightToLeft)
          Writes a PDF "Tj" operator to the page.
 void write_Tj_(char[] textArray, int start, int length, boolean rightToLeft)
          Writes a PDF "Tj" operator to the page.
 void write_TJ(char[] textArray, int start, int length, float wordSpacing, boolean rightToLeft)
          Writes a PDF "TJ" operator to the page.
 void write_TL(float leading)
          Writes a PDF "TL" operator to the page.
 void write_Tm(float x, float y)
          Writes a PDF "Tm" operator to the page.
 void write_Tm(float angle, float x, float y)
          Writes a PDF "Tm" operator to the page.
 void write_Tm(float xX, float xY, float yX, float yY)
          Writes a PDF "Tm" operator to the page.
 void write_Tm(float a, float b, float c, float d, float x, float y)
          Writes a PDF "Tm" operator to the page.
 void write_Tr(TextRenderingMode renderingMode)
          Writes a PDF "Tr" operator to the page.
 void write_Ts(float textRise)
          Writes a PDF "Ts" operator to the page.
 void write_Tw(float wordSpacing)
          Writes a PDF "Tw" operator to the page.
 void write_Tx()
          Writes a PDF "Tx" operator to the page.
 void write_Tz(float horizontalScaling)
          Writes a PDF "Tz" operator to the page.
 void write_v(float x2, float y2, float x3, float y3)
          Writes a PDF "v" operator to the page.
 void write_w_(float lineWidth)
          Writes a PDF "w" operator to the page.
 void write_W()
          Writes a PDF "W" operator to the page.
 void write_Wx()
          Writes a PDF "W*" operator to the page.
 void write_y(float x1, float y1, float x3, float y3)
          Writes a PDF "y" operator to the page.
 void write(byte value)
          Writes a byte value to the page.
 void write(byte[] data)
          Writes a byte array to the page.
 void write(byte[] data, int length)
          Writes a portion of a byte array to the page.
 void write(byte[] data, int start, int length)
          Writes a portion of a byte array to the page.
 void write(float value)
          Writes a floating point number to the page.
 void write(int value)
          Writes an integer to the page.
 void write(java.io.OutputStream stream, int length)
          Writes the contents of a stream to the page.
 void write(java.lang.String text)
          Writes text to the page.
 void writeApply(Apply apply)
          Strokes and/or fills the path.
 void writeApply(Apply apply, boolean close)
          Strokes and/or fills the path.
 void writeColorValue(byte value)
          Writes an color value to the page.
 void writePair(float value1, float value2)
          Writes a pair of numbers to the page.
 void writePoint(float pointX, float pointY)
          Writes a point to the page adjusted to PDF coordinates.
 void writePointX(float pointX)
          Writes an X coordinate to the page adjusted to the PDF coordinate.
 void writePointY(float pointY)
          Writes an X coordinate to the page adjusted to the PDF coordinate.
 void writeSpace()
          Writes a space to the page.
 
Methods inherited from class com.cete.dynamicpdf.Resource
getUid, newUid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRequiredPdfObjects

public int getRequiredPdfObjects()
Description copied from class: Resource
Gets the number of PDF objects required by the resource.

Specified by:
getRequiredPdfObjects in class Resource

getDimensions

public AreaDimensions getDimensions()
Gets the dimensions of the current area.


setDimensions

public void setDimensions(AreaDimensions value)
Sets the dimensions of the current area.


getSectionPageNumber

public int getSectionPageNumber()
Gets the current page being drawn the document.


getPageNumber

public int getPageNumber()
Gets the total pages being drawn to the document.


getPage

public Page getPage()
Gets the Page object the page writer belongs to.


getDocument

public Document getDocument()
Gets the Document object the page writer belongs to.


getDocumentWriter

public DocumentWriter getDocumentWriter()
Gets the DocumentWriter object the page writer is currently drawing to.


getResources

public PageResources getResources()

getAnnotations

public PageAnnotationList getAnnotations()
Gets a list of annotations used on the page.


write_Do

public void write_Do(Resource xObject)
Writes a PDF "Do" operator to the page.

Parameters:
xObject - The XObject to reference.

write_BT

public void write_BT()
Writes a PDF "BT" operator to the page.


write_ET

public void write_ET()
Writes a PDF "ET" operator to the page.


write_W

public void write_W()
Writes a PDF "W" operator to the page.


write_Wx

public void write_Wx()
Writes a PDF "W*" operator to the page.


write_Tc

public void write_Tc(float characterSpacing)
Writes a PDF "Tc" operator to the page.

Parameters:
characterSpacing - The character spacing to draw.

write_Tw

public void write_Tw(float wordSpacing)
Writes a PDF "Tw" operator to the page.

Parameters:
wordSpacing - The word spacing to draw.

write_Tz

public void write_Tz(float horizontalScaling)
Writes a PDF "Tz" operator to the page.

Parameters:
horizontalScaling - The horizontal spacing to draw.

write_TL

public void write_TL(float leading)
Writes a PDF "TL" operator to the page.

Parameters:
leading - The leading to draw.

write_Tf

public void write_Tf(Font font,
                     float fontSize)
Writes a PDF "Tf" operator to the page.

Parameters:
font - Font to draw.
fontSize - The font size to draw.
See Also:
Font

write_Tr

public void write_Tr(TextRenderingMode renderingMode)
Writes a PDF "Tr" operator to the page.

Parameters:
renderingMode - TextRenderingMode to draw.

write_Ts

public void write_Ts(float textRise)
Writes a PDF "Ts" operator to the page.

Parameters:
textRise - The text rise to draw.

write_w_

public void write_w_(float lineWidth)
Writes a PDF "w" operator to the page.

Parameters:
lineWidth - The line width to draw.

write_J

public void write_J(LineCap lineCap)
Writes a PDF "J" operator to the page.

Parameters:
lineCap - LineCap style to draw.

write_j_

public void write_j_(LineJoin lineJoin)
Writes a PDF "j" operator to the page.

Parameters:
lineJoin - LineJoin style to draw.

write_M

public void write_M(float miterLimit)
Writes a PDF "M" operator to the page.

Parameters:
miterLimit - The miter limit to draw.

write_d

public void write_d(LineStyle lineStyle)
Writes a PDF "d" operator to the page.

Parameters:
lineStyle - LineStyle to draw.

write_gs

public void write_gs(Resource extGState)
Writes a PDF "gs" operator to the page.

Parameters:
extGState - The external graphics state Resource to draw.
See Also:
Resource

write_Td_

public void write_Td_(float x,
                      float y)
Writes a PDF "Td" operator to the page.

Parameters:
x - The X coordinate to draw.
y - The Y coordinate to draw.

write_TD

public void write_TD(float x,
                     float y)
Writes a PDF "TD" operator to the page.

Parameters:
x - The X coordinate to draw.
y - The Y coordinate to draw.

write_Tm

public void write_Tm(float angle,
                     float x,
                     float y)
Writes a PDF "Tm" operator to the page.

Parameters:
angle - The angle to draw.
x - The X coordinate to draw.
y - The Y coordinate to draw.

write_Tm

public void write_Tm(float x,
                     float y)
Writes a PDF "Tm" operator to the page.

Parameters:
x - The X coordinate to draw.
y - The Y coordinate to draw.

write_Tm

public void write_Tm(float a,
                     float b,
                     float c,
                     float d,
                     float x,
                     float y)
Writes a PDF "Tm" operator to the page.

Parameters:
a - The A value to draw.
b - The B value to draw.
c - The C value to draw.
d - The D value to draw.
x - The X coordinate to draw.
y - The Y coordinate to draw.

write_Tm

public void write_Tm(float xX,
                     float xY,
                     float yX,
                     float yY)
Writes a PDF "Tm" operator to the page.

Parameters:
xX - The X X multiple to draw.
xY - The X Y multiple to draw.
yX - The Y X multiple to draw.
yY - The Y Y multiple to draw.

write_Tx

public void write_Tx()
Writes a PDF "Tx" operator to the page.


write_Tj_

public void write_Tj_(char[] text,
                      boolean rightToLeft)
Writes a PDF "Tj" operator to the page.

Parameters:
text - The byte array of WINANSI text to draw.
rightToLeft - Specifies if the text is to be drawn right to left.

write_Tj_

public void write_Tj_(char[] textArray,
                      int start,
                      int length,
                      boolean rightToLeft)
Writes a PDF "Tj" operator to the page.

Parameters:
textArray - The byte array of WINANSI text to draw.
start - The start position of text.
length - The number of characters to draw.
rightToLeft - Specifies if the text is to be drawn right to left.

write_SQuote

public void write_SQuote(char[] textArray,
                         int start,
                         int length,
                         boolean rightToLeft)
Writes a PDF Single Quote ("'") operator to the page.

Parameters:
textArray - The byte array of WINANSI text to draw.
start - The start position of text.
length - The number of characters to draw.
rightToLeft - Specifies if the text is to be drawn right to left.

write_DQuote

public void write_DQuote(float wordSpacing,
                         float characterSpacing,
                         char[] textArray,
                         int start,
                         int length,
                         boolean rightToLeft)
Writes a PDF Double Quote (""") operator to the page.

Parameters:
wordSpacing - Word spacing to draw.
characterSpacing - The character spacing to draw.
textArray - The byte array of WINANSI text to draw.
start - The start position of text.
length - The number of characters to draw.
rightToLeft - Specifies if the text is to be drawn right to left.

write_TJ

public void write_TJ(char[] textArray,
                     int start,
                     int length,
                     float wordSpacing,
                     boolean rightToLeft)
Writes a PDF "TJ" operator to the page.

Parameters:
textArray - The byte array of WINANSI text to draw.
start - Start position of text.
length - The number of characters to draw.
wordSpacing - Word spacing to use when drawn.
rightToLeft - Specifies if the text is to be drawn right to left.

write_G

public void write_G(Grayscale color)
Writes a PDF "G" operator to the page.

Parameters:
color - Grayscale color to draw.
See Also:
Grayscale

write_g_

public void write_g_(Grayscale color)
Writes a PDF "g" operator to the page.

Parameters:
color - Grayscale color to draw.
See Also:
Grayscale

write_RG

public void write_RG(RgbColor color)
Writes a PDF "RG" operator to the page.

Parameters:
color - RgbColor to draw.
See Also:
RgbColor

write_rg_

public void write_rg_(RgbColor color)
Writes a PDF "rg" operator to the page.

Parameters:
color - RgbColor to draw.
See Also:
RgbColor

write_K

public void write_K(CmykColor color)
Writes a PDF "K" operator to the page.

Parameters:
color - The CmykColor to draw.
See Also:
CmykColor

write_k_

public void write_k_(CmykColor color)
Writes a PDF "k" operator to the page.

Parameters:
color - The CmykColor to draw.
See Also:
CmykColor

write_q_

public void write_q_(boolean storeState)
Writes a PDF "q" operator to the page.

Parameters:
storeState - true, if the PageWriterState should be stored for later retrieval by a "Q" operator.
See Also:
PageWriterState

write_Q

public void write_Q(boolean restoreState)
Writes a PDF "G" operator to the page.

Parameters:
restoreState - true, if the PageWriterState should be restored from a previous "q" operator.
See Also:
PageWriterState

write_q_

public void write_q_()
Writes a PDF "q" operator to the page. PageWriterState is not stored.

See Also:
PageWriterState

write_Q

public void write_Q()
Writes a PDF "Q" operator to the page. PageWriterState is not restored.

See Also:
PageWriterState

write_cm

public void write_cm(float xOffset,
                     float yOffset)
Writes a PDF "cm" operator to the page.

Parameters:
xOffset - The X offset to draw.
yOffset - The U offset to draw.

write_cm

public void write_cm(float angle,
                     float xOffset,
                     float yOffset)
Writes a PDF "cm" operator to the page.

Parameters:
angle - The angle to draw.
xOffset - The X offset to draw.
yOffset - The Y offset to draw.

write_cm

public void write_cm(float angle)
Writes a PDF "cm" operator to the page.

Parameters:
angle - The angle to draw.

write_cm

public void write_cm(float xX,
                     float xY,
                     float yX,
                     float yY)
Writes a PDF "cm" operator to the page.

Parameters:
xX - The X X multiple to draw.
xY - The X Y multiple to draw.
yX - The Y X multiple to draw.
yY - The Y Y multiple to draw.

write_cm

public void write_cm(float a,
                     float b,
                     float c,
                     float d,
                     float e,
                     float f)
Writes a PDF "cm" operator to the page.

Parameters:
a - The A value to draw.
b - The B value to draw.
c - The C value to draw.
d - The D value to draw.
e - The E value to draw.
f - The F value to draw.

write_m_

public void write_m_(float x,
                     float y)
Writes a PDF "m" operator to the page.

Parameters:
x - The X coordinate to draw.
y - The Y coordinate to draw.

write_l_

public void write_l_(float x,
                     float y)
Writes a PDF "l" operator to the page.

Parameters:
x - The X coordinate to draw.
y - The y coordinate to draw.

write_c

public void write_c(float x1,
                    float y1,
                    float x2,
                    float y2,
                    float x3,
                    float y3)
Writes a PDF "c" operator to the page.

Parameters:
x1 - The X1 coordinate to draw.
y1 - The Y1 coordinate to draw.
x2 - The X2 coordinate to draw.
y2 - The Y2 coordinate to draw.
x3 - The X3 coordinate to draw.
y3 - The Y3 coordinate to draw.

write_v

public void write_v(float x2,
                    float y2,
                    float x3,
                    float y3)
Writes a PDF "v" operator to the page.

Parameters:
x2 - The X2 coordinate to draw.
y2 - The Y2 coordinate to draw.
x3 - The X3 coordinate to draw.
y3 - The Y3 coordinate to draw.

write_y

public void write_y(float x1,
                    float y1,
                    float x3,
                    float y3)
Writes a PDF "y" operator to the page.

Parameters:
x1 - The X1 coordinate to draw.
y1 - The Y1 coordinate to draw.
x3 - The X3 coordinate to draw.
y3 - The Y3 coordinate to draw.

write_h

public void write_h()
Writes a PDF "h" operator to the page.


write_re

public void write_re(float x,
                     float y,
                     float width,
                     float height)
Writes a PDF "re" operator to the page.

Parameters:
x - The X coordinate to draw.
y - The Y coordinate to draw.
width - The width to draw.
height - The height to draw.

writeApply

public void writeApply(Apply apply,
                       boolean close)
Strokes and/or fills the path.

Parameters:
apply - Apply type to use.
close - true, if the path should be closed.
See Also:
Apply

writeApply

public void writeApply(Apply apply)
Strokes and/or fills the path.

Parameters:
apply - Apply type to use.
See Also:
Apply

write_S

public void write_S()
Writes a PDF "S" operator to the page.


write_s_

public void write_s_()
Writes a PDF "s" operator to the page.


write_fx

public void write_fx()
Writes a PDF "f*" operator to the page.


write_f

public void write_f()
Writes a PDF "f" operator to the page.


write_B

public void write_B()
Writes a PDF "B" operator to the page.


write_b_

public void write_b_()
Writes a PDF "b" operator to the page.


write_Bx

public void write_Bx()
Writes a PDF "B*" operator to the page.


write_bx_

public void write_bx_()
Writes a PDF "b*" operator to the page.


write_n

public void write_n()
Writes a PDF "n" operator to the page.


requireLicense

public void requireLicense(int level)
Specifies that a license is required.


requireLicense

public void requireLicense()
Specifies that a license is required.


setLineWidth

public void setLineWidth(float lineWidth)
Sets the line width for the page.

Parameters:
lineWidth - The width of the line.

setCharacterSpacing

public void setCharacterSpacing(float characterSpacing)
Sets the character spacing for text on the page.

Parameters:
characterSpacing - The character spacing of text.

setHorizontalScaling

public void setHorizontalScaling(float horizontalScaling)
Sets the horizontal scaling for text on the page.

Parameters:
horizontalScaling - The horizontal scaling of text.

setTextRenderingMode

public void setTextRenderingMode(TextRenderingMode textRenderingMode)
Sets text rendering mode for text on the page.

Parameters:
textRenderingMode - TextRenderingMode of text.

setTextRise

public void setTextRise(float textRise)
Sets text rise for text on the page.

Parameters:
textRise - The text rise of text.

setWordSpacing

public void setWordSpacing(float wordSpacing)
Sets the word spacing for text on the page.

Parameters:
wordSpacing - The word spacing of text.

setLineStyle

public void setLineStyle(LineStyle lineStyle)
Sets the line style for the page.

Parameters:
lineStyle - LineStyle to set.

setGraphicsMode

public void setGraphicsMode()
Sets the page to graphics mode.


setTextMode

public void setTextMode()
Sets the page to text mode.


setTextDefaults

public void setTextDefaults()
Sets the text properties render mode, character space, word space, horizontal scale, and text rise to the defaults.


setLeading

public void setLeading(float leading)
Sets the leading for text on the page.

Parameters:
leading - The leading value to set.

setLineJoin

public void setLineJoin(LineJoin lineJoin)
Sets the line join style for paths on the page.

Parameters:
lineJoin - LineJoin style to set.

setLineCap

public void setLineCap(LineCap lineCap)
Sets the line cap style for paths on the page.

Parameters:
lineCap - LineCap style to set.

setMiterLimit

public void setMiterLimit(float miterLimit)
Sets the miterLimit for paths on the page.

Parameters:
miterLimit - The miter limit to set.

setFont

public void setFont(Font font,
                    float fontSize)
Sets the font and font size for text on the page.

Parameters:
font - Font to set.
fontSize - The font size to set.
See Also:
Font

setColor

public void setColor(Color color,
                     Apply apply)
Sets the color for the page.

Parameters:
color - Color to set.
apply - Specifies how color is applied.
See Also:
Color

write

public void write(java.lang.String text)
Writes text to the page.

Parameters:
text - The text to write.

write

public void write(byte value)
Writes a byte value to the page.

Parameters:
value - The byte to output.

write

public void write(byte[] data)
Writes a byte array to the page.

Parameters:
data - The byte array to output.

write

public void write(byte[] data,
                  int length)
Writes a portion of a byte array to the page.

Parameters:
data - The byte array to output.
length - The length to output.

write

public void write(byte[] data,
                  int start,
                  int length)
Writes a portion of a byte array to the page.

Parameters:
data - The byte array to output.
start - The start index of source.
length - The length to output.

write

public void write(java.io.OutputStream stream,
                  int length)
Writes the contents of a stream to the page.

Parameters:
stream - The OutputStream to write from.
length - The length to write.
See Also:
OutputStream

writeSpace

public void writeSpace()
Writes a space to the page.


writePoint

public void writePoint(float pointX,
                       float pointY)
Writes a point to the page adjusted to PDF coordinates.

Parameters:
pointX - X coordinate of point.
pointY - Y coordinate of point.

writePair

public void writePair(float value1,
                      float value2)
Writes a pair of numbers to the page.

Parameters:
value1 - First number to write.
value2 - Second number to write.

writePointX

public void writePointX(float pointX)
Writes an X coordinate to the page adjusted to the PDF coordinate.

Parameters:
pointX - X coordinate to write.

writePointY

public void writePointY(float pointY)
Writes an X coordinate to the page adjusted to the PDF coordinate.

Parameters:
pointY - Y coordinate to write.

writeColorValue

public void writeColorValue(byte value)
Writes an color value to the page.

Parameters:
value - The color value to write.

write

public void write(float value)
Writes a floating point number to the page.

Parameters:
value - Number to write.

write

public void write(int value)
Writes an integer to the page.

Parameters:
value - Number to write.

growIf

public void growIf(int neededBytes)
Grows the buffer is the given bytes will not fit in the buffer.

Parameters:
neededBytes - Required bytes.

draw

public void draw(DocumentWriter writer)
Description copied from class: Resource
Draws the resource to the given DocumentWriter object.

Specified by:
draw in class Resource
Parameters:
writer - DocumentWriter object to receive the resource's output.
See Also:
DocumentWriter

DynamicPDF by ceTe Software

API Reference for DynamicPDF™ for Java generated on December 20, 2005
© Copyright 2005, ceTe Software