mascoptLib.io.graph
Class MPWriter

java.lang.Object
  extended bymascoptLib.io.graph.MPWriter
All Implemented Interfaces:
WriterInterface

public class MPWriter
extends Object
implements WriterInterface

MPWriter

Version:
mer 09 jun 2004 14:37:50 MEST
Author:
Jean-Francois Lalande (Jean-Francois.Lalande@sophia.inria.fr)

Field Summary
 double circle_size
          Circle size.
 double s
          The stretch factor for distances.
 
Constructor Summary
MPWriter(OutputStream os)
          Creates a writer with a stream.
MPWriter(String file)
          Creates a writer with a filename.
 
Method Summary
 void add(MascoptObject object)
          Add an object to write in the Writer.
 void write()
          Writes the file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

s

public double s
The stretch factor for distances.


circle_size

public double circle_size
Circle size.

Constructor Detail

MPWriter

public MPWriter(String file)
         throws FileNotFoundException
Creates a writer with a filename.

Parameters:
file - the filename where to write.

MPWriter

public MPWriter(OutputStream os)
Creates a writer with a stream.

Parameters:
os - the stream where to write.
Method Detail

add

public void add(MascoptObject object)
Add an object to write in the Writer.

Specified by:
add in interface WriterInterface
Parameters:
object -

write

public void write()
Writes the file.

Specified by:
write in interface WriterInterface