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)
(package private) void
applyAlpha(int alpha)
(package private) void
(package private) void
applyComposite(AlphaComposite alphaComp)
(package private) void
(package private) void
GradientPaint
for filling.(package private) void
RadialGradientPaint
for filling.(package private) void
drawString(java.lang.String, float, float)
).(package private) void
(package private) void
(package private) void
GradientPaint
for stroking.(package private) void
RadialGradientPaint
for stroking.(package private) void
(package private) void
(package private) void
(x, y, w, h)
.(package private) void
(package private) void
drawPath2D(Path2D path)
(package private) void
drawString(String text,
float x,
float y)
(package private) void
fillPath2D(Path2D path)
private String
geomDP(double d)
private String
getPDFPath(Path2D path)
Path2D
instance to a PDF
path string.byte[]
(package private) void
(package private) void
(package private) 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