org.grinvin.gred.mouse
Class AddVertices
NullMouseHandler
org.grinvin.gred.mouse.AddVertices
public class AddVertices
extends NullMouseHandler
Mouse handler that adds a vertex at the given position. Consumes
all first button click events.
boolean canHandle
public @Override boolean canHandle(JComponent parent)
getHandler
public static AddVertices getHandler()
Return the singleton object of this type.
void doMouseClicked
public @Override void doMouseClicked(JComponent parent,
MouseEvent mouseEvent)
Adds a new vertex at the position clicked.