graphlab.extensions.io
Class LatexCAD
java.lang.Object
graphlab.extensions.io.LatexCAD
- All Implemented Interfaces:
- BasicExtension, Extension, Parametrizable, GraphWriterExtension, GraphWriterInterface
public class LatexCAD
- extends java.lang.Object
- implements GraphWriterExtension, Parametrizable
- Author:
- Pooia Ronagh
Field Summary |
java.lang.Double |
X
|
java.lang.Double |
Y
|
Method Summary |
java.lang.String |
checkParameters()
checks the parameters and return an error string if the parameter
values are invalid, otherwise it returns null,
also if some other fields should be set after setting the parameters
you can do it in this method |
java.lang.String |
getDescription()
|
java.lang.String |
getExtension()
Retrieves the file extension for the file type. |
java.lang.String |
getName()
Retrieves the name of the file type. |
double |
max(double a,
double b)
|
double |
min(double a,
double b)
|
void |
write(java.io.File file,
GraphModel graph)
Writes the graph to the file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
X
public java.lang.Double X
Y
public java.lang.Double Y
LatexCAD
public LatexCAD()
getName
public java.lang.String getName()
- Description copied from interface:
GraphWriterInterface
- Retrieves the name of the file type.
- Specified by:
getName
in interface Extension
- Specified by:
getName
in interface GraphWriterInterface
- Returns:
- the Name
getExtension
public java.lang.String getExtension()
- Description copied from interface:
GraphWriterInterface
- Retrieves the file extension for the file type. Example: "xml", "gr".
- Specified by:
getExtension
in interface GraphWriterInterface
- Returns:
- the Extension
min
public double min(double a,
double b)
max
public double max(double a,
double b)
write
public void write(java.io.File file,
GraphModel graph)
throws GraphIOException
- Description copied from interface:
GraphWriterInterface
- Writes the graph to the file.
- Specified by:
write
in interface GraphWriterInterface
- Parameters:
file
- the filegraph
- the graph
- Throws:
GraphIOException
- In the case of the writer error.
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interface Extension
checkParameters
public java.lang.String checkParameters()
- Description copied from interface:
Parametrizable
- checks the parameters and return an error string if the parameter
values are invalid, otherwise it returns null,
also if some other fields should be set after setting the parameters
you can do it in this method
- Specified by:
checkParameters
in interface Parametrizable