public class ExampleGraphCreator extends java.lang.Object implements GraphCreator
Constructor and Description |
---|
ExampleGraphCreator(ExampleGraph exampleGraph) |
Modifier and Type | Method and Description |
---|---|
void |
draw(javax.swing.JPanel parent)
Draw the GUI on the given panel.
|
java.util.Optional<Graph> |
getGraph()
Get the corresponding graph, if possible.
|
public ExampleGraphCreator(ExampleGraph exampleGraph)
public void draw(javax.swing.JPanel parent)
GraphCreator
draw
in interface GraphCreator
parent
- The parent panel within which to initialize this GUI.public java.util.Optional<Graph> getGraph()
GraphCreator
getGraph
in interface GraphCreator