|
GraphLab Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgraphlab.plugins.main.saveload.image.SaveImage
public class SaveImage
Field Summary | |
---|---|
static java.lang.String |
extension
|
Constructor Summary | |
---|---|
SaveImage()
|
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. |
static void |
saveImage(GraphModel g,
java.io.File ff,
java.lang.String extension)
saves g in file as a (.extension) image |
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 |
Field Detail |
---|
public static java.lang.String extension
Constructor Detail |
---|
public SaveImage()
Method Detail |
---|
public static void saveImage(GraphModel g, java.io.File ff, java.lang.String extension)
extension
- eg. jpeg, png, bmp, ... It can be any extension supported by ImageIO.writepublic java.lang.String getName()
GraphWriterInterface
getName
in interface Extension
getName
in interface GraphWriterInterface
public java.lang.String getExtension()
GraphWriterInterface
getExtension
in interface GraphWriterInterface
public void write(java.io.File file, GraphModel graph) throws GraphIOException
GraphWriterInterface
write
in interface GraphWriterInterface
file
- the filegraph
- the graph
GraphIOException
- In the case of the writer error.public java.lang.String getDescription()
getDescription
in interface Extension
public java.lang.String checkParameters()
Parametrizable
checkParameters
in interface Parametrizable
|
GraphLab Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |