public class EpsDocument extends Object
Modifier and Type | Field | Description |
---|---|---|
private BufferedWriter |
_bufferedWriter |
|
private boolean |
_isClipSet |
|
private EpsGraphics2D |
_lastG |
|
private StringWriter |
_stringWriter |
|
private String |
_title |
|
private float |
maxX |
|
private float |
maxY |
|
private float |
minX |
|
private float |
minY |
Constructor | Description |
---|---|
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.
|
Modifier and Type | Method | Description |
---|---|---|
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) |
private float minX
private float minY
private float maxX
private float maxY
private boolean _isClipSet
private String _title
private StringWriter _stringWriter
private BufferedWriter _bufferedWriter
private EpsGraphics2D _lastG
public EpsDocument(String title)
public EpsDocument(String title, OutputStream outputStream, int minX, int minY, int maxX, int maxY) throws IOException
IOException
public String getTitle()
public void updateBounds(double x, double y)
public void append(EpsGraphics2D g, String line)
public void write(Writer writer) throws IOException
IOException
private void writeFooter(Writer writer) throws IOException
IOException
public void flush() throws IOException
IOException
public void close() throws IOException
IOException
public boolean isClipSet()
public void setClipSet(boolean isClipSet)