public class DeletionListener extends Object implements ActionListener
| Constructor and Description |
|---|
DeletionListener(GraphController gc)
Create a new listener but don't attach it to anything.
|
DeletionListener(GraphController gc,
JCanvas canvas)
Create a new listener and attach it to the given JCanvas.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e)
Delete any nodes or edges from the graph that are currently
selected.
|
DeletionPolicy |
getDeletionPolicy()
Get the delation policy
|
void |
setDeletionPolicy(DeletionPolicy p)
Set the deletion policy
|
public DeletionListener(GraphController gc)
public DeletionListener(GraphController gc, JCanvas canvas)
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic DeletionPolicy getDeletionPolicy()
public void setDeletionPolicy(DeletionPolicy p)
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.