content
The stream content.
Stream
that contains graphics for the PDF document that
can be generated via the PDFGraphics2D
class. The Page
class will create a GraphicsStream
instance to represent its
content. You won't normally interact directly with this class, it is
intended that the PDFGraphics2D
class drives the calls to the
methods of this class.private int
private float
private ByteArrayOutputStream
private Font
private DecimalFormat
private Page
private AffineTransform
private DecimalFormat
private void
addContent(String s)
private void
applyAlpha(int alpha)
void
void
applyComposite(AlphaComposite alphaComp)
void
void
GradientPaint
for filling.void
RadialGradientPaint
for filling.void
drawString(java.lang.String, float, float)
).void
void
void
GradientPaint
for stroking.void
RadialGradientPaint
for stroking.private void
void
void
(x, y, w, h)
.void
void
drawPath2D(Path2D path)
void
drawString(String text,
float x,
float y)
void
fillPath2D(Path2D path)
private String
geomDP(double d)
private String
getPDFPath(Path2D path)
Path2D
instance to a PDF
path string.byte[]
void
void
void
private String
transformDP(double d)
addFilter, createDictionary, getObjectBytes, removeFilters
getGeneration, getNumber, getReference, toPDFBytes
number
- the PDF object number.page
- the parent page (null
not permitted).t
- the transform (null
not permitted).t
- the transform (null
not permitted).t
- the transform (null
not permitted).clip
- the clip (null
not permitted).BasicStroke
this method will do nothing.s
- the stroke.c
- the color (null
not permitted).c
- the color (null
not permitted).GradientPaint
for stroking.gp
- the gradient paint (null
not permitted).RadialGradientPaint
for stroking.rgp
- the gradient paint (null
not permitted).GradientPaint
for filling.gp
- the gradient paint (null
not permitted).RadialGradientPaint
for filling.rgp
- the gradient paint (null
not permitted).alphaComp
- the alpha composite (null
permitted).alpha
- the new alpha value (in the range 0
to 255
).line
- the line (null
not permitted).path
- the path (null
not permitted).path
- the path (null
not permitted).drawString(java.lang.String, float, float)
).font
- the font.text
- the text.x
- the x-coordinate.y
- the y-coordinate.(x, y, w, h)
.img
- the image.x
- the x-coordinate of the destination.y
- the y-coordinate of the destination.w
- the width of the destination.h
- the height of the destination.Path2D
instance to a PDF
path string.path
- the path (null
not permitted).Stream
getRawStreamData
in class Stream