|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.Writer java.io.PrintWriter org.freehep.util.io.IndentPrintWriter org.freehep.graphicsio.cgm.CGMWriter
CGM Clear Text Writer. Tags written with this Writer will produce a clear text CGM file. The class also holds the state for the various precisions, defaults, etc...
Field Summary |
Fields inherited from class java.io.PrintWriter |
out |
Fields inherited from class java.io.Writer |
lock |
Constructor Summary | |
CGMWriter(Writer writer)
Constructs a Clear Text CGM Writer of version 1. |
|
CGMWriter(Writer writer,
int version)
Constructs a Clear Text CGM writer of a specified version. |
Method Summary | |
int |
getVersion()
|
void |
writeColor(Color c)
Writes a Color (CO) |
void |
writeColorComponent(int c)
Writes a Color Component (CCO) |
void |
writeColorDirect(Color c)
Writes a Color Direct (CD) |
void |
writeColorIndex(int i)
Writes a Color Index (CI) |
void |
writeData(byte[] data)
Writes a chunk of Data (D) |
void |
writeFixedPoint(double d)
Write a Fixed Point value (FX) |
void |
writeFloatingPoint(double d)
Writes a Floating Point value (FP) |
void |
writeInteger(int i)
Writes an Integer (I) |
void |
writeName(int name)
Writes a Name (N) |
void |
writePoint(Point2D p)
Writes a Point (P) |
void |
writeReal(double r)
Writes a Real (R) |
void |
writeString(String s)
Writes a String or String Fixed (S, SF) |
void |
writeTag(Tag tag)
Writes a Tag and a Terminator (;) |
void |
writeVDC(double d)
Writes a Virtual Display Coordinate (VDC) |
Methods inherited from class org.freehep.util.io.IndentPrintWriter |
getIndent, getIndentString, indent, outdent, print, print, print, print, print, print, print, print, print, println, setIndent, setIndentString |
Methods inherited from class java.io.PrintWriter |
checkError, close, flush, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.freehep.util.io.TaggedOutput |
close |
Constructor Detail |
public CGMWriter(Writer writer, int version) throws IOException
writer
- the underlying writerversion
- the requested cgm versionpublic CGMWriter(Writer writer) throws IOException
writer
- the underlying writer.Method Detail |
public void writeFixedPoint(double d) throws IOException
d
- value to the written
IOException
public void writeFloatingPoint(double d) throws IOException
d
- value to be written
IOException
public void writeColorIndex(int i) throws IOException
i
- index to be written
IOException
public void writeColorComponent(int c) throws IOException
c
- color component to be written
IOException
public void writeColorDirect(Color c) throws IOException
c
- color to be written
IOException
public void writeInteger(int i) throws IOException
i
- integer to be written
IOException
public void writeReal(double r) throws IOException
r
- value to be written
IOException
public void writeString(String s) throws IOException
s
- string to be written
IOException
public void writeData(byte[] data) throws IOException
data
- data to be written
IOException
public void writeVDC(double d) throws IOException
d
- VDC to be written
IOException
public void writePoint(Point2D p) throws IOException
p
- value to be written
IOException
public void writeColor(Color c) throws IOException
c
- color to be written
IOException
public void writeName(int name) throws IOException
name
- name to be written
IOException
public void writeTag(Tag tag) throws IOException
writeTag
in interface TaggedOutput
tag
- tag to be written
IOException
public int getVersion()
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |