org.grinvin.gred.mouse

Class SplitEdges


public class SplitEdges
extends NullMouseHandler

Mouse handler that splits an edege at the given position. Consumes all first button click events on edges.

Method Summary

@Override
boolean canHandle(JComponent parent)
This mouse handler needs a MutableGraphPanel as parent.
static SplitEdges
getHandler()
Return the singleton object of this type.
@Override
void doMouseClicked(JComponent parent, MouseEvent mouseEvent)
Splits the edge at the position clicked.

Method Details

boolean canHandle

public @Override boolean canHandle(JComponent parent)

getHandler

public static SplitEdges getHandler()
Return the singleton object of this type.

void doMouseClicked

public @Override void doMouseClicked(JComponent parent,
                                     MouseEvent mouseEvent)
Splits the edge at the position clicked.