}
public boolean mouseReleased(MouseEvent e) {
Debug.message("eomg",
"GraphicStateMachine|unselected state|mouseReleased");
GrabPoint mp = graphic.getMovingPoint(e);
// If the graphic itself was clicked on, then just go to
// selected
// mode.
if (mp == null) {
if (graphic.getGraphic().distance(e.getX(), e.getY()) < 2) {
graphic.getStateMachine().setSelected();
graphic.fireEvent(EOMGCursors.EDIT, "");
} else {
graphic.setMovingPoint(new GrabPoint(e.getX(), e.getY()));
// OK, we're done, or at a crossroad. Give the
// listeners
// the MouseEvent so they can determine what to do, to
// end, or provide options...
graphic.fireEvent(EOMGCursors.DEFAULT, "", e);