com.vividsolutions.jump.workbench.ui.cursortool
Class OrCompositeTool

java.lang.Object
  extended by com.vividsolutions.jump.workbench.ui.cursortool.CompositeTool
      extended by com.vividsolutions.jump.workbench.ui.cursortool.OrCompositeTool
All Implemented Interfaces:
CursorTool, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener

public class OrCompositeTool
extends CompositeTool

Permits only one CursorTool to be active at a time. As long as one CursorTool has a shape on the screen, all events are directed to that CursorTool alone.

See Also:
AndCompositeTool

Constructor Summary
OrCompositeTool()
           
OrCompositeTool(CursorTool[] cursorTools)
           
 
Method Summary
 java.awt.Cursor getCursor()
           
 java.lang.String getName()
          Returns a very brief description of this CursorTool.
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseDragged(java.awt.event.MouseEvent e)
           
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mouseMoved(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 
Methods inherited from class com.vividsolutions.jump.workbench.ui.cursortool.CompositeTool
activate, add, cancelGesture, deactivate, getIcon, getPanel, isGestureInProgress, isRightMouseButtonUsed
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrCompositeTool

public OrCompositeTool()

OrCompositeTool

public OrCompositeTool(CursorTool[] cursorTools)
Method Detail

getCursor

public java.awt.Cursor getCursor()
Specified by:
getCursor in interface CursorTool
Overrides:
getCursor in class CompositeTool

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)

getName

public java.lang.String getName()
Description copied from interface: CursorTool
Returns a very brief description of this CursorTool.

Returns:
the name of this CursorTool

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)