public abstract class AbstractNewAction
extends javax.swing.AbstractAction
Modifier and Type | Field and Description |
---|---|
private ConfigurationGraph |
graph
the graph.
|
Constructor and Description |
---|
AbstractNewAction(ConfigurationGraph graph)
The Constructor.
|
AbstractNewAction(java.lang.String name,
ConfigurationGraph graph)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
protected abstract Node |
createNode(java.awt.Point p)
Abstract Methode for adding a Node to the graph.
|
private final ConfigurationGraph graph
public AbstractNewAction(ConfigurationGraph graph)
graph
- the graph.public AbstractNewAction(java.lang.String name, ConfigurationGraph graph)
name
- the namegraph
- the graphpublic void actionPerformed(java.awt.event.ActionEvent e)
protected abstract Node createNode(java.awt.Point p) throws CreateNodeException
p
- Point, where the node should be addedCreateNodeException
- Exception if the node could not be created.