|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.graphx.toolbox.DeletionListener
public class DeletionListener
This class provides deletion support for most simple graph editors. Associate this class with some action (such as a key press on an instance of the JCanvas class). Any nodes or edges in the selection model of the graph pane's controller will be removed.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DeletionListener(GraphController gc)
public DeletionListener(GraphController gc, JCanvas canvas)
Method Detail |
---|
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public DeletionPolicy getDeletionPolicy()
public void setDeletionPolicy(DeletionPolicy p)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |