public class GraphmlFactory
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static GraphmlFactory |
getInstance()
Return the unique instance.
|
GraphMLDiagram |
newDiagram()
Creates a new diagram.
|
GraphMLDiagram |
openDiagram(java.io.File file)
Open a graphml diagram.
|
GraphMLDiagram |
openDiagram(java.io.File file,
DiagramDefaults defaults)
Open a graphml diagram.
|
GraphMLDiagram |
openDiagram(java.net.URL url)
Open a graphml diagram.
|
GraphMLDiagram |
openDiagram(java.net.URL url,
DiagramDefaults defaults)
Open a graphml diagram.
|
void |
saveDiagram(GraphMLDiagram diagram,
java.io.File file)
Save a diagram.
|
void |
saveDiagram(GraphMLDiagram diagram,
java.net.URL url)
Save a diagram.
|
public static GraphmlFactory getInstance()
public GraphMLDiagram newDiagram()
public GraphMLDiagram openDiagram(java.net.URL url) throws java.io.IOException
url
- the diagram urljava.io.IOException
public GraphMLDiagram openDiagram(java.net.URL url, DiagramDefaults defaults) throws java.io.IOException
url
- the diagram urldefaults
- the DiagramDefaults to usejava.io.IOException
public GraphMLDiagram openDiagram(java.io.File file) throws java.io.IOException
file
- the diagram filejava.io.IOException
public GraphMLDiagram openDiagram(java.io.File file, DiagramDefaults defaults) throws java.io.IOException
file
- the diagram filedefaults
- the DiagramDefaults to usejava.io.IOException
public void saveDiagram(GraphMLDiagram diagram, java.net.URL url) throws java.io.IOException
diagram
- the diagramurl
- the URLjava.io.IOException
public void saveDiagram(GraphMLDiagram diagram, java.io.File file) throws java.io.IOException
diagram
- the diagramfile
- the filejava.io.IOException
Copyright © 2021 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence