org.sourceforge.jlibeps.epsgraphics
Class EpsDocument
java.lang.Object
org.sourceforge.jlibeps.epsgraphics.EpsDocument
public class EpsDocument
extends java.lang.Object
This represents an EPS document. Several EpsGraphics2D objects may point to the same EpsDocument.
Copyright 2001-2006 Paul James Mutton, http://www.jibble.org/
Copyright 2007 Arnaud Blouin
08/09/07
EpsDocument(String title) - Constructs an empty EpsDevice.
|
EpsDocument(String title, OutputStream outputStream, int minX, int minY, int maxX, int maxY) - Constructs an empty EpsDevice that writes directly to a file.
|
void | append(EpsGraphics2D g, String line) - Appends a line to the EpsDocument.
|
void | close()
|
void | flush()
|
String | getTitle() - Returns the title of the EPS document.
|
boolean | isClipSet()
|
void | setClipSet(boolean isClipSet)
|
void | updateBounds(double x, double y) - Updates the bounds of the current EPS document.
|
void | write(Writer writer) - Outputs the contents of the EPS document to the specified Writer, complete with headers and bounding box.
|
private void | writeFooter(Writer writer)
|
_bufferedWriter
private BufferedWriter _bufferedWriter
_isClipSet
private boolean _isClipSet
_lastG
private EpsGraphics2D _lastG
_stringWriter
private StringWriter _stringWriter
_title
private String _title
EpsDocument
public EpsDocument(String title)
Constructs an empty EpsDevice.
EpsDocument
public EpsDocument(String title,
OutputStream outputStream,
int minX,
int minY,
int maxX,
int maxY)
throws IOException
Constructs an empty EpsDevice that writes directly to a file. Bounds must be set before use.
append
public void append(EpsGraphics2D g,
String line)
Appends a line to the EpsDocument. A new line character is added to the end of the line when it is added.
close
public void close()
throws IOException
flush
public void flush()
throws IOException
getTitle
public String getTitle()
Returns the title of the EPS document.
isClipSet
public boolean isClipSet()
setClipSet
public void setClipSet(boolean isClipSet)
updateBounds
public void updateBounds(double x,
double y)
Updates the bounds of the current EPS document.
write
public void write(Writer writer)
throws IOException
Outputs the contents of the EPS document to the specified Writer, complete with headers and bounding box.
writeFooter
private void writeFooter(Writer writer)
throws IOException