org.das2.util.awt.PdfGraphicsOutput

support writing to PDF.

PdfGraphicsOutput( )

Creates a new instance of PDFGraphicsOutput


READING_FONTS


STATE_IDLE


STATE_READING


STATE_READY


dumpMapToFile

dumpMapToFile( java.io.File f ) → void

dump the keys out to a file.

Parameters

f - a file target.

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


finish

finish( ) → void

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getGraphics

getGraphics( ) → Graphics

Returns:

java.awt.Graphics

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getGraphics2D

getGraphics2D( ) → Graphics2D

Returns:

java.awt.Graphics2D

[search for examples] [view on GitHub] [view on old javadoc] [view source]


main

main( java.lang.String[] args ) → void

Parameters

args - a java.lang.String[]

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


resetFontToTtfMap

resetFontToTtfMap( ) → Map

Returns:

java.util.Map

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setGraphicsShapes

setGraphicsShapes( boolean graphicsShapes ) → void

If true, then fonts are written out as lines and will match the screen. If false, then labels are editable.

Parameters

graphicsShapes - a boolean

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setOutputStream

setOutputStream( java.io.OutputStream out ) → void

Parameters

out - an OutputStream

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setPixelsPerInch

setPixelsPerInch( int ppi ) → void

set the scaling from graphics pixels to physical paper coordinates, where 72dpi is the default.

Parameters

ppi - an int

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setSize

setSize( int width, int height ) → void

set the size in points.

Parameters

width - an int
height - an int

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


start

start( ) → void

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


ttfFromName

ttfFromName( java.awt.Font font ) → String

return the name of the .ttf file for the platform, or null.

Parameters

font - a Font

Returns:

the name of the .ttf file, or null.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


ttfFromNameInteractive

ttfFromNameInteractive( java.awt.Font font ) → String

kludge to support call from AWT. If the font map is not yet loaded, return READING_FONTS and start the lookup on a new thread.

Parameters

font - a Font

Returns:

READING_FONTS or the name (or null).

[search for examples] [view on GitHub] [view on old javadoc] [view source]