easik.ui
Class SketchUI.MouseHandler

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by org.jgraph.plaf.basic.BasicGraphUI.MouseHandler
          extended by easik.ui.SketchUI.MouseHandler
All Implemented Interfaces:
java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.io.Serializable, java.util.EventListener
Enclosing class:
SketchUI

 class SketchUI.MouseHandler
extends org.jgraph.plaf.basic.BasicGraphUI.MouseHandler

A subclass of Mouse Handler which will ignore all but the left click.

Author:
Rob Fletcher

Field Summary
 
Fields inherited from class org.jgraph.plaf.basic.BasicGraphUI.MouseHandler
cell, handler, previousCursor
 
Constructor Summary
SketchUI.MouseHandler()
           
 
Method Summary
 void mouseDragged(java.awt.event.MouseEvent e)
          Overwritten JGraph method to remove creation of edge handles on right click
 void mousePressed(java.awt.event.MouseEvent e)
          Mousepressed function examines to see if the mouse event is a left click, and only then will it perform it's superclass's duties.
 
Methods inherited from class org.jgraph.plaf.basic.BasicGraphUI.MouseHandler
handleEditTrigger, isDescendant, mouseMoved, mouseReleased, postProcessSelection
 
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseEntered, mouseExited
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SketchUI.MouseHandler

SketchUI.MouseHandler()
Method Detail

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Mousepressed function examines to see if the mouse event is a left click, and only then will it perform it's superclass's duties.

Specified by:
mousePressed in interface java.awt.event.MouseListener
Overrides:
mousePressed in class org.jgraph.plaf.basic.BasicGraphUI.MouseHandler
Parameters:
e - Mouse event

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
Overwritten JGraph method to remove creation of edge handles on right click

Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener
Overrides:
mouseDragged in class org.jgraph.plaf.basic.BasicGraphUI.MouseHandler
Parameters:
e - Mouse event