public class ITextOutputDevice extends AbstractOutputDevice implements OutputDevice
PdfGraphics2D
. See
http://sourceforge.net/projects/itext/ for license information.Constructor and Description |
---|
ITextOutputDevice(float dotsPerPoint) |
Modifier and Type | Method and Description |
---|---|
void |
clip(java.awt.Shape s) |
com.lowagie.text.Rectangle |
createLocalTargetArea(RenderingContext c,
Box box) |
com.lowagie.text.Rectangle |
createTargetArea(RenderingContext c,
Box box) |
void |
drawBorderLine(java.awt.Rectangle bounds,
int side,
int lineWidth,
boolean solid) |
void |
drawImage(FSImage fsImage,
int x,
int y) |
void |
drawOval(int x,
int y,
int width,
int height) |
void |
drawRect(int x,
int y,
int width,
int height) |
void |
drawSelection(RenderingContext c,
InlineText inlineText) |
void |
drawString(java.lang.String s,
float x,
float y,
JustificationInfo info) |
void |
fill(java.awt.Shape s) |
void |
fillOval(int x,
int y,
int width,
int height) |
void |
fillRect(int x,
int y,
int width,
int height) |
java.util.List |
findPagePositionsByID(CssContext c,
java.util.regex.Pattern pattern) |
void |
finish(RenderingContext c,
Box root) |
void |
finishPage() |
java.awt.Shape |
getClip() |
com.lowagie.text.pdf.PdfContentByte |
getCurrentPage() |
float |
getDeviceLength(float length) |
float |
getDotsPerPoint() |
int |
getNextFormFieldIndex() |
com.lowagie.text.pdf.PdfReader |
getReader(java.net.URL url) |
java.lang.Object |
getRenderingHint(java.awt.RenderingHints.Key key) |
SharedContext |
getSharedContext() |
int |
getStartPageNo() |
java.awt.Stroke |
getStroke() |
com.lowagie.text.pdf.PdfWriter |
getWriter() |
void |
initializePage(com.lowagie.text.pdf.PdfContentByte currentPage,
float height) |
boolean |
isSupportsCMYKColors() |
boolean |
isSupportsSelection() |
void |
paintBackground(RenderingContext c,
Box box) |
void |
paintReplacedElement(RenderingContext c,
BlockBox box) |
void |
setClip(java.awt.Shape s) |
void |
setColor(FSColor color) |
void |
setFont(FSFont font) |
void |
setRenderingHint(java.awt.RenderingHints.Key key,
java.lang.Object value) |
void |
setRoot(Box root) |
void |
setSharedContext(SharedContext sharedContext) |
void |
setStartPageNo(int startPageNo) |
void |
setStroke(java.awt.Stroke s) |
void |
setWriter(com.lowagie.text.pdf.PdfWriter writer) |
void |
start(org.w3c.dom.Document doc) |
void |
translate(double tx,
double ty) |
drawDebugOutline, drawText, drawTextDecoration, drawTextDecoration, paintBackground, paintBorder, paintBorder, paintCollapsedBorder
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
drawDebugOutline, drawText, drawTextDecoration, drawTextDecoration, paintBackground, paintBorder, paintBorder, paintCollapsedBorder
public void setWriter(com.lowagie.text.pdf.PdfWriter writer)
public com.lowagie.text.pdf.PdfWriter getWriter()
public int getNextFormFieldIndex()
public void initializePage(com.lowagie.text.pdf.PdfContentByte currentPage, float height)
public void finishPage()
public void paintReplacedElement(RenderingContext c, BlockBox box)
paintReplacedElement
in interface OutputDevice
public void paintBackground(RenderingContext c, Box box)
paintBackground
in interface OutputDevice
paintBackground
in class AbstractOutputDevice
public com.lowagie.text.Rectangle createLocalTargetArea(RenderingContext c, Box box)
public com.lowagie.text.Rectangle createTargetArea(RenderingContext c, Box box)
public float getDeviceLength(float length)
public void drawBorderLine(java.awt.Rectangle bounds, int side, int lineWidth, boolean solid)
drawBorderLine
in interface OutputDevice
public void setColor(FSColor color)
setColor
in interface OutputDevice
public void drawRect(int x, int y, int width, int height)
drawRect
in interface OutputDevice
public void drawOval(int x, int y, int width, int height)
drawOval
in interface OutputDevice
public void fill(java.awt.Shape s)
fill
in interface OutputDevice
public void fillRect(int x, int y, int width, int height)
fillRect
in interface OutputDevice
public void fillOval(int x, int y, int width, int height)
fillOval
in interface OutputDevice
public void translate(double tx, double ty)
translate
in interface OutputDevice
public java.lang.Object getRenderingHint(java.awt.RenderingHints.Key key)
getRenderingHint
in interface OutputDevice
public void setRenderingHint(java.awt.RenderingHints.Key key, java.lang.Object value)
setRenderingHint
in interface OutputDevice
public void setFont(FSFont font)
setFont
in interface OutputDevice
public void drawString(java.lang.String s, float x, float y, JustificationInfo info)
public com.lowagie.text.pdf.PdfContentByte getCurrentPage()
public void setStroke(java.awt.Stroke s)
setStroke
in interface OutputDevice
public void clip(java.awt.Shape s)
clip
in interface OutputDevice
public java.awt.Shape getClip()
getClip
in interface OutputDevice
public void setClip(java.awt.Shape s)
setClip
in interface OutputDevice
public java.awt.Stroke getStroke()
getStroke
in interface OutputDevice
public void drawImage(FSImage fsImage, int x, int y)
drawImage
in interface OutputDevice
public com.lowagie.text.pdf.PdfReader getReader(java.net.URL url) throws java.io.IOException
java.io.IOException
public float getDotsPerPoint()
public void start(org.w3c.dom.Document doc)
public void finish(RenderingContext c, Box root)
public SharedContext getSharedContext()
public void setSharedContext(SharedContext sharedContext)
public void setRoot(Box root)
public int getStartPageNo()
public void setStartPageNo(int startPageNo)
public void drawSelection(RenderingContext c, InlineText inlineText)
drawSelection
in interface OutputDevice
public boolean isSupportsSelection()
isSupportsSelection
in interface OutputDevice
public boolean isSupportsCMYKColors()
isSupportsCMYKColors
in interface OutputDevice
public java.util.List findPagePositionsByID(CssContext c, java.util.regex.Pattern pattern)