|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface YGFIOHandler.DataHandler
Implementations of this interface can be added to this IOHandler in order to read and write additional data for graphs, nodes and edges.
YGFIOHandler.addDataHandler(String,y.io.YGFIOHandler.DataHandler),
YGFIOHandler.getDataHandler(String),
YGFIOHandler.removeDataHandler(String)
| Method Summary | |
|---|---|
void |
readData(Graph2D graph,
Object obj,
ObjectInputStream in)
This method reads data from the given input stream and processes it. |
void |
writeData(Graph2D graph,
Object obj,
ObjectOutputStream out)
This method writes data to the given input stream. |
| Method Detail |
|---|
void readData(Graph2D graph,
Object obj,
ObjectInputStream in)
throws IOException
Node, Edge or Graph2D that is
contained in the actual input graph.
IOException - thrown if something does wrong while reading data.graph - the graph for which to read data.obj - a Node, an Edge or the graph itself. This object is directly associated
with the actual data.in - the input stream from which to read data.
void writeData(Graph2D graph,
Object obj,
ObjectOutputStream out)
throws IOException
Node, Edge or Graph2D that is
contained in the actual input graph.
IOException - thrown if something does wrong while writing data.graph - the graph for which to write data.obj - a Node, an Edge or the graph itself. This object is directly associated
with the actual data.out - the output stream from which to write data.
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||