public class PdfGraphicsOutput extends java.lang.Object implements GraphicsOutput
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
READING_FONTS |
static java.lang.Object |
STATE_IDLE |
static java.lang.Object |
STATE_READING |
static java.lang.Object |
STATE_READY |
| Constructor and Description |
|---|
PdfGraphicsOutput()
Creates a new instance of PDFGraphicsOutput
|
| Modifier and Type | Method and Description |
|---|---|
static void |
dumpMapToFile(java.io.File f)
dump the keys out to a file.
|
void |
finish() |
java.awt.Graphics |
getGraphics() |
java.awt.Graphics2D |
getGraphics2D() |
static void |
main(java.lang.String[] args) |
static java.util.Map<java.lang.String,java.io.File> |
resetFontToTtfMap() |
void |
setGraphicsShapes(boolean graphicsShapes)
If true, then fonts are written out as lines and will match the screen.
|
void |
setOutputStream(java.io.OutputStream out) |
void |
setPixelsPerInch(int ppi)
set the scaling from graphics pixels to physical paper coordinates,
where 72dpi is the default.
|
void |
setSize(int width,
int height)
set the size in points.
|
void |
start() |
static java.lang.String |
ttfFromName(java.awt.Font font)
return the name of the .ttf file for the platform, or null.
|
static java.lang.String |
ttfFromNameInteractive(java.awt.Font font)
kludge to support call from AWT.
|
public static final java.lang.String READING_FONTS
public static final java.lang.Object STATE_IDLE
public static final java.lang.Object STATE_READING
public static final java.lang.Object STATE_READY
public PdfGraphicsOutput()
public static java.util.Map<java.lang.String,java.io.File> resetFontToTtfMap()
public static java.lang.String ttfFromNameInteractive(java.awt.Font font)
font - public static void dumpMapToFile(java.io.File f)
f - a file target.public static java.lang.String ttfFromName(java.awt.Font font)
font - public java.awt.Graphics2D getGraphics2D()
getGraphics2D in interface GraphicsOutputpublic void finish()
throws java.io.IOException
finish in interface GraphicsOutputjava.io.IOExceptionpublic java.awt.Graphics getGraphics()
getGraphics in interface GraphicsOutputpublic void setOutputStream(java.io.OutputStream out)
setOutputStream in interface GraphicsOutputpublic void setGraphicsShapes(boolean graphicsShapes)
graphicsShapes - public void setSize(int width,
int height)
setSize in interface GraphicsOutputwidth - height - public void setPixelsPerInch(int ppi)
ppi - public void start()
start in interface GraphicsOutputpublic static void main(java.lang.String[] args)