public class EpsDocument
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.io.BufferedWriter |
_bufferedWriter |
private boolean |
_isClipSet |
private EpsGraphics2D |
_lastG |
private java.io.StringWriter |
_stringWriter |
private java.lang.String |
_title |
private float |
maxX |
private float |
maxY |
private float |
minX |
private float |
minY |
| Constructor and Description |
|---|
EpsDocument(java.lang.String title)
Constructs an empty EpsDevice.
|
EpsDocument(java.lang.String title,
java.io.OutputStream outputStream,
int minX,
int minY,
int maxX,
int maxY)
Constructs an empty EpsDevice that writes directly to a file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
append(EpsGraphics2D g,
java.lang.String line)
Appends a line to the EpsDocument.
|
void |
close() |
void |
flush() |
java.lang.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(java.io.Writer writer)
Outputs the contents of the EPS document to the specified Writer, complete with headers and bounding box.
|
private void |
writeFooter(java.io.Writer writer) |
private float minX
private float minY
private float maxX
private float maxY
private boolean _isClipSet
private java.lang.String _title
private java.io.StringWriter _stringWriter
private java.io.BufferedWriter _bufferedWriter
private EpsGraphics2D _lastG
public EpsDocument(java.lang.String title)
public EpsDocument(java.lang.String title,
java.io.OutputStream outputStream,
int minX,
int minY,
int maxX,
int maxY)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getTitle()
public void updateBounds(double x,
double y)
public void append(EpsGraphics2D g, java.lang.String line)
public void write(java.io.Writer writer)
throws java.io.IOException
java.io.IOExceptionprivate void writeFooter(java.io.Writer writer)
throws java.io.IOException
java.io.IOExceptionpublic void flush()
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
java.io.IOExceptionpublic boolean isClipSet()
public void setClipSet(boolean isClipSet)