Package org.gephi.io.importer.api
Interface ElementDraft.Factory
-
- Enclosing interface:
- ElementDraft
public static interface ElementDraft.Factory
Node and edge draft factory. Creates node and edge to push in the container.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EdgeDraft
newEdgeDraft()
Returns an empty edge draft instance.EdgeDraft
newEdgeDraft(String id)
Returns an empty edge draft instance.NodeDraft
newNodeDraft()
Returns an empty node draft instance.NodeDraft
newNodeDraft(String id)
Returns an empty node draft instance.
-
-
-
Method Detail
-
newNodeDraft
NodeDraft newNodeDraft()
Returns an empty node draft instance.- Returns:
- an instance of
NodeDraft
-
newNodeDraft
NodeDraft newNodeDraft(String id)
Returns an empty node draft instance.- Parameters:
id
- node id- Returns:
- an instance of
NodeDraft
-
newEdgeDraft
EdgeDraft newEdgeDraft()
Returns an empty edge draft instance. Note that source and target have to be set.- Returns:
- an instance of
EdgeDraft
-
-